LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-08-2015, 02:17 AM   #1
mrhamed
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Rep: Reputation: Disabled
Question Compiling MFOC & MFCUK on windows, Help Me Please!!


Hello, I compiled libnfc 1.7.1 & mfoc 0.10.7 & mfcuk 0.3.8 on Ubuntu 13.04 in virtual-box and I've "go2nfc-G141U PN532" device.

I compiled libnfc 1.7.1 win CMAKE on windows 8.1 and need compile mfoc/mfcuk on windows too, so tried Cygwin and minGW32-make and get same error for both(mfoc & mfcuk)

Cygwin and minGW32-make and Cygport ERROR:

mingw32-make all-recursive
mingw32-make[1]: Entering directory '/usr/src/mfoc/mfoc-0.10.7-1bl1.x86_64/src/mfoc-0.10.7'
Making all in src
mingw32-make[2]: Entering directory '/usr/src/mfoc/mfoc-0.10.7-1bl1.x86_64/src/mfoc-0.10.7/src'
CC crapto1.o
CC crypto1.o
CC mfoc.o
CC mifare.o
CC nfc-utils.o
CCLD mfoc.exe
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lnfc
collect2: error: ld returned 1 exit status
Makefile:305: recipe for target 'mfoc.exe' failed
mingw32-make[2]: *** [mfoc.exe] Error 1
mingw32-make[2]: Leaving directory 'D:/mifare1K/_with makefile/mfoc-0.10.7/src'
Makefile:289: recipe for target 'all-recursive' failed
mingw32-make[1]: *** [all-recursive] Error 1
mingw32-make[1]: Leaving directory 'D:/mifare1K/_with makefile/mfoc-0.10.7'
Makefile:229: recipe for target 'all' failed
mingw32-make: *** [all] Error 2


What mean -lnfc? (defined as mfoc_LDADD and libnfc_LIBS in makefile, I guess load library nfc)

After try for many days I encountered this error, it maybe my last error so I'm very interested to bypass it,

HELP ME PLEASE!
 
Old 01-08-2015, 02:25 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
/usr/lib/gcc/x86_64-pc-cygwin/4.8.3/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lnfc
did you install libnfc
for Mingw this could be libnfc.a,libnfc.la, and if you used dlltool libnfc.dll

dose a normal everyday " Hello-world" for c,c++ build
 
1 members found this post helpful.
Old 01-08-2015, 03:50 AM   #3
mrhamed
LQ Newbie
 
Registered: Jan 2015
Posts: 5

Original Poster
Rep: Reputation: Disabled
Question skipping incompatible!

Thank you very much for your reply,

I copied libnfc.a and libnfc.la from Ubuntu to C:\cygwin64\lib and give me error "skipping incompatible" then copied libnfc.dll and libnfc.dll.a and libnfc.dll.la (generated by CMake) to C:\cygwin64\lib and give me same error "skipping incompatible"

The compiled libnfc version on Ubuntu and windows are same.(version 1.7.1)

Quote:
if you used dlltool libnfc.dll
I've compiled libnfc.dll (version 1.7.1) file, but I don't known dlltool

[SOLVED]
I compile libnfc 1.7.0 (1.7.1 give error "#error Can't determine serial string for your system") on windows and use new generated .lib file.

Thank's

Last edited by mrhamed; 01-08-2015 at 07:13 AM. Reason: Issue resolved ;)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Windows 7 & Windows 8 vs. Ubuntu 13.04 & Fedora 18 LXer Syndicated Linux News 0 04-05-2013 09:40 PM
how to remove ubuntu8.04 from a dual boot lappy as has 8.04 & 8.10 & windows Cooder Linux - Newbie 1 12-13-2008 04:54 AM
Installing & using google talk & skype & other Windows applicatiounder Xubuntu rakeshj Linux - Desktop 6 07-31-2007 01:40 PM
what does && mean in compiling instructions timsch75 Linux - Newbie 6 03-11-2004 06:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration