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

Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.

Trusted Contributor
Posts: 152
Registered: ‎02-23-2011
My Device: dev alpha playbook 9500 8300
My Carrier: uc
Accepted Solution

how to modiy the Makefile to link the .so lib ?

I use makefile to compile the native app under window platform.


i had added some libs  to the common,mk like below, when i need.


# Add your required library names, here
LIBS+= m  bps strm jpeg  freetype mmrndclient"


now , i'm tring  the openal , and add " OpenAL alut asound" to the end of the LIBS. like this

LIBS+= m  bps strm jpeg  freetype mmrndclient OpenAL alut asound


but the console said

"make -j 1 -Co.le-v7-g -fMakefile all


make[2]: *** No rule to make target `libOpenAL.a', needed by


i have searching the files under the "BB10SDK", only the libOpenAL.so exists ,  in mine mind, there is no difference between .a and .so  while compiling .


how to modify the makefile to share link the .so file ?





Trusted Contributor
Posts: 152
Registered: ‎02-23-2011
My Device: dev alpha playbook 9500 8300
My Carrier: uc

Re: how to modiy the Makefile to link the .so lib ?

DO not follow the LIBS flag in the defaul common.mk
LIBS+= m  bps strm jpeg  freetype

Using LDFLAGS tag, Add all your libs below
" LDFLAGS+=-Wl,-z,relro -Wl,-z,now $(if $(filter g so shared,$(VARIANTS)),,-pie)"
like this:
LDFLAGS+=-lm -lbps -lstrm -ljpeg -lscoreloopcore


so many trickly for BB Dev, is it funny or nightmare?


another topic ,  how to cross-compile ..