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
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Unable to start QtHelloWorld due to error 8

p.s: belive me, this deploying procedure is a real HELL 

No, I do not believe, sorry.

Do not overcomplicate simple things. QT Library github repo has very nice script called configure-qsk. So,

./configure-qsk arm v7le
make
make install

and you have QT libraries ready to be deployed to Playbook.

 

./configure-qsk x86
make
make install

and you have QT libraries ready to be deployed to Simulator.

That is it.

 

Please use plain text.
Contributor
andreagrandi
Posts: 18
Registered: ‎02-14-2012
My Device: PlayBook Simulator
My Carrier: None

Re: Unable to start QtHelloWorld due to error 8

there is no configure-qsk in the qt-qnx source folder... maybe a typo?

or maybe it was: ./configure -qsk arm v71e

and: ./configure -qsk x86 ?

Thanks for your help.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Unable to start QtHelloWorld due to error 8

It's in your Qt folder (root), in the folder you get when you clone the repo from github https://github.com/blackberry/Qt

 

Please use plain text.
Contributor
andreagrandi
Posts: 18
Registered: ‎02-14-2012
My Device: PlayBook Simulator
My Carrier: None

Re: Unable to start QtHelloWorld due to error 8

Oh sorry, I was using this file https://github.com/downloads/blackberry/Qt/qt-qnx-preview.tar.gz

not the source code from the git repository. I'll try with latest code from git, thanks.

Please use plain text.
Contributor
andreagrandi
Posts: 18
Registered: ‎02-14-2012
My Device: PlayBook Simulator
My Carrier: None

Re: Unable to start QtHelloWorld due to error 8

@achipa: using your configuration options I'm getting this error http://pastebin.com/5zCxdLhj

any idea how to fix it?

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Unable to start QtHelloWorld due to error 8

ok, you've missed the first step from http://hecgeek.blogspot.com/2011/10/qt-for-blackberry-playbook.html

source /opt/RIM/bbndk/bbndk-env.sh
Please use plain text.
Contributor
andreagrandi
Posts: 18
Registered: ‎02-14-2012
My Device: PlayBook Simulator
My Carrier: None

Re: Unable to start QtHelloWorld due to error 8

I didn't miss that command (by the way my installation is in /opt/bbndk so I did: source /opt/bbndk/bbndk-env.sh )

so the problem must be another one. I'm now trying to compile the sources taken directly form the Git repository and I'm using the configure options you told me to use: ./configure-qsk x86

It will take a bit before completing, I'll update you with the result.

Thanks for now.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Unable to start QtHelloWorld due to error 8

I thought that you missed it because according to your logs configure uses g++ but should be using qcc from NDK installation folder. I would start from scratch. Remove everything, clone the repo from github, source bla-bla, ./configure-qsk etc...

Please use plain text.
Contributor
andreagrandi
Posts: 18
Registered: ‎02-14-2012
My Device: PlayBook Simulator
My Carrier: None

Re: Unable to start QtHelloWorld due to error 8

I've followed these instructions to be able to build the x86 target and I finally was able to build it http://hecgeek.blogspot.com/2011/10/qt-for-blackberry-playbook.html

 

then I tried again with qt-creator-qnx to create another application, setting all the project configuration.

The building phase is ok: the proper x86 target is used. The deploy is fine too.

 

But.... when I run the application on the device I still get an error ("Error 9" this time....).

 

I've a couple of questions:

 

1) in these instructions it says to copy the qt4 file in the deploy directory ecc... of course I did it with the x86 one, not with the armv7 one http://cloud.github.com/downloads/blackberry/Qt/qnx-HelloWorldusingCLItools-070212-0732-12.pdf do I have to do this even if I use QtCreator?

 

2) why the example here is very different from the previous one http://hecgeek.blogspot.com/2011/10/qt-for-blackberry-playbook.html ? the main.cpp is different, the xml file too ecc.... which one is the proper way to create a QNX-Qt application?

 

Thanks again for your help.

Please use plain text.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Unable to start QtHelloWorld due to error 8

The problem is you are mixing different things... -(

Try to start with something simple - follow http://hecgeek.blogspot.com/2011/10/qt-for-blackberry-playbook.html from the beginning to the end. Success? Go ahead - start your experiments with qt-creator-qnx (I never used it by the way).

The more you do the more you understand the process and can avoid obvious errors (like platforms mismatch).

 

PS: time to write more turorials...

Please use plain text.