×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jun 2011
    Posts
    5

    problem compiling NFC APIs with Qt Mobility 1.2 Beta

    Hello All,

    I was quite fascinated with the NFC Corkboard Application present at Forum Nokia Projects Site. So i tried to play around the NFC APIs provided by QtMobility 1.2 Beta.

    I downloaded and installed them as mentioned at https://projects.forum.nokia.com/QtM12bSymb.

    then i made a simple project where in the .pro file i added following information:

    Code:
    #NFC Include path so that Qt Creator finds that properly
    INCLUDEPATH += C:\QtSDK\Symbian\SDKs\Symbian3Qt473_12b\src\connectivity\nfc
    
    CONFIG += mobility
    MOBILITY += connectivity multimedia
    Then in my class header file i added following headers along with the Qt Mobility Namespace

    Code:
    //additional header files for NFC
    #include "qnearfieldmanager.h"
    #include "qndeffilter.h"
    #include "qnearfieldtarget.h"
    #include "qndefmessage.h"
    #include "qndefrecord.h"
    #include "qndefnfcurirecord.h"
    
    QTM_USE_NAMESPACE
    Thats all now whenever i compile this code i always get the c++ error:

    C:\QMLWorkSpace\NfcCorkboard-build-simulator\..\..\QtSDK\Symbian\SDKs\Symbian3Qt473_12b\src\connectivity\nfc\qnearfieldtarget.h:63: error: expected initializer before ':' token
    C:\QMLWorkSpace\NfcCorkboard-build-simulator\..\nfccorkboards\main.cpp:18: error: expected '}' at end of input
    Can any body tell me what wrong i am doing here, is there a problem with the qnearfieldtarget.h or i am using a wrong version of Qt Mobility

    Regards,

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: problem compiling NFC APIs with Qt Mobility 1.2 Beta

    Hi,
    If I use it with QtSDK 1.1.1, I don't see any compiling problem.
    You are trying for Simulator, can you try for Symbian^3 platform?

  3. #3
    Registered User
    Join Date
    Jun 2011
    Posts
    5

    Re: problem compiling NFC APIs with Qt Mobility 1.2 Beta

    Hello mahbub_s60

    Thanks for your attention. :-)

    Now i changed to Symbian^3 instead of Qt Simulator and something more funny happening. :-(

    When i click on build the build progress bar stops in half with read color, but i cant see any build errors in my build issues tab in my Qt Creator, to check more when i click on the compile Output, i get When executing build step 'Make' .

    Is there something wrong with my Qt SDK set up ??

    Regards,

  4. #4
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: problem compiling NFC APIs with Qt Mobility 1.2 Beta

    Hi,
    Could you confimr these,
    Can you build and Install Qt/Qt Mobility example in your device (without NFC/BT)?
    If yes then have you used
    qtsymb-admin.bat 1 .\recipes\recipes_120beta.csv to copy header and library to your Qt SDK?

  5. #5
    Registered User
    Join Date
    Jun 2011
    Posts
    5

    Re: problem compiling NFC APIs with Qt Mobility 1.2 Beta

    hello mahbub_s60,

    No i am not able to compile any mobility examples following is the log i am getting in my compile output section can you tell me whats going wrong there:

    Starting: "c:\qtsdk\symbian\sdks\symbian3qt473_12b\bin\qmake.exe" C:\QtApps\SystemDisplayInfo\SystemDisplayInfo.pro -r -spec symbian-sbsv2 "CONFIG+=release" -after "OBJECTS_DIR=obj" "MOC_DIR=moc" "UI_DIR=ui" "RCC_DIR=rcc"
    The process "c:\qtsdk\symbian\sdks\symbian3qt473_12b\bin\qmake.exe" exited normally.
    Starting: "C:\QtSDK\Symbian\SDKs\Symbian3Qt473_12b\epoc32\tools\make.exe" release-gcce -w
    C:\QtSDK\Symbian\SDKs\Symbian3Qt473_12b\epoc32\tools\make.exe: Entering directory `C:/QtApps/SystemDisplayInfo'
    sbs -c arm.v5.urel.gcce4_4_1
    C:\QtSDK\Symbian\SDKs\Symbian3Qt473_12b\epoc32\tools\make.exe: Leaving directory `C:/QtApps/SystemDisplayInfo'
    process_begin: CreateProcess((null), sbs -c arm.v5.urel.gcce4_4_1, ...) failed.
    make (e=2): The system cannot find the file specified.
    C:\QtSDK\Symbian\SDKs\Symbian3Qt473_12b\epoc32\tools\make.exe: *** [release-gcce] Error 2
    The process "C:\QtSDK\Symbian\SDKs\Symbian3Qt473_12b\epoc32\tools\make.exe" exited with code 2.
    Error while building project SystemDisplayInfo (target: Symbian Device)
    When executing build step 'Make'
    Do i need to install the Qt Mobility again ??

    Regards,

  6. #6
    Registered User
    Join Date
    Jun 2011
    Posts
    5

    Re: problem compiling NFC APIs with Qt Mobility 1.2 Beta

    just to add something more, i have followed the installation instruction mentioned for Qt Mobility 1.2 Beta, and i have executed the command qtsymb-admin.bat 1 .\recipes\recipes_120beta.csv in my Qt for Symbian^3 command prompt.

  7. #7
    Registered User
    Join Date
    Jun 2011
    Posts
    5

    Re: problem compiling NFC APIs with Qt Mobility 1.2 Beta

    hello

    i solved the build problem from this link. :-)

    But now i have one more question, how can i invoke my Qt App when i am near a NFC Tag. I guess Qt Mobility APIs for NFC are not sufficient for that.

    Regards,

Similar Threads

  1. Camera API missing from Qt SDK 1.1's Qt Mobility APIs
    By darkandchoco in forum [Archived] Qt Mobility Project
    Replies: 11
    Last Post: 2011-03-14, 11:15
  2. Replies: 3
    Last Post: 2010-06-30, 01:17
  3. Qt Mobility on Nokia Qt SDK Beta
    By santijdelatorre in forum [Archived] Qt Mobility Project
    Replies: 2
    Last Post: 2010-05-19, 14:33
  4. Qt Mobility Beta changes
    By AlexBl in forum [Archived] Qt Mobility Project
    Replies: 3
    Last Post: 2010-04-16, 22:15
  5. Compiling Qt Mobility Problem
    By skumar_rao in forum [Archived] Qt Mobility Project
    Replies: 8
    Last Post: 2010-01-07, 00:13

Posting Permissions

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