Dave
Dave

Reputation: 477

How to build Flac for BlackBerry Cascade?

I want to build Flac for a project I'm working on in Cascades on a Mac in Mometics.

http://sourceforge.net/projects/flac/files/flac-src/

I have in the past successfully built LAME and Ogg by just dragging the c and h files into my Workspace src folder before but that's not working with Flac. I have no idea about using make files, config, building libraries, etc.

Does anyone know how I can build Flac so that I can use it in my project?

I'm on a Mac 10.8.3, want to use Flac 1.2.1, Mometics Version: 10.1.0 Build id: v201303191709 10

Upvotes: 2

Views: 147

Answers (1)

onion
onion

Reputation: 447

You need to cross-compile flac. Untar the sources somewhere, start a terminal and source the bbndk environment, should be something like:

. /opt/bbndk/bbndk-env.sh

depending on where you installed the sdk.

Then do the configure/make/make install dance,

./configure --prefix=/tmp/bbflac --host=arm-unknown-nto-qnx8.0.0eabi --disable-ogg
make
make install

(I had to disable ogg support as I don't have that cross-compiled, if you need it you must build the ogg library first)

You can now pick the shared (libFLAC.so / libFLAC++.so) or static (libFLAC.a / libFLAC++.a) library and required headers from /tmp/bbflac and copy into your project.

Upvotes: 1

Related Questions