Hi Steve, the WSJT-X CMakebuild currently doesn't fully allow for a version of Hamlib that includes back ends for custom USB devices. The easiest way to fix this is to re-configure you Hamlib build to exclude the USB back ends by adding '--without-libusb' to the hamlib configure command.
If you actually need the Hamlib USB back ends for example for a Peaberry SDR or similar then I believe that if you install the libusb-dev package you should be able to build using your current Hamlib package. 73 Bill G4WJS. On 10/05/2015 21:35, Joe Taylor wrote: > Hi Steve, > > Are you doing this compile in Linux, or OS X? Anyway, it seems best to > forward your message to the wsjt-devel list. I'm confident that one of > the guys there can help. > > -- Joe, K1JT > > K9AN wrote: >> Joe - >> Thanks for posting the files. I’ll let you know what I come up with. >> >> I’m trying to compile your wsjtx_exp branch and I’m stuck at the final >> linking stage. This may be a question for the list, so feel free to deflect >> it accordingly - but since it relates to the experimental branch I thought >> that I’d check wit you first. >> >> I have set up the pre-requisites (forked hamlet3 and Qt5) as directed in the >> INSTALL file. >> >> The cmake build script seems to find my hamlib3 libraries: >> >> radio@radio-Macmini:~/Builds/wsjtx-build$ cmake -D >> CMAKE_PREFIX_PATH=~/Builds/hamlib3 -D >> CMAKE_INSTALL_PREFIX=~/Builds/wsjtx-build >> ../wsjt-wsjt-5355-branches-wsjtx_exp >> -- Building wsjtx-1.6.1-devel >> -- ****************************************************** >> -- Building for for: Linux-x86_64 >> -- ****************************************************** >> -- Found hamlib >> -- hamlib_INCLUDE_DIRS: /usr/include >> -- hamlib_LIBRARY: /home/radio/Builds/hamlib3/lib/libhamlib.a >> -- hamlib_LIBRARIES: /home/radio/Builds/hamlib3/lib/libhamlib.a;m >> -- hamlib_STATIC_LIBRARY: /home/radio/Builds/hamlib3/lib/libhamlib.a >> -- hamlib_STATIC_LIBRARIES: /home/radio/Builds/hamlib3/lib/libhamlib.a;m >> >> But the wsjtx compile fails at 98% at "Linking CXX executable wsjtx" with >> numerous “undefined reference” errors: >> >> [ 98%] Building CXX object CMakeFiles/wsjtx.dir/qrc_wsjtx.cpp.o >> [ 98%] Building CXX object CMakeFiles/wsjtx.dir/wsjtx_automoc.cpp.o >> Linking CXX executable wsjtx >> /home/radio/Builds/hamlib3/lib/libhamlib.a(usb_port.o): In function >> `usbGetStringAscii': >> usb_port.c:(.text.usbGetStringAscii+0x81): undefined reference to >> `usb_control_msg' >> /home/radio/Builds/hamlib3/lib/libhamlib.a(usb_port.o): In function >> `find_and_open_device': >> usb_port.c:(.text.find_and_open_device+0x5b): undefined reference to >> `usb_get_busses' >> usb_port.c:(.text.find_and_open_device+0x116): undefined reference to >> `usb_open' >> usb_port.c:(.text.find_and_open_device+0x12c): undefined reference to >> `usb_strerror' >> usb_port.c:(.text.find_and_open_device+0x1ad): undefined reference to >> `usb_strerror' >> usb_port.c:(.text.find_and_open_device+0x1d3): undefined reference to >> `usb_close' >> usb_port.c:(.text.find_and_open_device+0x242): undefined reference to >> `usb_close' >> usb_port.c:(.text.find_and_open_device+0x2a7): undefined reference to >> `usb_strerror' >> usb_port.c:(.text.find_and_open_device+0x2cd): undefined reference to >> `usb_close' >> usb_port.c:(.text.find_and_open_device+0x365): undefined reference to >> `usb_close' >> /home/radio/Builds/hamlib3/lib/libhamlib.a(usb_port.o): In function >> `usb_port_open': >> usb_port.c:(.text.usb_port_open+0x1d): undefined reference to `usb_init' >> usb_port.c:(.text.usb_port_open+0x22): undefined reference to >> `usb_find_busses' >> usb_port.c:(.text.usb_port_open+0x2b): undefined reference to `usb_strerror' >> usb_port.c:(.text.usb_port_open+0x4c): undefined reference to >> `usb_find_devices' >> usb_port.c:(.text.usb_port_open+0x55): undefined reference to `usb_strerror' >> usb_port.c:(.text.usb_port_open+0x213): undefined reference to >> `usb_get_driver_np' >> >> Do you have any idea about what is wrong here? >> >> Steve >> ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ wsjt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wsjt-devel
