×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    99

    Using some Symbian calls from Qt...

    This is what i want to do:
    Code:
        RWindowGroup* wg = &CCoeEnv::Static()->RootWin();
        wg->SetOrdinalPosition(-1);
    This is the error i get at link time on symbian target:

    Code:
    /NokiaQtSDK/Symbian/SDK/EPOC32/BUILD/Progetti/QtFreeTrack/FREETRACK_0XED3FC3A3/GCCE/UREL/freetrack.o: In function `FreeTrack::hideMe()': 
    freetrack.cpp:(.text+0xe): undefined reference to `CCoeEnv::Static()' 
    freetrack.cpp:(.text+0x18): undefined reference to `RWindowTreeNode::SetOrdinalPosition(int)' 
    make[2]: *** [\NokiaQtSDK\Symbian\SDK\epoc32\release\gcce\urel\FreeTrack.exe] Error 1
    I do understand the error... what i do not understand (and i did some extensive search) is how to tell the build process to link the proper library, nor which is the proper library, and if i have it bundled with the Nokia Qt SDK 1.0...

    please help.

  2. #2
    Registered User
    Join Date
    Dec 2007
    Location
    Oslo
    Posts
    12

    Re: Using some Symbian calls from Qt...

    If you want to call functions in CONE or WSERV, then you need to link against the libraries that contain those symbols so add the following to your .pro file:

    LIBS += -lcone -lws32

    But in the meantime, why are you using Symbian specific code for this? Calling QWidget::lower() should have the same effect:


    http://doc.trolltech.com/4.6/qwidget.html#lower

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    99

    Re: Using some Symbian calls from Qt...

    Ok, this was not documented anywhere, and doing some googl-ing it seemed that lower would not work. I will try soon.
    That would fix my problem, anyway thanks i was missing -lcone from my libs section.

  4. #4
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Using some Symbian calls from Qt...

    Quote Originally Posted by gardiol View Post
    Ok, this was not documented anywhere, and doing some googl-ing it seemed that lower would not work.
    Well http://doc.trolltech.com/4.6/qwidget.html#lower

  5. #5
    Registered User
    Join Date
    Feb 2008
    Posts
    209

    Re: Using some Symbian calls from Qt...

    Hi thanks for reply,

    Actually i am getting run error, actually application is building successfully but when i click on application , i got Kern EXE3 error.

    i have compile mobility pacakage src before running locationex example .
    regards,

  6. #6
    Nokia Developer Moderator
    Join Date
    Oct 2009
    Posts
    4,326

    Re: Using some Symbian calls from Qt...

    This tip you can find on the Internet:

    KERN EXEC 3 is a common panic in Symbian happens mostly because of invalid handle. Check out which is the statement whcih is panking. If you dont know how, run in debug mode and see the last function in your code executed from the call stack when panic is raised.

Similar Threads

  1. Qt Creator code completion not working with Qt Mobility for Symbian
    By ceefour in forum [Archived] Qt Mobility Project
    Replies: 4
    Last Post: 2011-09-10, 05:02
  2. S60_5th_Edition_SDK_v1_0 + Qt creator 2.0 + qt-symbian-opensource-4.7.0-beta1配置问题?
    By fish_of_deadsea in forum [Archived] Qt General ( Qt技术)
    Replies: 0
    Last Post: 2010-05-30, 06:11
  3. qt voice calls
    By tadu in forum [Archived] Qt SDKs and Tools
    Replies: 3
    Last Post: 2010-05-07, 18:48
  4. Replies: 0
    Last Post: 2009-11-18, 12:18

Posting Permissions

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