Help me compile this web service application PLEASE!!!!



  • Finally after almost 4 days of non stop work I THINK I may have got some correct XML Qt bindings for my application for the Nokia N9.

    I REALLY REALLY need help with this guys, I'm really struggling and banging my head against the desk, almost gonna give up on Qt!

    But I'm having trouble compiling the application - it complains about undefined references to KDSoap......

    I will upload the Qt project folder and the needed files for compilation for people to help me:

    The following is the Qt project folder, unzip and open the .pro file with QtCreator.

    http://www.mediafire.com/?6u88cptrjxqnpg9

    And the following is the KDsoap application, you need to untar and change the INCLUDELIBS path to point to the include folder:

    http://www.mediafire.com/?s76n8a2gt655d53

    In the meantime the following is the first few (of around 1500) error messages!

    @
    13:50:10: Running build steps for project ebayws_test...
    13:50:10: Configuration unchanged, skipping qmake step.
    13:50:10: Starting: "/usr/bin/make" -w
    make: Entering directory /home/tux/workspace-qt/ebayws_test-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release' /home/tux/QtSDK/Desktop/Qt/474/gcc/bin/qmake -spec ../../QtSDK/Desktop/Qt/474/gcc/mkspecs/linux-g++ -o Makefile ../ebayws_test/ebayws_test.pro make: Leaving directory/home/tux/workspace-qt/ebayws_test-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release'
    make: Entering directory /home/tux/workspace-qt/ebayws_test-build-desktop-Desktop_Qt_4_7_4_for_GCC__Qt_SDK__Release' g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../QtSDK/Desktop/Qt/474/gcc/mkspecs/linux-g++ -I../ebayws_test -I../../QtSDK/Desktop/Qt/474/gcc/include/QtCore -I../../QtSDK/Desktop/Qt/474/gcc/include/QtGui -I../../QtSDK/Desktop/Qt/474/gcc/include -I../../development/kd_soap-1.1.0-source/include -I. -I. -I../ebayws_test -I. -o main.o ../ebayws_test/main.cpp ../ebayws_test/main.cpp: In function 'int main(int, char**)': ../ebayws_test/main.cpp:10:9: warning: unused variable 'i' g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../QtSDK/Desktop/Qt/474/gcc/mkspecs/linux-g++ -I../ebayws_test -I../../QtSDK/Desktop/Qt/474/gcc/include/QtCore -I../../QtSDK/Desktop/Qt/474/gcc/include/QtGui -I../../QtSDK/Desktop/Qt/474/gcc/include -I../../development/kd_soap-1.1.0-source/include -I. -I. -I../ebayws_test -I. -o wsdl_FindingService.o ../ebayws_test/kdsoap/wsdl_FindingService.cpp In file included from ../ebayws_test/kdsoap/wsdl_FindingService.cpp:4:0: ../ebayws_test/kdsoap/wsdl_FindingService.h:1934:29: warning: type qualifiers ignored on function return type ../ebayws_test/kdsoap/wsdl_FindingService.h:2086:29: warning: type qualifiers ignored on function return type ../ebayws_test/kdsoap/wsdl_FindingService.cpp:7575:40: warning: type qualifiers ignored on function return type ../ebayws_test/kdsoap/wsdl_FindingService.cpp:8162:38: warning: type qualifiers ignored on function return type /home/tux/QtSDK/Desktop/Qt/474/gcc/bin/moc -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../QtSDK/Desktop/Qt/474/gcc/mkspecs/linux-g++ -I../ebayws_test -I../../QtSDK/Desktop/Qt/474/gcc/include/QtCore -I../../QtSDK/Desktop/Qt/474/gcc/include/QtGui -I../../QtSDK/Desktop/Qt/474/gcc/include -I../../development/kd_soap-1.1.0-source/include -I. -I. -I../ebayws_test -I. ../ebayws_test/kdsoap/wsdl_FindingService.h -o moc_wsdl_FindingService.cpp g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -I../../QtSDK/Desktop/Qt/474/gcc/mkspecs/linux-g++ -I../ebayws_test -I../../QtSDK/Desktop/Qt/474/gcc/include/QtCore -I../../QtSDK/Desktop/Qt/474/gcc/include/QtGui -I../../QtSDK/Desktop/Qt/474/gcc/include -I../../development/kd_soap-1.1.0-source/include -I. -I. -I../ebayws_test -I. -o moc_wsdl_FindingService.o moc_wsdl_FindingService.cpp In file included from moc_wsdl_FindingService.cpp:10:0: ../ebayws_test/kdsoap/wsdl_FindingService.h:1934:29: warning: type qualifiers ignored on function return type ../ebayws_test/kdsoap/wsdl_FindingService.h:2086:29: warning: type qualifiers ignored on function return type g++ -Wl,-O1 -Wl,-rpath,/home/tux/QtSDK/Desktop/Qt/474/gcc/lib -o ebayws_test main.o mainwindow.o wsdl_FindingService.o moc_mainwindow.o moc_wsdl_FindingService.o -L/home/tux/QtSDK/Desktop/Qt/474/gcc/lib -lQtGui -lQtCore -lpthread wsdl_FindingService.o: In functionTNS__FindItemsForFavoriteSearchRequest::startTimeFrom() const':
    wsdl_FindingService.cpp:(.text+0x253c): undefined reference to KDDateTime::KDDateTime(KDDateTime const&)' wsdl_FindingService.o: In functionTNS__FindItemsForFavoriteSearchRequest::PrivateDPtr::PrivateDPtr()':
    wsdl_FindingService.cpp:(.text+0x31d9): undefined reference to KDDateTime::KDDateTime()' wsdl_FindingService.cpp:(.text+0x3212): undefined reference toKDDateTime::~KDDateTime()'
    wsdl_FindingService.o: In function TNS__BaseServiceRequest::serialize(QString const&) const': wsdl_FindingService.cpp:(.text+0x362b): undefined reference toKDSoapValue::KDSoapValue(QString const&, QVariant const&, QString const&, QString const&)'
    @



  • Okay people I think I've solved it!!!!

    The problem was that the header file was included in the project, but corresponding definition (i.e. either a library or the .cpp file!) was not! I should have seen this ages ago!

    Anyway after I included the actual CPP and .H files it compiled properly!

    The only problem is the code is GPL - could I create a library and use this code in my application?



  • [quote author="rash.m2k" date="1325442377"]
    The only problem is the code is GPL - could I create a library and use this code in my application?[/quote]

    You'd better ask this the KDAB guys.



  • [quote author="Volker" date="1325442606"]
    [quote author="rash.m2k" date="1325442377"]
    The only problem is the code is GPL - could I create a library and use this code in my application?[/quote]

    You'd better ask this the KDAB guys.[/quote]
    ... true, but I would think: no, unless your application is GPL too.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.