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
Contributor
daxfrost
Posts: 20
Registered: ‎07-23-2013
My Device: Z10

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...

Please use plain text.
BlackBerry Development Advisor
EunKyung
Posts: 42
Registered: ‎09-27-2012
My Device: Z30

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:

http://supportforums.blackberry.com/t5/Native-Development/Building-BlackBerry-3rd-party-library-with...

 

 

----------------------------------------------------
Hope this was helpful. Happy Coding!
I am on twitter @echoTown
Please use plain text.