Fix build under MSYS2 MinGW-w64 (Windows)
- Under MSYS2 MinGW-w64 the filename of the
hidapiimport library is "libhidapi.dll.a". Addhidapi.dlltoNAMESoffindlibrary().
Here are some short instructions for building TEMPERed for Windows under MSYS2 MinGW-w64:
# install the required packages cmake and hidapi:
pacman -Sy --needed ${MINGW_PACKAGE_PREFIX}-cmake ${MINGW_PACKAGE_PREFIX}-hidapi
# Run the following commands from the base of the TEMPERed directory:
mkdir build
cd build
${MINGW_PREFIX}/bin/cmake.exe -G "MSYS Makefiles" ..
make
cd ..
Just in case somebody is looking for Windows binaries of TEMPered, builds have been prepared and added here for download: https://github.com/c72578/TEMPered/releases
The builds include PRs from here, which added new devices: 0C45:7402 TEMPerHumM12V1.2 0C45:7402 TEMPerHumM12V1.3 413d:2107 TEMPer2V3.1 or TEMPer2V3.3 (TEMPerGold_V3.1, TEMPerX_V3.3)
@c72578 I think this repo is dead. If you target your PR to https://github.com/mwerezak/TEMPered I will try to merge it.
Actually I was able to do it myself :wink: