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

Re: help with helloworld display

What set of libraries do you see when you go to HelloWorld project properties->C/C++Build->Settings->QCC Linker->Libraries->Libraries (-l) section?

What <asset path... entires do you have in bar-descriptor.xml?

Retired
dtomilovskiy
Posts: 36
Registered: ‎10-26-2011
My Device: RIM Developer

Re: help with helloworld display

That is not the source of our problem here. The fact that this sample compiled and linked and ran to egl initialization tells us that code itself is correct.

 

Problem is in the simulator image. We had a problem with eglChooseConfig in early revs of simulator egl/gl stack and it has been fixed a long time ago.

 

So, download a current simulator image from this url

 

https://bdsc.webapps.blackberry.com/native/download

 

Once you run it, click on the icon in the top right, In the About tab OS Version should be 1.0.8.6067 (or higher).

 

I have just tried a couple of sample apps on this simulator build and ndk 1.0 and things function as expected.

 

Let me know if you have further issues with this.

Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: help with helloworld display

I have 1.0.7.2942 simulator and can perfectly well run HelloWorld build with 1.0.0.0 Momentics.

Although eglChooseConfig is indeed broken -)

Retired
dtomilovskiy
Posts: 36
Registered: ‎10-26-2011
My Device: RIM Developer

Re: help with helloworld display

HelloWorld has changed a few times since 2942 :smileyhappy:

 

And dont attempt anything with GLSL (aka shaders) on that build.

Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: help with helloworld display

Agree, it's almost always better to play with the latest buillds. Interesting part is that it seems that I have the same (old) config and it works for me. Regardless, let's wait for update from aa73

New Contributor
aa73
Posts: 6
Registered: ‎01-10-2012
My Device: Tablet simulator

Re: help with helloworld display

HI,

I don't find the simulator version 1.0.8 on the donwload page.
Their is just 1.0.7 version.
Retired
dtomilovskiy
Posts: 36
Registered: ‎10-26-2011
My Device: RIM Developer

Re: help with helloworld display

Hmm, it does say 1.0.7 on the download button, but once you save the file, you should see the following name :

 

BlackBerryPlayBookSimulator-Installer-1.0.8-6067-Win-201112052354

Super Contributor
Meghasanghvi
Posts: 306
Registered: ‎08-10-2010
My Device: Not Specified

Re: help with helloworld display

Hi ,

I also have the same problem when i tried to run the helloworld display application on my blackberry device simulator 10. I got the following exception :

 

eglCreateContext: an EGLConfig argument does not name a valid EGLConfig
Unable to initialize EGL

 

So i am not able to run the application on my simulator.

 

I am using Simultor Image as following :BlackBerry10Simulator-Installer-BB10_0_04-195-Win-201204262359

NDK version :installer-bbndk-BB10_0_04-win32-186-201204250810-201204251322

 

 

So I am not able to run any of the Open GL application on my simulator.

BlackBerry Development Advisor
daryl_martin
Posts: 118
Registered: ‎11-01-2011
My Device: N/A

Re: help with helloworld display

Did you boot into safe mode when loading the simulator?  We don't support GLES 2.0 when in safe mode, just 1.0.

 

Also, did you change any of the source code for the sample application?  If so, can you please post it here.

 

Thanks,

Daryl