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
zezke
Posts: 1,004
Registered: ‎12-12-2010
My Device: Z10 (red Limited Edition)

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
ctrlyati
Posts: 3
Registered: ‎12-17-2012
My Device: BB10 Dev Alpha

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.

 

Developer
yamyu
Posts: 21
Registered: ‎06-15-2012
My Device: 9900

Re: Example shared library

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

Re: Example shared library

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

BlackBerry Development Advisor
MSohm
Posts: 14,753
Registered: ‎07-09-2008
My Device: BlackBerry Passport

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.
Found a bug? Report it using Issue Tracker
Contributor
chrisandrewca
Posts: 11
Registered: ‎05-04-2011
My Device: 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...
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

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.

Developer
sreejond
Posts: 49
Registered: ‎03-27-2013
My Device: z10

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.