Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. *.h - No such file or directory - but it exist !

*.h - No such file or directory - but it exist !

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
5 Posts 3 Posters 2.9k 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.
  • R Offline
    R Offline
    ranshalit
    wrote on last edited by ranshalit
    #1

    Hello,

    I've cross compiles successfully Qt4.8 with opengl support.
    I find in the compiled files QtDeclerative.h :
    /q48_install/include/Qt/qdeclarativeview.h
    But On building the example shadeeffect, I get error:
    QtDeclerative/QtDeclerativeView no such file or directory.
    Is it some missing define in mkspec file ?
    Or an environment to project PATH or something like that ?

    Is this the way to solve this issue ?

    Best Regards,
    Ran

    1 Reply Last reply
    0
    • Chris KawaC Online
      Chris KawaC Online
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      ..successfully Qt4.8 with...
      /qt5_1_install...

      So which is it? Seems like you've mixed up some paths.
      What Qt versions do you have sources for? What compiler did you use? What platform are you on? How did you compile and install it? What is the installation dir? Which IDE do you use? Any other info you can think of that could be relevant?

      R 1 Reply Last reply
      0
      • R Offline
        R Offline
        ranshalit
        wrote on last edited by ranshalit
        #3

        @Chris-Kawa
        Hi Chris,
        Thank you very much for the assistance.
        It is TI's arm, qt 4.8.1
        I've made some tests with q5.x on the way, so it seems like mix, but it isn't , just the nsame of the install folder was wrong.
        Eventually it is only qt 4.8.1 which I installed (with opengl support).

        Anyway, I've solved the error, but I'm not sure if it is the "right" way, so I appreciate your feedback:
        After adding

        after adding in mkspiec/[platform]qmake.conf the following:
        QMAKE_INCDIR += /qt4_8_install/include
        QMAKE_INCDIR += /qt4_8_install/include/Qt
        QMAKE_INCDIR += /qt4_8_install/include/QtDeclarative
        QMAKE_INCDIR += /qt4_8_install/include/Qt3Support
        QMAKE_INCDIR += /qt4_8_install/include/QtNetwork
        QMAKE_INCDIR += /qt4_8_install/include/QtScriptTools
        QMAKE_INCDIR += /qt4_8_install/include/QtTest
        QMAKE_INCDIR += /qt4_8_install/include/QtGui
        QMAKE_INCDIR += /qt4_8_install/include/QtOpenGL
        QMAKE_INCDIR += /qt4_8_install/include/QtSql
        QMAKE_INCDIR += /qt4_8_install/include/QtXml
        QMAKE_INCDIR += /qt4_8_install/include/QtCore
        QMAKE_INCDIR += /qt4_8_install/include/QtMultimedia
        QMAKE_INCDIR += /qt4_8_install/include/QtScript
        QMAKE_INCDIR += /qt4_8_install/include/QtSvg

        It passed the compile, but then gave ld error with -lqtdeclerative
        So I also added the following and it seems to be OK.
        QMAKE_LIBDIR_QT = /qt4_8_install/lib
        QMAKE_LIBDIR += $$QMAKE_LIBDIR_QT

        Is that the correct wasy to solve it ?
        The complete qmake.conf is here:
        [https://drive.google.com/file/d/0B22GsWueReZTcFNWSnhDVERPb2M/view?usp=sharing](link url)

        Thank you very much!
        Ran

        1 Reply Last reply
        0
        • Chris KawaC Chris Kawa

          ..successfully Qt4.8 with...
          /qt5_1_install...

          So which is it? Seems like you've mixed up some paths.
          What Qt versions do you have sources for? What compiler did you use? What platform are you on? How did you compile and install it? What is the installation dir? Which IDE do you use? Any other info you can think of that could be relevant?

          R Offline
          R Offline
          ranshalit
          wrote on last edited by
          #4
          This post is deleted!
          1 Reply Last reply
          0
          • JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by
            #5

            @ranshalit said:

            Is that the correct wasy to solve it ?

            I recommend that you don't edit qmake.conf.

            The correct way to solve it: Add this line to your *.pro file:

            QT += declarative

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            1 Reply Last reply
            1

            • Login

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