Hello,
Due my latest sound interruption issues I'm trying to rebuilt WSJT-X
2.5.4 from source but now I get an error related to Hamlib:
[ 88%] Linking CXX executable wsjtx
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld:
/home/marco/WSJT-X_build/build/wsjtx-2.5.4/hamlib-prefix/lib64/libhamlib.a(usb_port.o):
in function `find_and_open_device':
(.text.find_and_open_device+0xc8): undefined reference to
`libusb_get_device_list'
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld:
(.text.find_and_open_device+0x125): undefined reference to
`libusb_get_device_descriptor'
.....SNIP.....
gmake[6]: *** [CMakeFiles/wsjtx.dir/build.make:874: wsjtx] Error 1
gmake[5]: *** [CMakeFiles/Makefile2:1343: CMakeFiles/wsjtx.dir/all] Error 2
gmake[4]: *** [Makefile:156: all] Error 2
gmake[3]: *** [CMakeFiles/wsjtx-install.dir/build.make:78:
wsjtx-prefix/src/wsjtx-stamp/wsjtx-build] Error 2
gmake[2]: *** [CMakeFiles/Makefile2:305:
CMakeFiles/wsjtx-install.dir/all] Error 2
gmake[1]: *** [CMakeFiles/Makefile2:390: CMakeFiles/install.dir/rule]
Error 2
gmake: *** [Makefile:267: install] Error 2
If I try to built the 2.6.0 source this error is not present and
compiling succeed.
To build the source I use these commands:
/usr/bin/cmake -Dhamlib_INCLUDE_DIRS=/usr/local/include \
-Dhamlib_LIBRARIES=/usr/local/lib64/libhamlib.so \
-Dhamlib_LIBRARY_DIRS=/usr/local/lib64 \
-DWSJT_GENERATE_DOCS=OFF \
-DWSJT_SKIP_MANPAGES=ON \
-Werror=deprecated-declarations \
-Wno-error \
-D CMAKE_INSTALL_PREFIX=/home/marco/WSJT-X_build/.wsjtx .
/usr/bin/cmake --build . --target install
*Please note*: I have installed latest available Hamlib from github.
marco@linux-turion64:~/WSJT-X_build> rigctl --version
rigctl Hamlib 4.6~git gio nov 10 14:03:43 2022 +0000 SHA=09d7ed
How can I "force" the compiler to not use the
/home/marco/WSJT-X_build/build/wsjtx-2.5.4/hamlib-prefix/ from the
source and take the one I installed from github?
Thanks for your suggestions!
---
*73 de Marco, PY1ZRJ (former IK5BCU)*
**
_______________________________________________
wsjt-devel mailing list
wsjt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wsjt-devel