10-22-2013 05:10 AM
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
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:
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...
10-22-2013 02:19 PM
I'll investigate this path and clarify.
Meanwhile, please see the post here to try couple of suggestions: