Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Regular Contributor ehsanTC's Avatar
    Join Date
    Apr 2011
    Posts
    181
    Hi guys
    I am absolutely new in symbian programing and I started it whith Qt IDE. I want to use some symbian classes like CTelephony and some other primitive types(TInt, ... ) in my application. but none of them are recognized as true types.
    What should I do to futher my project?

    You should excuse me if my question is very trivial.
    Thanks.

  2. #2
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    You should find your answers here and here.

  3. #3
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Do note that you symbian code / types / apis only will be recognized for Symbian.C++ platform alone. So it is always suggested to use macros to put in your symbian code
    Last edited by skumar_rao; 2011-04-19 at 05:36.

  4. #4
    Regular Contributor ehsanTC's Avatar
    Join Date
    Apr 2011
    Posts
    181
    Thank you kamalakshan and skumar_rao

    1-for adding the library to the project I followed the Qt Docs instruction, but the problem is still unsolved.
    2-and if Mr. skumar_rao could write me a small piece of code to clarify his idea, I would be so thankful.

    Regards.

  5. #5
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    what i meant is using like this

    Code:
    #ifdef Q_OS_SYMBIAN
    CTelephony* iTelephony;
    #endif

  6. #6
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Sunil is referring to use macros like this

    #if defined(Q_OS_SYMBIAN)
    //Your Symbian API Code
    #else
    // Non Symbian Code if any
    #endif

  7. #7
    Regular Contributor ehsanTC's Avatar
    Join Date
    Apr 2011
    Posts
    181
    Hi dudes
    I followed your instructions but got these errors:

    :-1: error: cannot find -letel3rdpartyd
    :-1: error: collect2: ld returned 1 exit status
    Last edited by ehsanTC; 2011-04-19 at 09:28.

  8. #8
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    Quote Originally Posted by ehsanTC View Post
    Hi dudes
    I followed your instructions but got these errors:

    :-1: error: cannot find -letel3rdpartyd
    :-1: error: collect2: ld returned 1 exit status
    can you show your pro file.

  9. #9
    Registered User kamalakshan's Avatar
    Join Date
    Jun 2007
    Location
    Mumbai, India
    Posts
    1,998
    Quote Originally Posted by ehsanTC View Post
    Hi dudes
    I followed your instructions but got these errors:

    :-1: error: cannot find -letel3rdpartyd
    :-1: error: collect2: ld returned 1 exit status
    You probably have not included the lib properly in the .pro file.

    Check this thread for how it has to be done.

  10. #10
    Regular Contributor ehsanTC's Avatar
    Join Date
    Apr 2011
    Posts
    181
    Hi friends
    This is my .pro file
    Code:
    QT       += core
    
    QT       -= gui
    
    TARGET = poiters
    CONFIG   += console
    CONFIG   -= app_bundle
    
    TEMPLATE = app
    HEADERS += etel3rdparty.h
    
    
    SOURCES += main.cpp
    
    
    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5/lib/ -letel3rdparty
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5/lib/ -letel3rdpartyd
    else:symbian: LIBS += -letel3rdparty
    
    INCLUDEPATH += $$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5
    DEPENDPATH += $$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5
    
    symbian|win32: LIBS += -letel3rdparty
    I don't know why the etle3rdparty.lib is still unknown, but I know it is making me mad.
    Thanks for your help.

  11. #11
    Regular Contributor ehsanTC's Avatar
    Join Date
    Apr 2011
    Posts
    181
    Quote Originally Posted by kamalakshan View Post
    You probably have not included the lib properly in the .pro file.

    Check this thread for how it has to be done.
    Dear kamalakshan
    Could you make a simple project that uses the etel3rdparty.lib and if it completely worked then write for me your steps one by one?

  12. #12
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5/lib/ -letel3rdparty
    else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5/lib/ -letel3rdpartyd
    else:symbian: LIBS += -letel3rdparty

    INCLUDEPATH += $$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5
    DEPENDPATH += $$PWD/../../../../QtSDK/Symbian/SDKs/Symbian3Qt472/epoc32/release/armv5

    symbian|win32: LIBS += -letel3rdparty
    all these are not required only thing you required is

    symbian|win32: LIBS += -letel3rdparty as there is no etel3rdparty for win32

  13. #13
    Regular Contributor ehsanTC's Avatar
    Join Date
    Apr 2011
    Posts
    181
    Hi
    After removing the lines you said, the compiler raises an error in the main.cpp for the below declaration:
    Code:
    #include<Etel3rdparty.h>
    do not I need to add
    Code:
    SOURCES += etel3rdparty.cpp
    in the .pro file?

  14. #14
    Nokia Developer Moderator skumar_rao's Avatar
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968
    do you have your own etel3rdparty.cpp .. then nothing to say

  15. #15
    Regular Contributor ehsanTC's Avatar
    Join Date
    Apr 2011
    Posts
    181
    It was just a question
    Last edited by ehsanTC; 2011-04-20 at 14:20.

Page 1 of 2 12 LastLast

Similar Threads

  1. How do you control which Qt files are used in Symbian build
    By danhicksbyron in forum [Archived] Qt SDKs and Tools
    Replies: 2
    Last Post: 2010-10-22, 21:12
  2. Replies: 5
    Last Post: 2010-08-17, 15:00
  3. connection types unknown
    By kiDseven07 in forum Tools and SDK Feedback (Closed)
    Replies: 2
    Last Post: 2009-01-09, 06:45

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