Open eheaton opened 8 years ago
Hi Eric,
Doesn't look like a missing dependancy, though I think I know what's causing this. I should be able to have a look at it tomorrow and sort it then :)
Great, thanks!
Hey @broughtong - Not sure if this is along the lines of what you were thinking, but we commented out the 2 lines that were throwing the error, and now we're seeing this issue (while running make
by itself):
gcc -shared -Wall -Wl,-soname,libmercuryrfid.so.1 build/lib/libmercuryrfid.o build/lib/enums.o build/lib/queue.o -o build/lib/libmercuryrfid.so.1.0 -Isrc/lib/mercury/lib/LTK/LTKC/Library -Isrc/lib/mercury/lib/LTK/LTKC/Library/LLRP.org -Isrc/lib/mercury/ lib/libmercuryapi.so.1 -lpthread lib/libltkc.so.1 lib/libltkctm.so.1
lib/libmercuryapi.so.1: file not recognized: File format not recognized
collect2: error: ld returned 1 exit status
Makefile:14: recipe for target 'build/lib/libmercuryrfid.so.1.0' failed
make: *** [build/lib/libmercuryrfid.so.1.0] Error 1
Hope this helps. Thanks again for checking it out.
Had a quick play around today, looks like this is caused by the .so.1 file being precompiled for x86 architecture, and the Raspberry Pi being ARM HF based is expecting it in a different format. What the Raspberry Pi needs to work is this file being compiled on the right architecture. I'm not sure how far I can go directly due to Licensing from ThingMagic, although if not i'll try put together a guide on how to do this on other architectures. Assuming their library itself works on ARM, this should be relatively straightforward.
Thanks for the update George. If you could put together a guide, that'd be fantastic!
Ok give this a try on the Raspberry Pi:
I have a little trouble compiling the MercuryAPI due to problems with their code from variables being set but not used, although this is from a version from a few months ago so may be fixed by now. I just opened the makefile and removed '-wall'.
Give that a try a let me know how you get on!!
I'll try see what I can do licensing wise for the future in terms of compilation of their source if this does turn out to fix the problem. Alternatively I could just compile an ARM version myself and upload that
Did anyone succeed making the Mercury API for Raspberry PI? Please, share it. I have followed the steps above but I got many errors. Thanks,
Hi there - I'm getting the following errors trying to compile this on Debian Jessie. Any ideas what might be causing it?
Maybe I'm missing a required dependency?