Re: Mifare command utility

Dear,

Is it possible to upload the latest source code (0.1.1) for linux

Regards

Re: Mifare command utility

Hello, I was just working on that wink
The tarball of newest version is available, hopefully it wil work without glitch smile

PS: On some distros you will need to make symlink of /usr/local/lib/libnfc.so.0 -> /usr/lib/libnfc.so.0 or update respective env-var.

Re: Mifare command utility

Dear

Thanks, I just compiled it and it works on Debian (vmware)

Regards

Re: Mifare command utility

whitewash wrote:

PS: On some distros you will need to make symlink of /usr/local/lib/libnfc.so.0 -> /usr/lib/libnfc.so.0 or update respective env-var.

You can either set --prefix=/usr to ./configure of libnfc (GNU/Linux distros trend to install everything in /usr, some use /opt for that, and some other systems /usr/local (e.g. FreeBSD), /usr/pkg (e.g. NetBSD)) or set CXXFLAGS / LDFLAGS in ./configure's environment of micmd so that the autotools find everything:

CXXFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure

BTW, gmake distcheck returns an error.  I guess there is a ${docdir} or somthing like that you can use to fix the problem.  Good luck!

Romain

Re: Mifare command utility

Does it work with the old linfc-1.2.1 Version? I'm getting errors after running the make command.

make  all-recursive
make[1]: Entering directory `/home/user/Downloads/micmd-0.011'
Making all in src
make[2]: Entering directory `/home/user/Downloads/micmd-0.011/src'
g++ -DHAVE_CONFIG_H -I. -I..  -DPACKAGE_LOCALE_DIR=\""/usr/local//locale"\" -DPACKAGE_SRC_DIR=\""."\" -DPACKAGE_DATA_DIR=\""/usr/local/share"\" -I. -I./..   -g -O2 -MT MiCmd.o -MD -MP -MF .deps/MiCmd.Tpo -c -o MiCmd.o MiCmd.cpp
MiCmd.cpp:32:21: error: nfc/nfc.h: No such file or directory
MiCmd.cpp:46: error: expected initializer before ‘*’ token
MiCmd.cpp:47: error: ‘nfc_target_info_t’ does not name a type
MiCmd.cpp:48: error: ‘mifare_param’ does not name a type
....

and so on.

Re: Mifare command utility

Nope, in new version of libnfc, some functions' names have been changed, along with data structures used to pass parameters to mifare card. MCmd 0.011 was compiled against libnfc 1.3.1, therefore it's not compatible with libnfc versions using old function prototypes and data structures.

EDIT: There is, however, old version available that can be built with old libnfc, take a look at Deprecated downloads here: http://code.google.com/p/micmd/download … nloadCount

Last edited by whitewash (2010-02-13 20:43:42)