TEMPered icon indicating copy to clipboard operation
TEMPered copied to clipboard

Fix build under MSYS2 MinGW-w64 (Windows)

Open c72578 opened this issue 6 years ago • 4 comments

  • Under MSYS2 MinGW-w64 the filename of the hidapi import library is "libhidapi.dll.a". Add hidapi.dll to NAMES of findlibrary().

c72578 avatar Dec 08 '19 20:12 c72578

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 ..

c72578 avatar Dec 09 '19 15:12 c72578

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 avatar Dec 09 '19 20:12 c72578

@c72578 I think this repo is dead. If you target your PR to https://github.com/mwerezak/TEMPered I will try to merge it.

mwerezak avatar Dec 29 '22 15:12 mwerezak

Actually I was able to do it myself :wink:

mwerezak avatar Dec 29 '22 16:12 mwerezak