06-14-2012 09:43 AM
I know there are a lot of posts related to this particular error but nothing seems to be helpful in ,my case, So please forgive me for that I am posting question after almost 2 days of research on google
I am working on a game for blackberry playbook, and for sound/audio I am using openal along with OggVorbis, I have downloaded blackberry port of OggVorbis from following source
but its integration with game is creating issue like it says undefined reference to ov_clear that is in vorbisfile.h and vorbisfile.c is compiled and I can see ov_clear in libvorbis.a qnx momentics IDE, and I have added libvorbis in my game but still I am getting these errors
Solved! Go to Solution.
06-19-2012 01:12 PM
I have never experimented with OggVorbis myself, but sounds like your IDE is not finding your vorbisfile.h;
I understand that your lib is compiled, but are you including the header in your source file where it is referenced?
06-19-2012 02:41 PM
We've compiled ogg/vorbis from standard distro without any problems. From the looks of your error, it sounds like you may not be linking libogg. Ensure that you link both libvorbis and libogg. If you are already linking both, also ensure that the link order is correct. You need to link vorbis before Ogg to satisfy link dependency.
08-07-2012 01:07 PM - edited 08-07-2012 01:07 PM
Just an FYI - posted an blog post on using OpenAL + OggVorbis on BlackBerry Native SDK.
02-18-2013 12:45 PM
I am also having trouble using libvorbis as it is built with the OggVorbis github source. Lots of "undefined reference" errors, but I am positive that I am linking the libvorbis.a file correctly. I think it stems from lacking libogg, as mentioned a couple posts above, but information about using the library is conflicting.
From here: http://devblog.blackberry.com/2012/08/hello-oggvor
My solution was to simply use the libvorbis.a that comes built with the cocos2d-x source for the CocosDenshion sub-project, and it works.