maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Cannot build app using QtService (https://talk.maemo.org/showthread.php?t=63182)

kif 2010-09-30 22:04

Cannot build app using QtService
 
Hi

I'm trying to create a small application in Nokia SDK using the QtService objects.

In Qt Creator everything is fine, the objects are recognized, and I can access all the properties and methods.

But when I try to build the application I get the following error : "error: qtservice.h: No such file or directory", and that even as I can see the source path in the g++ commandline : "-I/home/kif/NokiaQtSDK/QtService/src"

Code:

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_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/home/kif/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/share/qt4/mkspecs/linux-g++-maemo5 -I../callloggerd -I/home/kif/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/include/QtCore -I/home/kif/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/include/QtNetwork -I/home/kif/NokiaQtSDK/Maemo/4.6.2/sysroots/fremantle-arm-sysroot-1030-slim/usr/include -I/home/kif/NokiaQtSDK/QtService/src -I. -I../callloggerd -I. -o callloggerdaemon.o ../callloggerd/callloggerdaemon.cpp
In file included from ../callloggerd/callloggerdaemon.cpp:1:
../callloggerd/callloggerdaemon.h:5:23: error: qtservice.h: No such file or directory
In file included from ../callloggerd/callloggerdaemon.cpp:1:
../callloggerd/callloggerdaemon.h:8: error: expected class-name before '{' token
../callloggerd/callloggerdaemon.cpp: In constructor 'CallLoggerDaemon::CallLoggerDaemon(QObject*)':
../callloggerd/callloggerdaemon.cpp:5: error: class 'CallLoggerDaemon' does not have any field named 'QtService'
make: *** [callloggerdaemon.o] Error 1
make: Leaving directory `/home/kif/Development/PhoneLogger/CallLogger/CallLoggerd/callloggerd-build-maemo'
The process "/usr/bin/make" exited with code %2.
Error while building project callloggerd (target: Maemo)
When executing build step 'Make'

I have tried to introduce an error in qtservice.h, then the compilation stops there, so it can find the file !

Any ideas, I have tried in the forum over at qt.nokia.com without any usable answers.

Kim

Berserk 2010-10-01 13:41

Re: Cannot build app using QtService
 
I haven't tried to build the things below, and I don't know how you did it, but you might try this:

After some searching, I've downloaded QtService from here.
From that opensource archive, I've renamed the 'src' directory to 'qtservice' and copied it into my own 'src' directory, where all my sources are.

Then I added this to my src.pro file:
Code:

include(qtservice/qtservice.pri)
And it shows up in the project-tree:
http://www.plaatjesupload.nl/bekijk/...927960-690.png

Berserk 2010-10-01 16:27

Re: Cannot build app using QtService
 
Oh by the way, I think you need to include the whole 'qtservice-2.6_1-opensource' directory, because qtservice.pri includes ../common.pri, which is in that main directory.
I guess you have to include all those .pri's

kif 2010-10-01 20:05

Re: Cannot build app using QtService
 
Hi Berserk

Well, the one I'm trying to use is the same, but installed in a sub directory under NokiaSDK, and My QtCreator looks a lot like yours, but as stated wouldn't build.

I now have moved the source folder, as you suggested, and QtCreator still looks the same, but now i can build (and I do not need to include any other pri's) :)

Thanks a lot.

Kim


All times are GMT. The time now is 02:21.

vBulletin® Version 3.8.8