Cascades

BlackBerry Cascades – Troubleshooting Tips

This article is a growing article, covering tips and tricks for resolving errors using BlackBerry Cascades.

When adding a library (such as the suggested BlackBerry Cascades Advertisment Framework) from within the IDE, you cannot build applications and your libraries are mucked up.

You may see errors such as:  /Applications/Momentics.app/host_10_1_0_238/darwin/x86/usr/bin/ntoarm-ld: cannot find -lcascadesadvertisement in the console when performing a build.

Cause:

In some cases the library mappings are messed up (and have been for several years).  The problem is that -l (add library) cascadesadvertisement (as a library) does not exist.  It actually should be bbcascadesadvertisement.  Instead of adding the library to the .PRO file, the editor appends it to the project settings below any available option in the IDE.  You can see the faulty library assignment within config.pri (LIBS += -lcascadesadvertisement)

How to fix it:

Open your project folder in Explorer

Open .cproject in Notepad or Notepad ++

Find 4 of these <listOptionValue builtIn=”false” value=”cascadesadvertisement”/> and just delete them

Find 4 of these <listOptionValue builtIn=”false” value=”${QNX_TARGET}/usr/include/bb/cascades/advertisement”/> and also delete them

Do a save, return to the IDE

Now open “bar-descriptor.xml”

Find 4 of these <asset path=”libcascadesadvertisement.so” type=”Qnx/Elf”>lib/libcascadesadvertisement.so</asset> and again, just delete them

Open your .PRO file and add LIBS += -lbbcascadesadvertisement

Perform a clean and rebuild your project.

 

(1844)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.