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

Posts: 1,008
Registered: ‎12-12-2010
My Device: Passport (Red Limited Edition)
My Carrier: Mobile Vikings

Example shared library

Is there an example of a shared library BB10 project available? I am currently trying to build the unrar source as a shared library, but I would need some example make files to show how I can achieve this on BB10.

BlackBerry Certified Builder for Native Application Development -- Proud member of the Belgian BlackBerry Developer group
Samples: Park in Ghent
Feeling generous? Nominate me for BB Elite member!
New Developer
Posts: 3
Registered: ‎12-17-2012
My Device: BB10 Dev Alpha
My Carrier: :D

Re: Example shared library

[ Edited ]

I have the problem with shared library too,
I looking for the solution too.


My solution, tempolary solution , is include all the code that inside.


if someone has better solution please tell me.


Posts: 21
Registered: ‎06-15-2012
My Device: 9900
My Carrier: TX

Re: Example shared library

me too
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Example shared library

When you crate new project just choose Library as type of your project.

BlackBerry Development Advisor
Posts: 15,882
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: Example shared library

These articles should help.


How to use a third party shared or static library in a Cascades C++ project


How to create a shared or static library to be used in other Cascades C++ projects

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Posts: 11
Registered: ‎05-04-2011
My Device: None
My Carrier: None

Re: Example shared library

Creating a shared library project seems to work fine but I'm having an issue when using it from a cascades app: http://supportforums.blackberry.com/t5/Cascades-Development/How-to-call-moc-exe-for-shared-library-u...
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Example shared library

Seems like you lib contains files that must be moc'd. So run moc on them, then include .c files you get into the project and your library will include all necessary symbols.

Posts: 49
Registered: ‎03-27-2013
My Device: z10
My Carrier: Banglalink

Re: Example shared library

I am having the same problem with my shared library. And suspect I need to run moc. I search a lot to find out how I can configure moc with my shared library project. What I find is to write a make file for it. But my library project using the managed build sustem. 

How can I run moc on my existing project? Any usefull reference please.


Thanks for your help.