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
Contributor
Posts: 17
Registered: ‎03-09-2012
My Device: playbook
My Carrier: I don't know
Accepted Solution

Porting of existing QT projects to PlayBook

[ Edited ]

I tried to compile and build for the PlayBook existing QT project. For instance BasicDrawing, which was included to examples for QT SDK for Windows. When you open a project must be specified target QNX Arm. Everything works fine as long as it does not reach deployment process.

 

08:27:06: Running steps for project BasicDrawings...
08:27:06: Running steps for project basicdrawing...
08:27:06: Starting: "C:\bbndk-2.0.0\host\win32\x86\usr\bin\make.exe" clean -w
make.exe: Entering directory `C:/BBQt/painting/basicdrawing'
rm -f moc_renderarea.cpp moc_window.cpp
rm -f qrc_basicdrawing.cpp
rm -f main.o renderarea.o window.o moc_renderarea.o moc_window.o qrc_basicdrawing.o
rm -f *~ core *.core
make.exe: Leaving directory `C:/BBQt/painting/basicdrawing'
08:27:16: The process "C:\bbndk-2.0.0\host\win32\x86\usr\bin\make.exe" exited normally.
08:27:16: Running steps for project BasicDrawings...
08:27:16: Starting: "C:\QtPlaybookSDK\Playbook\Qt\4.8.1\bin\qmake.exe" C:\BBQt\BasicDrawings\BasicDrawings.pro -r
08:27:16: The process "C:\QtPlaybookSDK\Playbook\Qt\4.8.1\bin\qmake.exe" exited normally.
08:27:17: Starting: "C:\bbndk-2.0.0\host\win32\x86\usr\bin\make.exe" -w
make.exe: Entering directory `C:/BBQt/BasicDrawings'
c:/QtPlaybookSDK/Playbook/Qt/4.8.1/bin/uic.exe mainwidget.ui -o ui_mainwidget.h
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I. -I../../bbndk-2.0.0/target/qnx6/usr/include -I../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o main.o main.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I. -I../../bbndk-2.0.0/target/qnx6/usr/include -I../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o mainwidget.o mainwidget.cpp
C:/QtPlaybookSDK/Playbook/Qt/4.8.1/bin/moc.exe -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I. -I../../bbndk-2.0.0/target/qnx6/usr/include -I../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -D__QNXNTO__ mainwidget.h -o moc_mainwidget.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I. -I../../bbndk-2.0.0/target/qnx6/usr/include -I../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o moc_mainwidget.o moc_mainwidget.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,C:/bbndk-2.0.0/target/qnx6/armle-v7/lib -Wl,-rpath-link,C:/bbndk-2.0.0/target/qnx6/armle-v7/usr/lib -Wl,-O1 -o BasicDrawings main.o mainwidget.o moc_mainwidget.o    -LC:/bbndk-2.0.0/target/qnx6/armle-v7/lib -LC:/bbndk-2.0.0/target/qnx6/armle-v7/usr/lib -LC:\QtPlaybookSDK\Playbook\Qt\4.8.1\lib -lQtGui -L/home/andy/playbook/qt/stage/Playbook/Qt/4.8.1/lib -L/opt/bbndk-2.0.0-beta2/target/qnx6/armle-v7/lib -L/opt/bbndk-2.0.0-beta2/target/qnx6/armle-v7/usr/lib -lQtCore -lm 
make.exe: Leaving directory `C:/BBQt/BasicDrawings'
08:27:34: The process "C:\bbndk-2.0.0\host\win32\x86\usr\bin\make.exe" exited normally.
08:27:34: Running steps for project basicdrawing...
08:27:34: Configuration unchanged, skipping qmake step.
08:27:34: Starting: "C:\bbndk-2.0.0\host\win32\x86\usr\bin\make.exe" -w
make.exe: Entering directory `C:/BBQt/painting/basicdrawing'
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I../../../bbndk-2.0.0/target/qnx6/usr/include -I../../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o main.o main.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I../../../bbndk-2.0.0/target/qnx6/usr/include -I../../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o renderarea.o renderarea.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I../../../bbndk-2.0.0/target/qnx6/usr/include -I../../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o window.o window.cpp
C:/QtPlaybookSDK/Playbook/Qt/4.8.1/bin/moc.exe -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I../../../bbndk-2.0.0/target/qnx6/usr/include -I../../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -D__QNXNTO__ renderarea.h -o moc_renderarea.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I../../../bbndk-2.0.0/target/qnx6/usr/include -I../../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o moc_renderarea.o moc_renderarea.cpp
C:/QtPlaybookSDK/Playbook/Qt/4.8.1/bin/moc.exe -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I../../../bbndk-2.0.0/target/qnx6/usr/include -I../../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -D__QNXNTO__ window.h -o moc_window.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I../../../bbndk-2.0.0/target/qnx6/usr/include -I../../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o moc_window.o moc_window.cpp
c:/QtPlaybookSDK/Playbook/Qt/4.8.1/bin/rcc.exe -name basicdrawing basicdrawing.qrc -o qrc_basicdrawing.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -c -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/mkspecs/default -I. -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtCore -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include/QtGui -I../../../QtPlaybookSDK/Playbook/Qt/4.8.1/include -I. -I../../../bbndk-2.0.0/target/qnx6/usr/include -I../../../bbndk-2.0.0/target/qnx6/usr/include/freetype2 -o qrc_basicdrawing.o qrc_basicdrawing.cpp
qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,C:/bbndk-2.0.0/target/qnx6/armle-v7/lib -Wl,-rpath-link,C:/bbndk-2.0.0/target/qnx6/armle-v7/usr/lib -Wl,-O1 -o basicdrawing main.o renderarea.o window.o moc_renderarea.o moc_window.o qrc_basicdrawing.o    -LC:/bbndk-2.0.0/target/qnx6/armle-v7/lib -LC:/bbndk-2.0.0/target/qnx6/armle-v7/usr/lib -LC:\QtPlaybookSDK\Playbook\Qt\4.8.1\lib -lQtGui -L/home/andy/playbook/qt/stage/Playbook/Qt/4.8.1/lib -L/opt/bbndk-2.0.0-beta2/target/qnx6/armle-v7/lib -L/opt/bbndk-2.0.0-beta2/target/qnx6/armle-v7/usr/lib -lQtCore -lm 
make.exe: Leaving directory `C:/BBQt/painting/basicdrawing'
08:28:28: The process "C:\bbndk-2.0.0\host\win32\x86\usr\bin\make.exe" exited normally.

 

08:28:57: Application descriptor file not specified, please check deployment settings
Error while building/deploying project basicdrawing (target: QNX Arm)
When executing step 'Create Bar package'

 

At first I thought that the problem is in the file bar-descriptor.xml. I created it by analogy with existing and added to the project. But it did not help. I've get the same error.

 

08:55:26: Application descriptor file not specified, please check deployment settings
Error while building/deploying project basicdrawing (target: QNX Arm)
When executing step 'Create Bar package'

 

How to port existing QT project to PlayBook?

Developer
Posts: 62
Registered: ‎03-31-2012
My Device: Playbook
My Carrier: None

Re: Porting of existing QT projects to PlayBook

I have installed the german version, so I try to translate it:

 

  • Start QtCreator and open your project.
  • On the left side choose "projects" and select "run configurations".
  • Configure your device (maybe you have to order a debugtoken)
  • At "create package" select your bar-descriptor.xml

If that doesn't work you can create a own rule to create the bar-file:

 

  • At "run configurations" use "add deploy step"
  • "Executeable": make
  • "Working Directory": path to your .pro-file
  • "Arguments": <your projectname>.bar
  • Disable normal "create package"
  • Move your "custom deployment step" before the "deploy package" step
Contributor
Posts: 17
Registered: ‎03-09-2012
My Device: playbook
My Carrier: I don't know

Re: Porting of existing QT projects to PlayBook

Thank you very much for your help. Application has been succesfully deployed and transferred to tablet. Surprisingly, BasicDrawing runs on a BB PlayBook without any changes. Sorry, one change has been done, the main window has been maximized (window.showMaximized()).The only problem - the connection via wi-fi is very unstable.