Re: [Hamlib-developer] WSJT-X build error with latest hamlib version
Library to control radio transceivers and receivers
Brought to you by:
n0nb
From: Nate B. <n0...@n0...> - 2025-08-03 20:33:21
|
* On 2025 03 Aug 13:57 -0500, Uwe, DG2YCB wrote: > Hi Nate, George, Roger and all, > * > 2. Nate's changes to his build environment.* > Over the past few years, I have always used the binaries from > https://n0nb.users.sourceforge.net/ to create the official Windows packages > for WSJT-X and WSJT-X Improved. However, this no longer works because Hamlib > can no longer be found with the module provided for this purpose in WSJT-X > (/CMake/Modules/FindHamlib.cmake). That's very bad! All works well > immediately if I go back to Hamlib 4.6.3. > CMake Error at CMake/Modules/LibFindMacros.cmake:263 (message): > REQUIRED PACKAGE NOT FOUND > > We only found some files of Hamlib, not all of them. Perhaps your > installation is incomplete or maybe we just didn't look in the right > place? > This package is REQUIRED and you need to install it or adjust CMake > configuration in order to continue building wsjtx. > > Relevant CMake configuration variables: > > Hamlib_INCLUDE_DIR=C:/JTSDK64-Tools/tools/hamlib/qt/5.12.12/include > Usb_INCLUDE_DIR=C:/JTSDK64-Tools/tools/libusb/1.0.24/include/libusb-1.0 > Hamlib_LIBRARY=<not found> What specific file is being checked? I did move just *one* file to s different location in the Windows binary archive and that is libhamlib-4.lib which is now placed in the lib/gcc-mingw directory of the archive. This change was made on recommendation of the MinGW project where their dlltool only creates a .lib file suitable for use by MinGW's gcc. Placing it in the msvc directory was misleading to MSVC developers. Now instructions have been added to (hopefully) allow such developers to create their own .lib file for use with MSVC/VS. > Usb_LIBRARY=C:/JTSDK64-Tools/tools/hamlib/qt/5.12.12/bin/libusb-1.0.dll > > You may use CMake GUI, cmake -D or ccmake to modify the values. Delete > CMakeCache.txt to discard all values and force full re-detection if > necessary. > > Call Stack (most recent call first): > CMake/Modules/FindHamlib.cmake:23 (libfind_process) > CMakeLists.txt:1009 (find_package) Looking at: https://sourceforge.net/p/wsjt/wsjtx/ci/master/tree/CMake/Modules/FindHamlib.cmake I don't see what CMake is looking for that has changed in the archive. It would be helpful to know exactly what file is being searched for as the only one I see there is rig.h and it is in the same place. 73, Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: https://www.n0nb.us Projects: https://github.com/N0NB GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819 |