Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Contributor
sariel
Posts: 3
Registered: ‎01-08-2013
My Device: simulator
My Carrier: tim
Accepted Solution

Error including libs BB10

Hello,

I'm trying to insert new libs in a Cascade native app. I followed the "wizard" to import the libs and I have now this .pro file:

 

APP_NAME = MyAppName

INCLUDEPATH += ../src
${QNX_TARGET}/usr/include/qt4/QtCore
${QNX_TARGET}/usr/include/qt4/QtScript
${QNX_TARGET}/usr/include/qt4/QtScriptTools
${QNX_TARGET}/usr/include/QtNfcShare

DEPENDPATH += ../src
${QNX_TARGET}/usr/include/qt4/QtCore
${QNX_TARGET}/usr/include/qt4/QtScript
${QNX_TARGET}/usr/include/qt4/QtScriptTools
${QNX_TARGET}/usr/include/QtNfcShare

CONFIG += qt warn_on cascades10
LIBS += -lbbdata -lbbplatformbbm -lbbpim -lbbcascades

QT += core script scripttools sensors nfcshare

include(config.pri)

 

The error is:

 

**** Build of configuration Simulator-Debug for project SmartNoteTaker ****

make Simulator-Debug
make -C .//translations -f Makefile update
make[1]: Entering directory `C:/Users/Sariel/ndk-10.0.9-workspace/MyAppName/translations'
C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/lupdate MyAppName.pro
cd x86 && C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/qmake -spec blackberry-x86-qcc ../MyAppName.pro CONFIG+=debug_and_release CONFIG+=simulator
Updating 'MyAppName.ts'...
Found 4 source text(s) (0 new and 4 already existing)
make[1]: Leaving directory `C:/Users/Sariel/ndk-10.0.9-workspace/MyAppName/translations'
make -C .//translations -f Makefile release
Project MESSAGE: Warning: unknown QT: sensorsProject MESSAGE: Warning: unknown QT: nfcsharec:\Users\Sariel\ndk-10.0.9-workspace\MyAppName\MyAppName.pro:4: Parse Error ('${QNX_TARGET}/usr/include/qt4/QtCore')
make[1]: Entering directory `C:/Users/Sariel/ndk-10.0.9-workspace/MyAppName/translations'
Error processing project file: ../MyAppName.pro
C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/lrelease MyAppName.pro
make: *** [x86/Makefile] Error 3
make: *** Waiting for unfinished jobs....
Nome di directory non valido.
Updating 'C:/Users/Sariel/ndk-10.0.9-workspace/MyAppName/translations/MyAppName.qm'...
Could not find qmake configuration directoryCould not find qmake configuration fileUsing OS scope before setting MAKEFILE_GENERATOR
Generated 0 translation(s) (0 finished and 0 unfinished)
Ignored 4 untranslated source text(s)
make[1]: Leaving directory `C:/Users/Sariel/ndk-10.0.9-workspace/MyAppName/translations'

**** Build Finished ****

 

What is that? How can I fix it?

 

Thanks in advance for any help..

Please use plain text.
New Contributor
sariel
Posts: 3
Registered: ‎01-08-2013
My Device: simulator
My Carrier: tim

Re: Error including libs BB10

The problem is, I believe, this one:

Parse Error ('${QNX_TARGET}/usr/include/qt4/QtCore')

 

I tried to understand if the environmental variables were ok and they are, I start the IDE with the .bat executable and the QNX_TARGET set there is the same than the QNX_TARGET set inside the IDE and it leads to the right directory path.

 It is the "PARSE ERROR" that I don't understand, I did a copy/paste directly from the wizard.....

Please use plain text.
New Contributor
sariel
Posts: 3
Registered: ‎01-08-2013
My Device: simulator
My Carrier: tim

Re: Error including libs BB10

at the end I had to write INCLUDEPATH += etcetc and DEPENDPATH +=etcetc  for every row.

I think it is knda strange that the wizard doesn't give you a working example to copy...

But still, there it is my solution

Please use plain text.