Open Tiwas opened 7 years ago
Yeah. Kind of. It hurt less to repartition my laptop, install linux on it and build all the apps :)
Sorry - wish I could give you a better answer, and if you can make it work for Windows I'd really appreciate it. Until then I'll just have to remote control my linux box...
Oops. Same situation here. Exactly the same. All the rest is working for me. PLEASE HELP!
Same situation here. Note: I'm on a windows 7 laptop. Also, I do not yet have the PN532 board. Is this needed prior to the build process? Soooo close ... yet so far.
Sorry, we, the usual maintainers, don't use Windows. Please try asking for help on stackoverflow.
If you've reached the point that you're getting undefined reference related to the pn53x_xxx functions, just make the change noted in my fork: https://github.com/peacepenguin/libnfc/commit/b7d08bff41824255ef7f96535a8bf0b6450f1d14 It just removes the culprit files from the build process, doesn't actually "fix" the root problem. But this change does allow the rest of the utilities and examples to build successfully in windows.
I was able to get a basic compile done in windows using that fork, haven't confirmed it works yet, but here's my progress so far if anyone wants to test in windows. I'm not sure where the config file is supposed to be stored by default in windows. https://github.com/peacepenguin/libnfc-unofficialbuilds
There's detailed instructions there on how I was able to build on windows for anyone that wants to try to get to the root problem quickly.
@Tiwas I've got the fixes done for this problem, pull request is pending acceptance:
https://github.com/nfc-tools/libnfc/pull/457
Try compiling the fork that has those changes using the instructions I've given here: https://github.com/peacepenguin/libnfc/blob/master/README-Windows.md
The changes allow building in mingw64 natively for 64-bit windows, with an up-to-date gcc/g++ tool-chain.
Hope that helps!
-Ben
@Tiwas I've got the fixes done for this problem, pull request is pending acceptance:
457
Try compiling the fork that has those changes using the instructions I've given here: https://github.com/peacepenguin/libnfc/blob/master/README-Windows.md
The changes allow building in mingw64 natively for 64-bit windows, with an up-to-date gcc/g++ tool-chain.
Hope that helps!
-Ben
Some time has passed, your patch was replaced by #611 in the main code but... I followed your instructions and the ones from Mobfish. No way to compile 1.8 (or 1.7 FWIW) on Win64. First I needed to comment out the include for Doxygen in CMakeLists.txt, and that was fine. The if you do a single cmake, it runs fine and reaches "Generating done". If you do it again as per your instructions you get:
CMake Error at libnfc/CMakeLists.txt:37 (MESSAGE):
I2C is only (yet) supported in Linux!
If you continue without the second cmake, it compiles until 8% and stops with the attached error log. failed-build.txt
Any hint to continue or we just need to assume that Windows is a "best effort" platform? Thanks
Edit: I quoted the wrong message and not @peacepenguin
Hi.
I'm trying to install libnfc on my Windows box, but I'm having problems compiling it. After running the cmake gui, configure it and generate the makefile I proceed to run mingw32-make. This seems to work well for a long time until I get the following
Could someone help me with how to get past this?
Cheers!