- Install BlackBerry 10 SDK
- Start the environment variable by sourcing
/Applications/Momentics.app/bbndk-env.sh
- Set the output dir for device and simulator e.g.
$HOME/Projects/qnxlib/arm
and$HOME/Projects/qnxlib/x86
- Execute
gtkdocize
- Execute
autoreconf --force --install --verbose
- Use this shell command to build
For Device
ICU_CFLAGS="-I$QNX_TARGET/usr/include/" \
ICU_LIBS="-L$QNX_TARGET/armle-v7/usr/lib/ -licudata -licui18n -licuuc" \
FREETYPE_CFLAGS="-I$QNX_TARGET/usr/include/ -I$QNX_TARGET/usr/include/freetype2" \
FREETYPE_LIBS="-L$QNX_TARGET/armle-v7/usr/lib/ -lfreetype" ./configure --host=arm-unknown-nto-qnx8.0.0eabi \
--with-glib=no \
--with-gobject=no \
--with-cairo=no \
--with-icu=yes \
--with-graphite2=no \
--with-freetype=yes \
--with-uniscribe=no \
--with-coretext=no \
--prefix=$HOME/Projects/qnxlib/arm/ \
&& make && make install
For Simulator:
ICU_CFLAGS="-I$QNX_TARGET/usr/include/" \
ICU_LIBS="-L$QNX_TARGET/x86/usr/lib/ -licudata -licui18n -licuuc" \
FREETYPE_CFLAGS="-I$QNX_TARGET/usr/include/ -I$QNX_TARGET/usr/include/freetype2" \
FREETYPE_LIBS="-L$QNX_TARGET/x86/usr/lib/ -lfreetype" ./configure --host=i486-pc-nto-qnx8.0.0 \
--with-glib=no \
--with-gobject=no \
--with-cairo=no \
--with-icu=yes \
--with-graphite2=no \
--with-freetype=yes \
--with-uniscribe=no \
--with-coretext=no \
--prefix=$HOME/Projects/qnxlib/x86/ \
&& make && make install
The libraries will be available on your output directories
$HOME/Projects/qnxlib/arm/
for device$HOME/Projects/qnxlib/x86/
for simulator
Enjoy!
Notes:
- You need Mac OSX or Linux to build them. You can use the built SDK and headers on Windows later on.
- You need to install
gtk-doc
package on OSX, on macports it'ssudo port install gtk-doc
before able to build.