×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    May 2010
    Posts
    56

    QtMobility Network Support - Linking Issues

    Hello,

    I'm working on an application that uses QNetworkAccessManager, QNetworkRequest, and QNetworkReply to access a webservice. At the begining it wouldn't even compile because of missing header files, after I changed the #include's to have the relative path to the header file now it compiles but it won't link, i get a buch of undefined references on the above mentioned classes.

    I've added the "MOBILITY += bearer" and "TARGET.CAPABILITY += ReadUserData NetworkServices" to my .PRO file without any luck, here's the whole file:

    Code:
    #-------------------------------------------------
    #
    # Project created by QtCreator 2010-05-19T21:49:53
    #
    #-------------------------------------------------
    
    QT       += core gui network
    
    TARGET = Locator
    TEMPLATE = app
    
    
    SOURCES += main.cpp\
            settings.cpp \
        locator.cpp
    
    HEADERS  += settings.h \
        locator.h
    
    #    ../src/network/access/qnetworkrequest.h\
    #    ../src/network/access/qnetworkreply.h\
    #    ../src/network/access/qnetworkdiskcache.h
    
    FORMS    += settings.ui
    
    #LIBS += -lesock  -lconnmon -linsock
    
    #INCLUDEPATH += $$QT_SOURCE_TREE/src/network/access/
    
    CONFIG += mobility
    MOBILITY += location bearer
    
    symbian {
        TARGET.UID3 = 0xe8db90e9
        TARGET.CAPABILITY += Location ReadUserData NetworkServices
        TARGET.EPOCSTACKSIZE = 0x14000
        TARGET.EPOCHEAPSIZE = 0x020000 0x800000
        #LIBS += $$quote(C:/NokiaQtSDK/Symbian/SDK/lib/QtNetwork.prl)
    }
    
    OTHER_FILES +=
    All the commented lines are things that I tried. What else would I need to be able to build my project?

    TIA,
    Fernan

  2. #2
    Regular Contributor
    Join Date
    May 2010
    Posts
    56

    Re: QtMobility Network Support - Linking Issues

    I figured it out!

    I just add to re-run qmake manually, it doesn't run as part of the normal build process, even after a make clean it's always skipped. I will pay more attention to the 1st line of the build output

    The weird thing is that I didn't had to do that when I added the mobility lib adn Location capability.

  3. #3
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QtMobility Network Support - Linking Issues

    It should happen automatically under Carbide if Carbide figures out that the file has changed. I thought the same was true of Creator, but it may depend on whether the editing is done inside or outside of the tool.

  4. #4
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: QtMobility Network Support - Linking Issues

    Quote Originally Posted by danhicksbyron View Post
    It should happen automatically under Carbide if Carbide figures out that the file has changed. I thought the same was true of Creator, but it may depend on whether the editing is done inside or outside of the tool.
    This is problem of qmake, and Qt Creator is involved only due to a fact it's using qmake. If one changes content of project file and run make, it won't cause qmake to be run. In this sense qmake is very different from autotools and cmake. It doesn't really matter where editing was done as it checks modification time of files.

  5. #5
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: QtMobility Network Support - Linking Issues

    Generally when I modify the pro file under Carbide qmake is run (right after the file is saved). Sometimes not, but usually.

  6. #6
    Nokia Developer Expert
    Join Date
    May 2009
    Posts
    22

    Re: QtMobility Network Support - Linking Issues

    Hi,

    the same should apply to Qt Creator, if it doesn't please open a bug report. Btw. I found a similar (though not identical) item at http://bugreports.qt.nokia.com/browse/QTCREATORBUG-231 so once again, please open a ticket.

    BR,
    Maurice

Similar Threads

  1. SocketConnection Issues in CDMA Network
    By Anil_Karam in forum Mobile Java General
    Replies: 3
    Last Post: 2008-12-10, 05:55
  2. Will Nokia support 100% MIDP 2.0???
    By gicio in forum Mobile Java Networking & Messaging & Security
    Replies: 5
    Last Post: 2003-08-18, 11:23
  3. Nokia 7650 support Bluetooth audo?
    By ovjo12 in forum Bluetooth Technology
    Replies: 5
    Last Post: 2003-07-17, 18:50
  4. Does Nokia MMSC support any network and any MMS device?
    By robknobben in forum General Messaging
    Replies: 1
    Last Post: 2002-08-12, 04:17

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×