gary-rowe / hid4java

A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
MIT License
223 stars 70 forks source link

Benign error when building for Windows ARM64 #121

Closed tresf closed 1 year ago

tresf commented 2 years ago

Windows ARM64 builds show benign error about building hidtest.exe.

Since #115 was merged into issue-93 branch, we can successfully build Windows ARM64 binaries, however reviewing the logs shows there's a build error occuring. This is a placeholder to fix that error.

  make[2]: Entering directory '/work/hidtest'
    CCLD     hidtest.exe
- libtool:   error: Could not determine the host path corresponding to
- libtool:   error:   '/work/windows/.libs'
  libtool:   error: Continuing, but uninstalled executables may not work.
  libtool:   error: Could not determine the host path corresponding to
  libtool:   error:   '/work/windows/.libs:/usr/local/lib:/usr/local/bin'
  libtool:   error: Continuing, but uninstalled executables may not work.
  make[2]: Leaving directory '/work/hidtest'
  make[2]: Entering directory '/work'
  make[2]: Leaving directory '/work'
  make[1]: Leaving directory '/work

Since the error is very specific to the way hidapi is building, I'm not sure if it's a bad assumption in the Makefile or a bug with the llvm-mingw wrapper we use, etc. I've asked for help upstream to see if they can point us in the right direction:

Upstream bug report:

gary-rowe commented 1 year ago

Looks like this has been fixed with the recent upgrades to hidapi and dockcross present in develop. Screenshot from the win32-x86-64 build:

Screenshot 2022-12-05 at 09 43 13