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

Trusted Contributor
Posts: 160
Registered: ‎09-13-2012
My Device: 9900
My Carrier: vodafone

Compiling OggVorbis issues

Hi all,


I have made many different attempts to get the .so libraries from a clone of oggvorbis aquired from blackberry github.


I have tried using cmd, minGW, momentics ide, it just won't build for different reasons.


I have just ftried the following myconfig..


git clone https://github.com/blackberry/OggVorbis.git oggvorbisclone2
cd oggvorbisclone2/vorbis/qnx


and i receive 


$ c:\myconfig
Cloning into 'oggvorbisclone2'...
cd ogg && make
make[1]: Entering directory `/oggvorbisclone2/vorbis/qnx/ogg'
makefile:8: recurse.mk: No such file or directory
make[1]: *** No rule to make target `recurse.mk'. Stop.
make[1]: Leaving directory `/oggvorbisclone2/vorbis/qnx/ogg'
make: *** [all] Error 2


Anyone know what this errors means please?




Posts: 188
Registered: ‎01-27-2012
My Device: playbook
My Carrier: ...

Re: Compiling OggVorbis issues

Did you set up the bb ndk environment variables?

Not sure about windows but when I cross compile anything on my linux box I have to set up the environment first with:

 source /path to/bbndk/bbndk-env.sh



Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook
My Carrier: x

Re: Compiling OggVorbis issues

Read and follow instructions under "BUILDING FOR BlackBerry QNX (using Momentics IDE):" in README file.

Trusted Contributor
Posts: 160
Registered: ‎09-13-2012
My Device: 9900
My Carrier: vodafone

Re: Compiling OggVorbis issues

Thanks for your replies.


I eventually got OggVorbis to compile by importing it into workspace, building, and then managed to link to it in another workspace project.


The only problem now is that I cannot encode audio in vorbis using the version of the library available to me server side (Xuggler). Buffer overflow problem. I should have checked first!


Anyone any suggestions how I can pass ffmpeg audio packets on to the playbook speakers ? I cant use vorbis, I can't use wav (due to sound being streamed), what codec and what lib for ndk could solve this for me?