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
Posts: 16
Registered: ‎04-28-2013
My Device: PlayBook
My Carrier: none
Accepted Solution

How to create a native project that links in a static library?

[ Edited ]

I'm trying to create an OpenGL project that depends on a static library that I'm creating in the same workspace in the NDK.  I've created both projects (Static library, and OpenGL app) in the NDK and tried linking them together but I must be missing something because my OpenGL project is not able to see the functions in my static library even though it is able to find my static library?!?!

 

Is there any documentation describing step by step how to create both projects and how to link them together?

_______________________________________________________
C++, 3D OpenGL and Game Programming video tutorials:
http://www.MarekKnows.com
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889
Developer
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: How to create a native project that links in a static library?

Post errors you are getting here.

Contributor
Posts: 16
Registered: ‎04-28-2013
My Device: PlayBook
My Carrier: none

Re: How to create a native project that links in a static library?

I found a similar post on the forums and I was able to solve my problem.

 

I was using Project > Add Library > Library project in the workspace however something is broken with this command because it was not working. 

 

If you use Project > Add Library > External library, then everything works fine.

_______________________________________________________
C++, 3D OpenGL and Game Programming video tutorials:
http://www.MarekKnows.com
Play my free games:
Zing: http://appworld.blackberry.com/webstore/content/27406036
Jewel Thief: http://appworld.blackberry.com/webstore/content/29105889