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
yamyu
Posts: 21
Registered: ‎06-15-2012
My Device: 9900
My Carrier: TX

How to create shared library with Qt object?

I have fallen into this problem for days. I create a shared library including exported class inherited from QObject with managed building,but these classes inherited from QObject cant auto create corresponding moc_XXXX.cpp. it's a extra work that manually invoke Moc.exe to create moc_XXXX.cpp for our project. Is there a better way than manualy creating moc_XXXX.cpp? I try to fix it in creating library with makefile ,not managed building.but i dont know how to configure makefile for auto create moc_XXXX files. Any suggestion?thanks for ever
Please use plain text.
Developer
yamyu
Posts: 21
Registered: ‎06-15-2012
My Device: 9900
My Carrier: TX

Re: How to create shared library with Qt object?

I found this article: http://supportforums.blackberry.com/t5/Cascades-Development-Knowledge/How-to-create-a-shared-or-stat....the soluton is below:

Replace this line:

 

TEMPLATE = app

 

With this one:

 

TEMPLATE = lib

 

but it is different in Gold version SDK.I cant find this sentence in .profile...............I must rollback to old version.........:(

  

Please use plain text.