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)
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!
Please use plain text.
New Developer
ctrlyati
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.

 

Please use plain text.
Developer
yamyu
Posts: 21
Registered: ‎06-15-2012
My Device: 9900
My Carrier: TX

Re: Example shared library

me too
Please use plain text.
Developer
BGmot
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.

Please use plain text.
Administrator
MSohm
Posts: 14,233
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook
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.
Found a bug? Report it using Issue Tracker
Please use plain text.
Contributor
chrisandrewca
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...
Please use plain text.
Developer
BGmot
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.

Please use plain text.
Developer
sreejond
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.

Please use plain text.