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: 20
Registered: ‎07-23-2013
My Device: Z10
My Carrier: *

Wrapping Objective-C BlackBerry Documentation Incomplete/Not Working?

It seems the wrapping process is not explained fully in the BlackBerry documentation, turning off ARC is mentioned and to build in Xcode. In the documentation article in question, it also refers to wrapping Objective C code using the PIMPL idiom with C++ headers etc. I have added my own comment on the developer docs at the bottom: http://developer.blackberry.co...


The documentation refers to this article for wrapping, which I have followed and compiled with various compilers and variants: philjordan.eu/article/mixing-objective-c-c++-and-objective-c++


That said, the process of linking & building is not explained, nor does it work from my tests. I have opened several threads explaining the issue:

1. http://supportforums.blackberr...

2. http://stackoverflow.com/quest...

3. http://supportforums.blackberr...


I have also tried repackaging the .o objects files from a wrapped Xcode static library which results in:

qcc -Vgcc_ntoarmv7le -shared -o libshared.so ./Widget.o
./Widget.o: file not recognized: File format not recognized


I have tested this in pure C++ and the above command worked when adding the library via Momentics.

BlackBerry developers? Could you please clarify...

BlackBerry Development Advisor
Posts: 50
Registered: ‎09-27-2012
My Device: Passport
My Carrier: Bell

Re: Wrapping Objective-C BlackBerry Documentation Incomplete/Not Working?

Hi there,

I'll investigate this path and clarify

Meanwhile, please see the post here to try couple of suggestions:




Hope this was helpful. Happy Coding!
EK @echotown