Skip to content
  • 0 Votes
    2 Posts
    2k Views
    aha_1980A

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

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

    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?
  • 0 Votes
    4 Posts
    5k Views
    V

    Thanks for your answers; the problem was indeed the default configuration, my mistake was trusting the information in the "About panel" of Qt Creator; you also have to make sure you have chosen Qt 5.4.2 as the default configuration, just like on the image below: (Tools > Options > Build & Run > Kits > Make the right one the default)
    Qt 5.4.2 configuration

    Now the compilation runs fine and the program launches.

  • 0 Votes
    3 Posts
    4k Views
    D

    I have found a reason, why LD_LIBRARY_PATH, CPLUS_INCLUDE_PATH and LIBRARY_PATH variables were ignored by QtCreator: I use KDE and it does not load the .bashrc in the session, but the bash does. So in KDE when you open Konsole - your environment is populated from .bashrc, but other apps, not launched from console - have different environment. So for me the solution was to create $HOME/.kde/env/user.sh file like this:

    #!/bin/bash if [ -f ~/.username.bashrc ]; then . ~/.username.bashrc fi

    ~/.username.bashrc contains my environment variables.