Hi All,

I would like help to understand the USB libraries in hamlib
System windows 10 (under linux no problem)
QT 5.5 from JTSDK v2 or QT 5.12 from site qt.io


===============================from config.log
configure:17679: checking for libusb_init in -lusb-1.0
configure:17704: C:/JTSDK/qt55/Tools/mingw492_32/bin/gcc.exe -o conftest.exe -g -O2 -fdata-sections -ffunction-sections -Wl,--gc-sections conftest.c -lusb-1.0 >&5 c:/JTSDK/qt55/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -lusb-1.0
collect2.exe: error: ld returned 1 exit status
configure:17704: $? = 1
...............
configure:17713: result: no
configure:17718: WARNING: libusb_init was not found in libusb-1.0--USB backends will be disabled
configure:17731: checking libusb.h usability
configure:17731: C:/JTSDK/qt55/Tools/mingw492_32/bin/gcc.exe -c -g -O2 -fdata-sections -ffunction-sections conftest.c >&5
conftest.c:116:20: fatal error: libusb.h: No such file or directory
 #include <libusb.h>
                    ^
compilation terminated.
configure:17731: $? = 1
................
configure:17731: result: no
configure:17731: checking for libusb.h
configure:17731: result: no
configure:17731: checking libusb-1.0/libusb.h usability
configure:17731: C:/JTSDK/qt55/Tools/mingw492_32/bin/gcc.exe -c -g -O2 -fdata-sections -ffunction-sections conftest.c >&5 conftest.c:116:31: fatal error: libusb-1.0/libusb.h: No such file or directory
 #include <libusb-1.0/libusb.h>
                               ^
compilation terminated.
configure:17731: $? = 1
................-----------and near EOF:
#define HAVE_LIBUSB 1

configure: exit 0
============================end of file

referring to https://libusb.info/ and READMEtxt in the downlod file
https://github.com/libusb/libusb/releases/download/v1.0.22/libusb-1.0.22.7z
I add the files and the hamlib configure find libusb.

But now cmake search for libusb-1.0.dll

===========================================from cmake log on video
warning: cannot resolve item 'libusb-1.0.dll'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

-- warning: gp_resolved_file_type non-absolute file 'libusb-1.0.dll' returning type 'other' -- possibly incorrect
--
warning: cannot resolve item 'libusb-1.0.dll'

  possible problems:
    need more directories?
    need to use InstallRequiredSystemLibraries?
    run in install tree instead of build tree?

warning: target 'libusb-1.0.dll' is not absolute...
warning: target 'libusb-1.0.dll' does not exist...
CMake Error at C:/JTSDK64/zzloc64/src/CMake/Modules/GetPrerequisites.cmake:800 (message):
  C:/Qt/Tools/mingw730_64/bin/objdump.exe failed: 1

  C:/Qt/Tools/mingw730_64/bin/objdump.exe: 'libusb-1.0.dll': No such file

Call Stack (most recent call first):
C:/JTSDK64/zzloc64/src/CMake/Modules/GetPrerequisites.cmake:925 (get_prerequisites) C:/JTSDK64/zzloc64/src/CMake/Modules/BundleUtilities.cmake:584 (get_prerequisites) C:/JTSDK64/zzloc64/src/CMake/Modules/BundleUtilities.cmake:804 (get_bundle_keys)
  cmake_install.cmake:254 (fixup_bundle)


mingw32-make.exe: *** [Makefile:139: install] Error 1
===========================================

So I added to the path usblib and cmake is happy.
WSJTX is compiled and working with QT 5.5 and QT 5.12
Now the quesion:

as hamlib are compiled as static why libusb is not linked and external lib is needed?

Thank in advance



--
73
Sandro
IW3RAB


_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to