[Qt-creator] Qt-creator Digest, Vol 23, Issue 42
"Antonio Cano Gómez"
antonio.cano.gomez at ovi.com
Fri Aug 27 17:52:49 CEST 2010
Hi Christian,
First of all, thank you very much for your answer.
> On 08/26/2010 09:08 PM, ext Antonio Cano G?mez wrote:
> > Hello I was receiving an error while using Nokia SDK on linuQtx so
> > I decided to do it my self with mad:
> >
> > After a llittle of research I found that the next instruction:
> >
> > 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
>
> Does this command come from mad make?
Yes. It comes from mad make. But I excecuted it directly on the the bash command line.
> > 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
>
> Does this also occur when you compile from Qt Creator?
Yes, exactly the same error.
> > I cheched the directories
> > /home/opt/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtGui
> > and
> > /home/opt/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-10.2010.19-1-slim/usr/include/QtSql
>
> 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>
#ifdef Q_OS_SYMBIAN
#include <eikenv.h>
#include <eikappui.h>
#include <aknenv.h>
#include <aknappui.h>
#endif
#include "mainwindow.h"
#include "conexionBD.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
if (!createConnection())
return 1;
MainWindow w;
Please, if your could provide me some help would be greatful. Otherwise I should reinstall Nokia SDK.
Thaks in advance!!
--------------------------------------------------------------
Ovi Mail: Making email access easy
http://mail.ovi.com
More information about the Qt-creator-old
mailing list