Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Creator suddenly can't find QtXml

Qt Creator suddenly can't find QtXml

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 4.6k Views 2 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.
  • hitbitH Offline
    hitbitH Offline
    hitbit
    wrote on last edited by
    #1

    Hello all,

    I'm new to Qt in general, and Qt Creator in particular, so please excuse me if this is the wrong forum.

    I'm developing an app that parses an Xml document. To that end, I've been using the QtXml library, and until today all has been fine. Today, however, Qt Creator keeps giving me "Cannot open include file: 'QtXml': No such file or directory". Pardon my language, but, WTF? It started happening after I included a new custom library to the test app; but, the error flags a line in a library that (until today) has worked fine, and the new library makes no reference to QtXml. Google has been utterly useless.

    I'm no stranger to the weird compiler errors C++ code can produce; but, I am absolutely flummoxed by this one. I would welcome any insight from the community or, failing that any hint as to how I can remove the library that (apparently) is causing the problem.

    Thanks in advance everyone.

    1 Reply Last reply
    0
    • hitbitH Offline
      hitbitH Offline
      hitbit
      wrote on last edited by
      #2

      I should also add that Tools->Locate has no problem finding the header file.

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #3

        Hi and welcome to devnet,

        Can you share your .pro file ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        hitbitH 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi and welcome to devnet,

          Can you share your .pro file ?

          hitbitH Offline
          hitbitH Offline
          hitbit
          wrote on last edited by
          #4

          @SGaist

          Hi and thanks for responding. There's no need now; I figured out a solution last night. I just recreated the project. I think the problem stemmed from moving the project between machines (though, as near as I can tell, both dev. environments are the same). Even so, if you're curious, here's the .pro file:

          QT += core
          QT += xml
          QT -= gui

          TARGET = TestDicomDictionary
          CONFIG += console
          CONFIG -= app_bundle

          TEMPLATE = app

          SOURCES += main.cpp

          win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../build-DicomDictionary-Desktop_Qt_5_5_1_MSVC2012_32bit-Debug/release/ -lDicomDictionary
          else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../build-DicomDictionary-Desktop_Qt_5_5_1_MSVC2012_32bit-Debug/debug/ -lDicomDictionary

          INCLUDEPATH += $$PWD/../DicomDictionary
          DEPENDPATH += $$PWD/../DicomDictionary

          I'd appreciate any additional insight you can provide. Thanks again.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            You should avoid hardcoding path like that in your .pro file. You should rather use OUT_PWD

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0

            • Login

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