Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
03-02-2012 08:48 PM - edited 03-02-2012 08:49 PM
I used this as my main.cpp
int main(int argc, char *argv)
QApplication app(argc, argv);
QPushButton button("Hello Playbook World!");
QObject::connect(&button, SIGNAL(clicked()), &app, SLOT(quit()));
I run qmake, a makefile gets created, but when I run make afterwards, I get
qcc -Vgcc_ntoarmv7le -lang-c++ -Wl,-rpath-link,/home/george/Qt/stage/nto/armle-v7
cc: no files to process
make: *** [helloworld] Error 1
and nothing gets built... What am I doing wrong? Thanks again for your assistance!
03-02-2012 09:08 PM
Right! I added the SOURCES += main.cpp in my .pro file and now make works successfully.
Afterwards I run make helloworld.bar, the bar file gets created, but when I deploy it on the simulator, it crashes with error 8..
03-02-2012 09:11 PM
Error 8 means bad binary.
You are building for ARM architecture (Playbook) but deploying to Simulator. You should compile/link for x86 (to be able to run it on Simulator.
03-02-2012 09:15 PM
Aha... Do you know what do I have to change to build for x86 ?
I run apps intended for the device though on the simulator, so I thought that it's compatible with those built for the device..
03-02-2012 10:04 PM
Just a little bit. I corrected what I thought whould be corrected.
Probably you can skip the step of compiling QT libraries if you have downloaded precompiled QT libraries for x86 platform. I just never used them, can't give you advice here.