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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
New Contributor
aa73
Posts: 6
Registered: ‎01-10-2012
My Carrier: none

help with helloworld display

hello,

 

I have a problem with the sample helloworlddisplay.

In the zip file their is 2 folder  :

HelloWorldDisplayManaged

HelloWorldDisplayMakefile

 

I have to import the two folder in QNX momentics ?

I have to compile the two folder?

 

Do you know where I can find a video or tutorial with image to test the program.

Thanks

 

Please use plain text.
BlackBerry Development Advisor
elena_laskavaia
Posts: 410
Registered: ‎10-27-2010

Re: help with helloworld display

Makefile project mostly for command line, to import Managed project.

Select File->Import...

Select General->Existing Project into Workspace

Select Archive file - and browse to open zip file

Then check managed project from the list and click Finish

Please use plain text.
Trusted Contributor
lyon819
Posts: 245
Registered: ‎08-19-2010
My Carrier: TT

Re: help with helloworld display

Several ways:

1.QNX IDE import example /File/New/Example/HelloWorld.

   And then build new project. Finally choose a file under Binary, run as BlackBerry Tablet OS C/C++ Application Dialog.

2.File/New/BlackBerry Tablet OS C/C++ Project, choose OpenGL ES Application project. And then replace main.c, which come from HelloWorld template or sample.

  And then do the same step above.

3.File/Import like previous expert mention it.

 

 

 

-Fight with BB10
Please use plain text.
New Contributor
aa73
Posts: 6
Registered: ‎01-10-2012
My Carrier: none

Re: help with helloworld display

Hello,

 

I have import the project in my workspace.

I have no problem to built the program

Whe I try to run it (I have a simulator), I have an error :

 

unknown symbol: navigator_request_events
unknown symbol: navigator_get_domain
unknown symbol: navigator_rotation_lock
ldd:FATAL: Could not resolve all symbols

 

Can you help me with this problem.

Thanks

 

Please use plain text.
BlackBerry Development Advisor
cdamus
Posts: 45
Registered: ‎10-25-2010
My Carrier: Rogers

Re: help with helloworld display

Hi, aa73,

You linked your application with the libbps.so that is in the "target-override" directory. It's a newer version than the one that is installed on the simulator, so you need to bundle it in your BAR file.

Depending on the version of the NDK that you are using, you should see a warning on the bar-descriptor.xml file saying that this library needs to be included in the BAR package. Invoke the quick-fix on that warning (Ctrl+1 on Win32/Linux, Cmd+1 on Mac) to add the bps library.

HTH,

Christian
Please use plain text.
New Contributor
aa73
Posts: 6
Registered: ‎01-10-2012
My Carrier: none

Re: help with helloworld display

Hi cdamus,

 

Thanks for the answer.

Now I have an other error.

 

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

 

Do you know what is this error ?

 

An other question, do you know if their is a plugin for QNX momentics to have visual tools?

For example, I select a window, and automaticly the system create the code for the window.

 

Thanks for your answer.

Please use plain text.
BlackBerry Development Advisor
dtomilovskiy
Posts: 36
Registered: ‎10-26-2011
My Carrier: Rogers

Re: help with helloworld display

That is a strange EGL error.

 

What is you NDK build and are you using device or simulator? 

Please use plain text.
Developer
BGmot
Posts: 961
Registered: ‎11-24-2011
My Carrier: x

Re: help with helloworld display

What tutorial did you follow to create this app (exact steps)?

Please use plain text.
New Contributor
aa73
Posts: 6
Registered: ‎01-10-2012
My Carrier: none

Re: help with helloworld display

Hello,

I follow the tutorial HelloWorldDisplay.
Please use plain text.
New Contributor
aa73
Posts: 6
Registered: ‎01-10-2012
My Carrier: none

Re: help with helloworld display

Hello,
I use QNX momentics IDE for BlackBerry 1.0.0
I use a simulator 1.0.7
Please use plain text.