Active Topics

 


Reply
Thread Tools
kif's Avatar
Posts: 60 | Thanked: 40 times | Joined on May 2010 @ Skovballe, Denmark
#1
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's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#2
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:
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations
 
Berserk's Avatar
Posts: 199 | Thanked: 156 times | Joined on May 2010 @ Holland
#3
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
__________________
Wallpaeper - Desktop background manager (in Extras!)
Config Reader - Export all Gconf to an HTML file + compare feature (Extras-testing)
Even though these programs are available for free, I would appreciate any donations
 

The Following User Says Thank You to Berserk For This Useful Post:
kif's Avatar
Posts: 60 | Thanked: 40 times | Joined on May 2010 @ Skovballe, Denmark
#4
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
 

The Following User Says Thank You to kif For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 23:14.