Problem calling RConnectionMonitor symbian C++ api on qt
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 .
[url]http://www.developer.nokia.com/Community/Wiki/Archived:Using_Symbian_C%2B%2B_Audio_APIs_in_a_Qt_app[/url]
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 ?
Re: Problem calling RConnectionMonitor symbian C++ api on qt
did you also include the library for the API?
Re: Problem calling RConnectionMonitor symbian C++ api on qt
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
Re: Problem calling RConnectionMonitor symbian C++ api on qt
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: [url]http://library.developer.nokia.com/[/url]
2. type RConnectionMonitor to search field
3. click to open docs for RConnectionMonitor
4. find the line that says [B]Link against: CONNMON.LIB[/B]
5. Add the library into your project
Re: Problem calling RConnectionMonitor symbian C++ api on qt
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
Re: Problem calling RConnectionMonitor symbian C++ api on qt
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.
Re: Problem calling RConnectionMonitor symbian C++ api on qt
ok, But is there any API for getting Wifi BSSIDS in Symbian^3 API.
Re: Problem calling RConnectionMonitor symbian C++ api on qt
I would have no idea, anyway, quickly search reveals that wizard knows something: [url]http://www.developer.nokia.com/Community/Discussion/showthread.php?113624-BSSID-ESSID-of-WIFI-AP[/url]
Re: Problem calling RConnectionMonitor symbian C++ api on qt
Thanks any way, I'll try solving the problem. :)