×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Question Qt Creator and Harmattan "No such file or directory"

    I have a problem with Qt Creator and Harmattan projects. I seem to get "No such file or directory" errors for all the libraries. If I create a new project using Qt Quick Components for Meego/Harmattan and choose Qt Simulator and Harmattan as targets and set it to run in Qt Simulator, everything is OK. If, however, I change the target to Harmattan it will underline the following with a green colour:

    Code:
    #include <QtGui/QApplication>
    When hovering over it, I get "No such file or directory". Basically it does this with all the libraries which are not included with the project itself. But running the project works just fine. Switching back to Qt Simulator removes those errors until I go back to Harmattan.

    As I said, everything works, but it's still very annoying, since all the auto completes and such do not work when Harmattan is set as the target, which really slows down my coding.

    I've tried this in tow different computers and I get exactly the same results. Both are running Windows 7 64 bit. I've had this problem for quite a while and upgrading the Qt SDK has not solved this, nor reinstalling it. I got now the latest version. Qt Creator is 2.3.1.

    Has anyone else encountered this problem? How to fix this? Or is this a bug with Qt Creator/Harmattan?

    Cheers
    http://www.ic-mobile.com/

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Qt Creator and Harmattan "No such file or directory"

    Yes, i am facing same problem..

  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,081

    Re: Qt Creator and Harmattan "No such file or directory"

    Anyone solved it? i am facing the same, found some threads stating that we need to add the include path by ourselves in the .pro file, but no use...

  4. #4
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,081

    Re: Qt Creator and Harmattan "No such file or directory"

    Resolved it. Need to manually specify the include path in the .pro file of the harmattan project. For e.g:

    INCLUDEPATH += /usr/include/qt4

    Can also include other paths as well, as per the needs...

  5. #5
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Re: Qt Creator and Harmattan "No such file or directory"

    Quote Originally Posted by vineet.jain View Post
    Resolved it. Need to manually specify the include path in the .pro file of the harmattan project. For e.g:

    INCLUDEPATH += /usr/include/qt4

    Can also include other paths as well, as per the needs...
    Sorry, but this might be a silly question. Where should that INCLUDEPATH point to? I copied that into my .pro file and it still doesn't work.

    Cheers
    http://www.ic-mobile.com/

  6. #6
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,081

    Re: Qt Creator and Harmattan "No such file or directory"

    Already posted this:

    INCLUDEPATH += /usr/include/qt4

    this should work.You can similarly add more headers, like :
    INCLUDEPATH += /usr/include/qt4/QtCore

    depending upon the usage of Qt headers in your project.

    To be specific, the above path in the SDK is: C:\QtSDK\Madde\sysroots\harmattan-nokia-meego-arm-sysroot-1122-slim\usr

  7. #7
    Super Contributor
    Join Date
    Oct 2008
    Location
    INDIA
    Posts
    2,326

    Re: Qt Creator and Harmattan "No such file or directory"

    Bug report was filed here and and solution is stated below : https://bugreports.qt.nokia.com/brow...REATORBUG-6419

    regards,
    rahul

  8. #8
    Registered User
    Join Date
    Jan 2010
    Posts
    272

    Re: Qt Creator and Harmattan "No such file or directory"

    Thanks, now it works. I had add each library separately, but that did the trick.
    http://www.ic-mobile.com/

Similar Threads

  1. Replies: 6
    Last Post: 2011-07-27, 18:41
  2. "QtSql: no such file or directory" on N8
    By jounihat in forum [Archived] Qt SDKs and Tools
    Replies: 30
    Last Post: 2010-11-14, 21:19
  3. Replies: 8
    Last Post: 2009-11-06, 21:42
  4. Carbide C++: "myproject.rsg: No such file or directory"
    By juannoguera in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2008-12-08, 14:35
  5. free complete download file "smartclock" n "smartdisplay" for nokia 9210i
    By pitbulls in forum General Development Questions
    Replies: 0
    Last Post: 2004-01-24, 12:01

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×