![]() |
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 Any ideas, I have tried in the forum over at qt.nokia.com without any usable answers. Kim |
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) http://www.plaatjesupload.nl/bekijk/...927960-690.png |
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 |
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