Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QJsonObject: No such file or directory
Forum Updated to NodeBB v4.3 + New Features

QJsonObject: No such file or directory

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 4.0k Views 1 Watching
  • 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.
  • L Offline
    L Offline
    linus 0
    wrote on last edited by
    #1

    qt5 in ubuntu16.04,
    qmake -v
    QMake version 3.0
    Using Qt version 5.5.1 in /usr/lib/x86_64-linux-gnu

    locate QJsonObject
    /usr/include/x86_64-linux-gnu/qt5/QtCore/QJsonObject

    ../../include/NSUtility/NSJsonConvert.h:9:23: fatal error: QJsonObject: No such file or directory
    #include <QJsonObject>
    ^
    compilation terminated.
    Makefile:227: recipe for target 'NSJsonConvert.o' failed
    make[1]: *** [NSJsonConvert.o] Error 1
    make[1]: Leaving directory '/home/xinghai/workspace/netSCADA/code/Common/Utility'
    Makefile:154: recipe for target 'sub-Common-Utility-make_first' failed
    make: *** [sub-Common-Utility-make_first] Error 2

    thank you in advance. ~~~~~~

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      When NSJsonConvert is being compiled, the compiled does not have QJsonObject header included. Do you build using qmake? Can we see the .pro file?

      (Z(:^

      1 Reply Last reply
      2

      • Login

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