Unsolved *.h - No such file or directory - but it exist !
-
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 -
..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? -
@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 addingafter 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/QtSvgIt 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_QTIs 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 -
This post is deleted! -
@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