Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. using Jsoncpp library in Qt on Raspberry pi 3

using Jsoncpp library in Qt on Raspberry pi 3

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
libjsoncppqt creatorraspberry piwebserverldlibrarypath
2 Posts 2 Posters 2.0k Views
  • 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 Offline
    S Offline
    Saman19
    wrote on 20 Jan 2018, 06:09 last edited by
    #1

    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
    A 1 Reply Last reply 20 Jan 2018, 09:41
    0
    • S Saman19
      20 Jan 2018, 06:09

      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
      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 20 Jan 2018, 09:41 last edited by
      #2

      @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
      2

      2/2

      20 Jan 2018, 09:41

      • Login

      • Login or register to search.
      2 out of 2
      • First post
        2/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved