11-27-2012 06:55 AM - edited 11-28-2012 04:34 AM
Hello,
I would like to build libmpg123 for Blackberry 10. http://www.mpg123.de/index.shtml
Building is done in a standard way
./configure
make
make install
However I don't know how to configure it for Blackberry? Should be something like
./configure --host=qnx ???
Am I moving in the right direction? Anyone has experience porting C libraries like this?
Thanks!
Solved! Go to Solution.
11-27-2012 09:19 AM
Tried to build with this configure helper
#!/bin/sh
#
F="configure-bb10"
if test "$*" = "--help" -o "$*" = "-h"; then
echo "$F [--simulator] [OPTIONS]"
echo ""
echo "where:"
echo " --simulator Optional parameter to specify that the compilation"
echo " target is a simulator."
echo " OPTIONS Other options that will be passed directly to"
echo " ./aconfigure script. Run ./aconfigure --help"
echo " for more info."
exit 0
fi
if test "$1" = "--simulator"; then
shift
TARGET_ARCH="x86"
TARGET_ARCHEND=${TARGET_ARCH}
LIBDIR=${TARGET_ARCH}
TARGET_HOST="i486-pc-nto-qnx8.0.0"
else
TARGET_ARCH="armv7"
TARGET_ARCHEND="${TARGET_ARCH}le"
LIBDIR="armle-v7"
TARGET_HOST="arm-unknown-nto-qnx8.0.0eabi"
fi
RANLIB="${QNX_HOST}/usr/bin/nto${TARGET_ARCH}-ranl ib "
CPP="${QNX_HOST}/usr/bin/qcc -V4.6.3,gcc_nto${TARGET_ARCHEND}_cpp -E "
CC="${QNX_HOST}/usr/bin/qcc -V4.6.3,gcc_nto${TARGET_ARCHEND}_cpp "
LD="${QNX_HOST}/usr/bin/nto${TARGET_ARCH}-ld "
export LDFLAGS=" -L${QNX_TARGET}/${LIBDIR}/usr/lib -L${QNX_TARGET}/${LIBDIR}/lib -L${QNX_HOST}/usr/lib/gcc/${TARGET_HOST}/4.6.3 -lgcc -lasound "
export CFLAGS=" -g -fPIC -DPJMEDIA_AUDIO_DEV_HAS_BB10=1 "
./configure --host=${TARGET_HOST} --disable-oss $*
but getting error: ntoarm-ld: connot find -lopenal
Here is config log(it's quite big)
11-27-2012 09:41 AM
Wow! That helped a lot! I was able to build the library (I don't have missing openal). Awesome, thanks!!! Now I will test if it is actually working as expected ![]()
11-27-2012 10:02 AM
11-28-2012 04:33 AM
Now I compiled libmpg123, created test application, that reads .mp3 file and plays it with OpenAL, everything works. Woo-hoo! Thank you, borceg ![]()