01-08-2013 08:18 AM
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/tr
Error processing project file: ../MyAppName.pro
C:/bbndk/host_10_0_9_404/win32/x86/usr/bin/lreleas
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..
Solved! Go to Solution.
01-09-2013 03:20 AM
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.....
01-09-2013 10:43 AM
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