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
Developer
Posts: 135
Registered: ‎11-14-2010
My Device: BlackBerry Z10 (White)

Porting libraries - Ogg

[ Edited ]

I've been porting quite a few libraries to BlackBerry 10 recently so I thought I'd share my findings of each one. 

 

Library name: libogg

Website: http://www.xiph.org/ogg/

Source code: http://downloads.xiph.org/releases/ogg/libogg-1.3.1.tar.gz

Version ported: 1.3.1

Build system: autotools

 

First, make sure your environment is configured for command line development, and that you have autotools installed.

 

Configuring for QNX ARM (for devices)

 

./configure --host=arm-unknown-nto-qnx8.0.0eabi --prefix=`pwd`/build/arm-qnx

 

Configuring for QNX x86 (for simulator)

 

./configure --host=i486-pc-nto-qnx8.0.0 --prefix=`pwd`/build/x86-qnx

 

Building

 

make -j8
make install

Note: the -j flag simply specifies the number of cores I want to use during compilation. It can dramatically decrease build times.

 

Output

Because I used the --prefix flag the library and header files will be installed under build/<qnx_variant>