libnfc icon indicating copy to clipboard operation
libnfc copied to clipboard

error occurs 0xc000007b

Open oleggy-gvz opened this issue 6 years ago • 5 comments
trafficstars

Hello. I'm new to using сmake and opensource. I have two questions:

  1. In the description of README-Windows.md, it is written "This will be a shared library for Windows. (Nfc.dll)". But it creates file libnfc.dll, not nfc.dll. Is this error in description?
  2. When I try to run any exe utilities from \libnfc-build\utils system requires "libusb0.dll" library. But when I specify library from \libusb-win32-bin-1.2.6.0\bin\ia64\libusb0.dll launch error occurs 0xc000007b.

oleggy-gvz avatar Dec 02 '18 08:12 oleggy-gvz

Can you please add a complete list of the steps you perform? What command line commands are you using? Which shell are you in? Git Bash, Cygwin? Which compiler (Cygwin, MinGw, Visual Studio) and which version, etc.?

daixtrose avatar Dec 02 '18 09:12 daixtrose

OK. I work for Windows 7 64 bit (Intel CPU). I did on the manual.

  1. installed TDM-GCC MinGW Compiler - tdm64-gcc-4.7.1-3 image
  2. added the PATH directories "c:\MinGW64\bin; c:\MinGW64\x86_64-w64-mingw32\lib32; c:\MinGW64\x86_64-w64-mingw32\include"
  3. installed CMake - cmake-3.13.1-win64-x64 and configured CMake image
  4. run mingw32-make to build image
  5. compiled libnfc.dll here ..\libnfc-build\libnfc\libnfc.dll
  6. downloaded libusb - libusb-win32-bin-1.2.6.0.zip and copied libusb0.dll file from zip - ..\bin\ia64\libusb0.dll
  7. I copy files libnfc.dll and libusb0.dll to directory ..\libnfc-build\utils\ and try to run any utility, for example nfc-list.exe

oleggy-gvz avatar Dec 02 '18 17:12 oleggy-gvz

Please use CTRL+v to paste the screenshots directly. Hint: You can edit your answer.

daixtrose avatar Dec 02 '18 18:12 daixtrose

I corrected me post. + I noticed that:

  1. cmake log is message "missing DOXYGEN_EXECUTABLE" (see screenshot)
  2. in compilation process for libnfc.dll reports two errors, but libnfc.dll is created (see screenshot)
  3. in cmake i correctly indicated LIBUSB_INCLUDE_DIRS and LIBUSB_LIBRARIES ?

how does that affect? or maybe i used wrong installation packages?

oleggy-gvz avatar Dec 03 '18 01:12 oleggy-gvz

@oleggy-gvz Did you end up getting it to work? I'm having the exact same issue. As for "LIBNFC_SYSCONFDIR" there is no "config" directory in libnfc. Should it just point to an empty "config" directory?

digitalrnd avatar Jun 21 '19 04:06 digitalrnd