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

 

thanks

 

 

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