×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2010
    Posts
    31

    Linking etel3rdparty.lib to QT

    Hello,

    I am trying to link the etel3rdparty lib so i can make a phone call within my qt app (all the code is under ifdef OS_Symbian statements).
    THe problem is i get an undefined reference to CTelephony::NewL(), although when i call a Ctelephony object in the ide the text completes itselft, something like when i type c-> ( and i get all the methods from the box).But on compiling i get the error.

    here is my .pro file:

    QT += core gui\
    network\
    xml \
    webkit



    TARGET = Horoscope
    TEMPLATE = app

    SOURCES += main.cpp\
    horoscope.cpp \
    Parser/Simbol.cpp \
    Parser/production.cpp \
    Parser/parser.cpp \
    Parser/grammar.cpp \
    Parser/stdafx.cpp \
    CClientApp.cpp

    HEADERS += horoscope.h \
    Parser/Simbol.h \
    Parser/production.h \
    Parser/parser.h \
    Parser/grammar.h \
    Parser/stdafx.h \
    CClientApp.h


    FORMS += horoscope.ui

    CONFIG += mobility
    MOBILITY =bearer messaging


    symbian {
    include($$PWD/../../symbianpkgrules.pri)
    TARGET.UID3 = 0xe527b0f9

    TARGET.CAPABILITY += Location \
    NetworkServices \
    ReadUserData \
    LocalServices \
    ReadUserData \
    WriteUserData \
    UserEnvironment

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

    LIBS += -lsendas2 \
    -lmsgs \
    -letext \
    -lefsrv \
    -lcharconv \
    -lgsmu\
    -etel3rdparty.lib\
    -e32base.lib\
    -euser.lib

    }

    RESOURCES += \
    res.qrc

    OTHER_FILES +=[/CODE]

  2. #2
    Regular Contributor
    Join Date
    Dec 2010
    Posts
    142

    Re: Linking etel3rdparty.lib to QT

    modify your lib section to:


    LIBS += -lsendas2 \
    -lmsgs \
    -letext \
    -lefsrv \
    -lcharconv \
    -lgsmu\
    -letel3rdparty
    }

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Linking etel3rdparty.lib to QT

    You get the autocompletion in the IDE when it finds the header file in include path. Have you checked your SDK to see if the library is there?

  4. #4
    Registered User
    Join Date
    Dec 2010
    Posts
    31

    Re: Linking etel3rdparty.lib to QT

    yes the library is in my QTNokiaSDK, at Dahiya,i tried modified,still the same problem


    UPDATE putting this in my .pro file has solved the problem:

    MMP_RULES += "LIBRARY etel3rdparty.lib"
    Last edited by Zerosum3; 2011-01-15 at 11:16.

  5. #5
    Registered User
    Join Date
    Dec 2006
    Posts
    2,280

    Re: Linking etel3rdparty.lib to QT

    That really shouldn't be necessary - just wondering if the parser cares about the lack of space between your library names and the \'s in your .pro file?

    If MMP_RULES works then look at the generated MMP for doing it the "right" way and see if the library statement is there and if so, what's wrong with it.

Similar Threads

  1. Linking stdc.lib in P.I.P.S fails for definitions in inet.h
    By roger.isaksson in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2010-09-20, 15:10
  2. Replies: 0
    Last Post: 2009-06-26, 12:16
  3. Linking with a DLL using estlib.lib (a.k.a. stdlib or libc) causes a kernel fault
    By pekangas in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 42
    Last Post: 2009-03-13, 06:28
  4. Error linking to obex.lib
    By Haapakanni in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2009-02-09, 05:44
  5. problems linking with .lib
    By yaront in forum Symbian
    Replies: 0
    Last Post: 2005-04-19, 11:49

Posting Permissions

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