01-05-2013 04:56 PM
So with the gold release of the SDK, we now have a way of compiling libraries differently to speed up the startup time of an app.
The problem is, there seems to be some inconsistency in the documentation. I just want some clarification about which way is correct.
The official documentation here: https://developer.blackberry.com/cascades/document
The blog introducing the topic here: http://devblog.blackberry.com/2012/12/cascades-pro
In the .pro file, the docs say to add QMAKE_CXX_FLAGS += -fvisible to the Device-Release configuration.
However, the blog says to add QMAKE_CXXFLAGS += -fvisibility=hidden.
Which is correct?
In the bar-descriptor.xml, the doc says to add <entryPointType> section to the Device-Release config.
However, the blog also adds .so to the end of the asset path.
Adding or removing the .so from my asset path doesn't seem to make a difference at time of building.
None of the documentation says to remove the configuration id from the bar-descriptor (e.g. <configuration id="com.qnx.qcc.toolChain.1120265426" name="Device-Release">).
But I found that if I don't remove the id, I get errors and am unable to compile. After removing them to match what a fresh project's bar-descriptor looks like, all works fine.
Is this correct?
Thanks for the help.
Solved! Go to Solution.
01-06-2013 06:21 PM
01-06-2013 06:52 PM - edited 01-06-2013 06:52 PM
I fixed it. Not sure why this isn't properly documented anywhere but by exploring my file directory and comparing against other sample apps, this is my new configuration:
<asset path="arm/o.le-v7/libAppName.so.1.0.0" entry="true" type="Qnx/Elf">AppName.so</asset>