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
Highlighted
Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Creating a shared library

I want to create a shared library that links against QtCore and Qt's SQL modules.  I created a project with Cascaded Library template, but not sure where in properties that it should tell it to use QCore as not even QString is understood when I try to compile.  Is there a place in the projects properties to specidfy the modules to build agains as one would do with a Qt project file like:

QT = core network sql

 

Thaks in advance for any feed back or suggestions

Developer
Posts: 1,746
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: Creating a shared library

it's a good idea at first to read the documentation ;-)

 

https://developer.blackberry.com/cascades/reference/sharedlibrary.html

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Regular Contributor
Posts: 94
Registered: ‎12-02-2011
My Device: non-Blackberry user
My Carrier: none

Re: Creating a shared library

Thanks for the reply, but my probelm is not in creating the shared library but rather setting up the path to use thins like QOBject QString in my shared library.

 

For instance in my Shared library I created with Momentics Shared library Wizard. I try to create a class named Person. I give it the base class of QObject.  However in the New Class Dialog for Person I get an error message saying that QObject is not in the include path.  I would like to know where in Momentics where to add such in include path. And to also include things like QtCore.

 

Any ideas ?

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