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. Qt Creator 2.0.1 Multi Qt Versions Support Issue?
Forum Updated to NodeBB v4.3 + New Features

Qt Creator 2.0.1 Multi Qt Versions Support Issue?

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 3 Posters 3.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.
  • F Offline
    F Offline
    fzhu_genshare
    wrote on last edited by
    #1

    I have installed QT 4.7.0 with QT Creator 2.0.1 on Ubuntu 10 machine, and compile/install a standalone QT for Embedded Linux X86. Therefore I have 2 QT versions. Both version are enlisted manually in QT Creator's Option/QT4 dialog.

    In my project I found if targeted to QTSDK 4.7, everything works fine. But if targeted to QT 4.7 Embedded Linux X86, then each stock include<>, such as include <QApplication> and include <QString>, will has a wavy underline displayed...that means the header file cannot be found. But the build of the project will success, looks like the code editor and qmake use different way to find the header files.

    I have checked the generated Makefile, the INCPATH variable looks correct.

    The same configuration works fine on another machine which runs QT 4.6.2 and QT Creator 1.3.

    Can anyone give me some hint?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kalle
      wrote on last edited by
      #2

      Did you run make install when building Qt Embedded?

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fzhu_genshare
        wrote on last edited by
        #3

        I do make install when building Qt Embedded. It seems that all the files sit in the right place. The environment variables are pointed to the right folder. Building and running the project from within Qt Creator are success...

        Why the editor cannot found the header files?

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #4

          Where are your headers installed to?

          What do the include paths in the generated makefiles look like (the non-working one)?

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fzhu_genshare
            wrote on last edited by
            #5

            The header files of Qt/Embedded installed to /usr/local/Trolltech/Qt-4.7.0/include,

            The INCPATH in Makefile looks like:
            INCPATH = -I/usr/local/Trolltech/Qt-4.7.0/mkspecs/qws/linux-x86-g++ -I. -I/usr/local/Trolltech/Qt-4.7.0/include/QtCore -I/usr/local/Trolltech/Qt-4.7.0/include/QtNetwork -I/usr/local/Trolltech/Qt-4.7.0/include/QtGui -I/usr/local/Trolltech/Qt-4.7.0/include -I. -Iinclude -I. -I.

            The makefiles are all generated by qmake.

            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