Probleme bei der Installation / Kompilierung von mfcuk / libnfc unter Windows

3882
Drake

Nach vielen Problemen, glaube ich, habe ich libnfc mit diesen Anweisungen erfolgreich installiert / kompiliert .

Jetzt versuche ich, mfcuk zu kompilieren / zu installieren. Sobald ich zum Schritt ./configure komme, erhalte ich die folgende Fehlermeldung

Sam@Sam-PC /c/Users/Sam/Documents/mfcuk/mfcuk-read-only $ ./configure checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for style of include used by make... GNU checking dependency style of gcc... gcc3 ./configure: line 3739: syntax error near unexpected token `LIBNFC,' ./configure: line 3739: `PKG_CHECK_MODULES(LIBNFC, libnfc >= $LIBNFC_REQUIRED_VE RSION,, AC_MSG_ERROR([libnfc >= $LIBNFC_REQUIRED_VERSION is mandatory.]))' 

Ich vermute, das hat etwas damit zu tun, dass ich nicht richtig etwas erzähle (pkg-config?), Wo libnfc ist? Jede Hilfe wird sehr geschätzt.

2

2 Antworten auf die Frage

0
Horn OK Please

A "syntax error" is usually not the expected error message if pkg-config can't find a module. But it may be that the properly installed libnfc will provide the LIBNFC macro that configure purports to be unable to find.

You could try ./autogen.sh and then re-run configure; that might help if the default shipped configure script is bad (autogen.sh regenerates configure from configure.in, provided you have the correct dependencies installed (autoconf, automake, GNU make, and, usually, libtool.)

If that doesn't work, you need to run ./configure --help and figure out the environment variables to specify to manually set the path to libnfc's headers and libraries. The paths to actually set in the environment will depend entirely on where (if anywhere) you installed libnfc... the headers are the .h files and the libs are the .dll files (or .a files if you're compiling statically).

Don't have specific experience with mfcuk but autoconf stuff should work the same between packages... I do have a fair bit of experience with autoconf on Windows/MinGW32. So post back if you get stuck.

Kann von hier aus nichts erreichen, um einen Unterschied zu machen. ./autogen.sh läuft nicht, nichts in der ./configure --help scheint besonders eine Option zu sein, die Umgebungsvariablen für libnfc festzulegen (obwohl ich sie in Windows eingestellt habe). Ich habe versucht --libexecdir, um kein Erfolg Drake vor 11 Jahren 0
0
harrymc

Wenn das zu kompilierende Paket nfc-tools ist, wird dieses Problem in Problem 76: Kompilieren von libnfc-llcp - Fehler beschrieben .

Es wird behauptet, dass dies durch die Revision r955 vom 18. Oktober 2011 behoben wurde:

libnfc-llcp: setze mqueue.h und pkg-config als Anforderungen in configure.ac (Fixes Problem 76)

Sie könnten versuchen, eine neuere Version von configure.ac zu installieren, um den Fehler zu beheben.

Die Download-Seite enthält die neuesten Informationen zu nfc-eventd-0.1.5.tar.gz vom November 2011, die nützlich sein könnten, oder Sie können die svn-Quelle ausprobieren .