10-31-2012 10:19 AM
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: *** 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 ?
Solved! Go to Solution.
11-06-2012 09:59 PM
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)"
LDFLAGS+=-lm -lbps -lstrm -ljpeg -lscoreloopcore
so many trickly for BB Dev, is it funny or nightmare?
another topic , how to cross-compile ..