On 08/27/2010 05:52 PM, ext Antonio Cano Gómez wrote:

>>> mad g++ -c -pipe -O3 -fno-omit-frame-pointer
>>> -fno-optimize-sibling-calls -Wall -W -D_REENTRANT \
>>>    -DQT_GL_NO_SCISSOR_TEST
>>> -DQT_DEFAULT_TEXTURE_GLYPH_CACHE_WIDTH=1024 -DQT_NO_DEBUG
>>> -DQT_SQL_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED \
>>> -I/home/opt/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/share/qt4/mkspecs/linux-g++-maemo5
>>> -I../soccer2010
>>> -I/home/opt/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtCore
>>> -I/home/opt/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtGui
>>> -I/home/opt/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtSql
>>> -I/home/opt/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include
>>>  -I/usr/include -I. -I. -I../soccer2010 -I. -o main.o
>>> ../soccer2010/main.cpp

[ ... ]

>>> Makes the error:
>>>
>>> ../soccer2010/main.cpp:1:30: error: QtGui/QApplication: No such
>>> file or directory
>>> ../soccer2010/main.cpp:2:17: error: QtSql: No such file or directory
>> What does your main.cpp look like (especially the #include directives)?
>>
>
>   These are the first lines of the file main.cpp:
>
> #include<QtGui/QApplication>
> #include<QtSql>

Here are two approaches you could try (separately, NOT at the same time!):
(1) Enter the g++ command from above, but manually add this option:
-I/home/opt/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/
(2) Change the first #include directive to "#include <QApplication>".

I think either of these should make the first error message go away. If 
that is the case, then something is wrong with either the sysroot layout 
or the compiler options. Which version of the SDK is this?


Christian
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator

Reply via email to