Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User Nithin_GNK's Avatar
    Join Date
    Nov 2012
    Posts
    10
    Hi,

    I am using qt 4.7.0 with qt creator 2.0.1.
    I am trying to call the native symbian APIs for an app for s60 3rd Edition FP2 mobile. I found an example of sampleAudio from the forums. It built without any errors and worked .
    http://www.developer.nokia.com/Commu...Is_in_a_Qt_app


    Now I am trying to access the RConnectionMonitor class and added the lib files and header files to the folder of sdk.
    On Building I constantly receive the error "Undefined reference to RConnectionMonitor::connectL()"

    I find the header files included . Can any one suggest what is that i am doing wrong ?

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    did you also include the library for the API?

  3. #3
    Registered User Nithin_GNK's Avatar
    Join Date
    Nov 2012
    Posts
    10
    Yeah, I copied the .lib files into the lib folder and added it in the .pro file as

    LIBS += -lecom

    Because RconnectionMonitor is defined in ecom.h and ecom.cpp

  4. #4
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    actually you would need to chec SDK docs on which SDK library the RConnectionMonitor API is included, and then add it to your project.

    So
    1. go to: http://library.developer.nokia.com/
    2. type RConnectionMonitor to search field
    3. click to open docs for RConnectionMonitor
    4. find the line that says Link against: CONNMON.LIB
    5. Add the library into your project

  5. #5
    Registered User Nithin_GNK's Avatar
    Join Date
    Nov 2012
    Posts
    10
    Well I linked the connmon.lib and again obtaining the same error

    symbian {
    TARGET.UID3 = 0xedd307e8
    TARGET.CAPABILITY = ReadUSerData \
    WriteUserData \
    NetworkServices \
    LocalServices
    LIBS += -lconnmon

    TARGET.EPOCSTACKSIZE = 0x14000
    TARGET.EPOCHEAPSIZE = 0x020000 0x800000



    1. I copied the header files and lib files from s60 3rd edition sdk to nokiaqtsdk
    2. Then i am calling the functions and linking the connmon library.


    Is there anything i am doing wrong

  6. #6
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    Generally copying libraries is not good idea, and you should not use 3rd ed libraries with Qt 4.7, with Qt 4.7 you are likely targeting Symbian^3, so you should try the libraries from Symbian^3 SDKs. Anyway, could be also that libraries from Symbian SDKs are having compatibility issues, so generally you would do it in your own risk.

    All and all, I would then not know what could be causing the error, basically you get "Undefined reference" errors when you are missing the implementation, so if you copied all necessary files to all necessary places for the project, and indeed added the library inclusion, then it should in theory work just fine.

  7. #7
    Registered User Nithin_GNK's Avatar
    Join Date
    Nov 2012
    Posts
    10
    ok, But is there any API for getting Wifi BSSIDS in Symbian^3 API.

  8. #8
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,712
    I would have no idea, anyway, quickly search reveals that wizard knows something: http://www.developer.nokia.com/Commu...SID-of-WIFI-AP

  9. #9
    Registered User Nithin_GNK's Avatar
    Join Date
    Nov 2012
    Posts
    10
    Thanks any way, I'll try solving the problem.

Similar Threads

  1. RConnectionMonitor + RConnection problem
    By cglolo in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2010-11-24, 05:31
  2. Replies: 3
    Last Post: 2010-01-06, 09:22
  3. RConnectionMonitor problem
    By mundial in forum Symbian C++
    Replies: 41
    Last Post: 2009-04-17, 09:35
  4. RConnectionMonitor problem. Pls help!!
    By psonali in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2009-04-09, 10:19
  5. RConnectionMonitor API problem;Help me
    By mundial in forum Symbian C++
    Replies: 1
    Last Post: 2009-02-20, 17:16

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved