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. [SOLVED]:Qt Creator can't find header files from C++ STL library
Forum Updated to NodeBB v4.3 + New Features

[SOLVED]:Qt Creator can't find header files from C++ STL library

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 3 Posters 8.9k 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.
  • K Offline
    K Offline
    kripperda
    wrote on 20 Oct 2014, 18:06 last edited by
    #1

    Hello,
    I am relatively new to Qt development and have purchsed the Embedded Enterprise version of Qt. I have used the online installer to install Qt 5.3 and am targeting an embedded linux device (Sabre SD i.MX6) platform. I can successfully build my application for a desktop build but when I build for the target embedded device I get compile errors in that it can not find <utility>. From my understanidng this is a C++ standard template library file that can not be found. I have installed and verified that the g++ compiler is present. It was my impression that when I downloaded and installed the Enterprise binaries that everything was ready to go for the embedded device. When I ran the evaluation of Qt Enterprise I didn't run into these types of problems.

    Any thoughts on what is not setup correctly and is causing my frustration? Any help would be appreciated.

    Thanks

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tucnak
      wrote on 20 Oct 2014, 18:31 last edited by
      #2

      Hey, ~kripperda!

      Welcome to Qt Developer Network. As far as I understood, your Qt Creator setup can't see STL libraries. It's most probably caused by invalid "Build & Run" settings, so you would better start with looking carefully, which Kit is used for your current project. Then, make sure that compiler, linked to this Kit actually exists and its include headers are present.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kripperda
        wrote on 20 Oct 2014, 19:18 last edited by
        #3

        To my knowledge, everything looks to point to the correct build kit for my project.

        The compiler path is
        home/Qt/Boot2Qt-3.x/imx6qsabresd-eLinux/toolchain/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-g++

        qmake is located at:
        /home/Qt/Boot2Qt-3.x/imx6qsabresd-eLinux/qt5/bin/qmake

        This came pre-packaged with the binaries I downloaded for the Enterprise version of Qt, so I would expect that everything is correctly there.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 20 Oct 2014, 19:41 last edited by
          #4

          Hi and welcome to devnet,

          To add to tucnak, since you are using a commercial product, you should also ask the commercial support for help

          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
          • K Offline
            K Offline
            kripperda
            wrote on 23 Oct 2014, 14:15 last edited by
            #5

            Update - Resolved: Issue was a mis-configured compiler flag in the project file

            I had overwritten the CXXFLAGS with
            QMAKE_CXXFLAGS = -Wmissing-field-initializers
            when it should have been a +=: QMAKE_CXXFLAGS += -Wmissing-field-initializers to add instead of overwrite

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 23 Oct 2014, 22:51 last edited by
              #6

              Nice you found out and thanks for sharing.

              Since you have it working now please update the thread title prepending [solved] so other forum users may know a solution has been found :)

              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

              5/6

              23 Oct 2014, 14:15

              • Login

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