Unsolved using Jsoncpp library in Qt on Raspberry pi 3
I want to use libjsoncpp on Raspberry. So I wrote the program and compile it for Desktop and work correctly.
then I compile Qt on Raspberry Pi 3 and compile many program for it and wotk correctly.
now i wrote program that use jsnocpp library.
I added LIBS path to my Qt Creator like this : LIBS += "/usr/lib -ljsoncpp" and include path like this: INCLUDEPATH = "/usr/include/jsoncpp/"
then I compile this program for desktop and work correctly. after that I compiled this program for Raspberry pi 3.
I changed LIBS and Include path like blew:
LIBS += -L "/media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib" -ljsoncpp
INCLUDEPATH = /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/include/jsoncpp/
Now I compile this and I faced with this error:
- /usr/bin/ld: skipping incompatible /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.so when searching for -ljsoncpp
- /usr/bin/ld: skipping incompatible /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.a when searching for -ljsoncpp
- Please show the output of the commands
file /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.so ldd /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.so
- Any reason you don't use Qt's built-in JSON support?