Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Private header warnings on building Qt Creator. What do they mean?
Forum Updated to NodeBB v4.3 + New Features

Private header warnings on building Qt Creator. What do they mean?

Scheduled Pinned Locked Moved Installation and Deployment
4 Posts 2 Posters 11.7k 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.
  • ocgltdO Offline
    ocgltdO Offline
    ocgltd
    wrote on last edited by
    #1

    I'm trying to build Qt Creator 2.8.1 onto my CentOS 6.4 (with qt 5.1.1 libraries from yum). Qmake returns a few interesting errors which I don't understand. What is 'private header'?
    Can someone explain what the private header warning means? And how do I resolve it? (The app I wish to compile will run on systems without the exact same version of Qt I'm using):

    @Reading /usr/src/qtcreator/qt-creator-2.8.1-src/src/plugins/designer/designer.pro
    Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
    Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
    Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!@

    and

    @Reading /usr/src/qtcreator/qt-creator-2.8.1-src/src/plugins/qnx/qnx.pro
    Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
    Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
    Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!@

    and

    @Reading /usr/src/qtcreator/qt-creator-2.8.1-src/src/plugins/qmldesigner/qmldesignerplugin.pro
    Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
    Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
    Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!@

    and

    @Reading /usr/src/qtcreator/qt-creator-2.8.1-src/src/tools/qmlpuppet/qmlpuppet/qmlpuppet.pro
    Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
    Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
    Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!@

    and

    @Reading /usr/src/qtcreator/qt-creator-2.8.1-src/src/tools/qml2puppet/qml2puppet/qml2puppet.pro
    Project MESSAGE: This project is using private headers and will therefore be tied to this specific Qt module build version.
    Project MESSAGE: Running this project against other versions of the Qt modules may crash at any arbitrary point.
    Project MESSAGE: This is not a bug, but a result of using Qt internals. You have been warned!@

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

      Hi and welcome to devnet,

      This is nothing you have to worry about for your future development. The Qt version used to build Qt Creator doesn't affect which version you use to build your software (they can be the same though)

      This warning just tells you that Qt Creator is using some part of Qt that are not public (as in the public API you will use) so if you replace the Qt libraries with another version, the private implementation might have change so Qt Creator would crash.

      Hope it clarifies things

      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
      • ocgltdO Offline
        ocgltdO Offline
        ocgltd
        wrote on last edited by
        #3

        Ok - so this only affects QT Creator (not the apps I compile using QT Creator). I assume this also means that if I update any qt5-* packages using yum, that I will have to recompile QT Creator?
        Thanks

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

          Yes and yes. The private implementation might change from a version to another so you won't know how if it will break or not.

          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