Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved using Jsoncpp library in Qt on Raspberry pi 3

    Mobile and Embedded
    libjsoncpp qt creator raspberry pi webserver ldlibrarypath
    2
    2
    1627
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Saman19 last edited by

      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:

      1. /usr/bin/ld: skipping incompatible /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.so when searching for -ljsoncpp
      2. /usr/bin/ld: skipping incompatible /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.a when searching for -ljsoncpp
      aha_1980 1 Reply Last reply Reply Quote 0
      • aha_1980
        aha_1980 Lifetime Qt Champion @Saman19 last edited by

        @Saman19 said in using Jsoncpp library in Qt on Raspberry pi 3:

        /media/saman/62ca0b6d-6291-4c40-b1fd-11bc291e4a38/usr/lib/libjsoncpp.so

        1. 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
        
        1. Any reason you don't use Qt's built-in JSON support?

        Qt has to stay free or it will die.

        1 Reply Last reply Reply Quote 2
        • First post
          Last post