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
gocolinn
Posts: 11
Registered: ‎01-15-2013
My Device: Playbook 32
My Carrier: n/a
Accepted Solution

qmake configuration so that x86 compilation is used

Hello everyone.  I've been having trouble with the QNX IDE reporting 'out of memory' which is an error I am familiar with since I use Ecplise frequently.  

 

I would like to use Makefiles for compilation of a BB10 NDK project.  I have used qmake to generate Makefiles and successfully compiled them.  I am a new Blackberry developer and I need to test my code using the simulator seeing as I do not have an alpha BB10 device and BB10 is not yet available for PlayBook.  

 

How do I tell qmake to generate Makefiles suitable for the simulator?

Please use plain text.
Developer
borceg
Posts: 670
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: qmake configuration so that x86 compilation is used

In QtCreator, passing -spec blackberry-x86-qcc to qmake changes the compiler settings used, so you get x86 build.
Please use plain text.
Contributor
gocolinn
Posts: 11
Registered: ‎01-15-2013
My Device: Playbook 32
My Carrier: n/a

Re: qmake configuration so that x86 compilation is used

Thanks!. The -spec option isn't printed using qmake --help

Just to be sure QtCreator isn't provided for free correct?
Please use plain text.
Developer
Zingam
Posts: 187
Registered: ‎05-09-2012
My Device: Playbook, Z10 LE

Re: qmake configuration so that x86 compilation is used

How do I use that:  -spec blackberry-x86-qcc ? :smileyhappy: 

 

In Qt Creator I have to use just "blackberry-x86-qcc" in the mkspec line? What is "-spec" in Qt Creator for?

Please use plain text.
Developer
borceg
Posts: 670
Registered: ‎03-21-2012
My Device: BlackBerry PlayBook 16GB
My Carrier: Vip

Re: qmake configuration so that x86 compilation is used

You're wrong - Qt SDK which includes QtCreator(or you can download it separately) is provided for free.
Please use plain text.