forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Where is -lvorbisidec ?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
GlennNZ



Joined: 13 Jan 2007
Posts: 25

PostPosted: Sun Jul 20, 2008 12:15 pm    Post subject: Where is -lvorbisidec ? Reply with quote

I'm trying to get my app to compile, but SDL_mixer is proving problematic. First I tried it with libTremor, but I kept getting

Code:

/usr/local/pspdev/psp/lib/libSDL_mixer.a(mixer.o): In function `Mix_LoadWAV_RW':
/home/glennm/psptoolchain/SDL_mixer/mixer.c:442: undefined reference to `Mix_LoadOGG_RW'
/usr/local/pspdev/psp/lib/libSDL_mixer.a(music.o): In function `Mix_LoadMUS_RW':
/home/glennm/psptoolchain/SDL_mixer/music.c:1331: undefined reference to `OGG_new_RW'
etc


So instead I gave libogg and libvorbis a go, and instead I get

Code:

/usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/bin/ld: cannot find -lvorbisidec


In my makefile the libs look like
Code:

LIBS = $(shell $(SDL_CONFIG) --libs) -lSDL_image -lSDL_mixer -lvorbisidec -lvorbis -logg -lSDL_ttf -lSDL -lGLU -lglut -lGL -ljpeg -lpng -lm -lpspctrl -lpspvfpu -lpsprtc -lpsppower -lstdc++ -lpspdebug -lpspgu -lpspctrl -lpspge -lpspdisplay -lpsphprm -lpspsdk -lpsprtc -lpspaudio -lc -lpspuser -lpsputility -lpspkernel -lpspnet_inet -lpsppower


I don't know what this lvorbisidec is to be honest. The only reason I'm adding it is because my initial problem was similar to http://forums.ps2dev.org/viewtopic.php?t=10669&highlight=lvorbisidec.

In my /usr/local/pspdev/psp/lib I do have a libogg.a libvorbis.a libvorbisenc.a libvorbisfile.a but I don't know how relevant that is.

Cheers.
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Sun Jul 20, 2008 1:30 pm    Post subject: Reply with quote

I hate to say this but "-lvorbisidec " indeed does not exist :)

Try -lvorbisdec

Wally
Back to top
View user's profile Send private message AIM Address
GlennNZ



Joined: 13 Jan 2007
Posts: 25

PostPosted: Sun Jul 20, 2008 1:35 pm    Post subject: Reply with quote

Copied and pasted perfectly wrong from another post.

I wish that was the end of the matter, but I get the same error, but with different spelling.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jul 20, 2008 2:01 pm    Post subject: Reply with quote

When in doubt, look in the libs directory... looking in mine, I spot "libvorbisidec.a", so it is indeed "-lvorbisidec". That assume you successfully ran the libraries script, not just the toolchain.
Back to top
View user's profile Send private message AIM Address
GlennNZ



Joined: 13 Jan 2007
Posts: 25

PostPosted: Sun Jul 20, 2008 2:30 pm    Post subject: Reply with quote

I don't have that lib file then. Where does it come from, because it didn't come from libogg or libvorbis?

I didn't have any success with the libraries script, which I'm assuming is the psplibraries that is available on svn.

I always get this problem
Code:

checking for correct ltmain.sh version... no
configure: error:

*** [Gentoo] sanity check failed! ***
*** libtool.m4 and ltmain.sh have a version mismatch! ***
*** (libtool.m4 = 1.5.23b, ltmain.sh = 1.5.6) ***

Please run:

  libtoolize --copy --force

if appropriate, please contact the maintainer of this
package (or your distribution) for help.

../scripts/008-libogg.sh: Failed.
glennm@localhost ~/psptoolchain/psplibraries $ libtoolize --copy --force
libtoolize: `configure.ac' does not exist
Try `libtoolize --help' for more information.


I was having more luck installing things one by one... until I wanted sound.

If someone would like to help with the libtoolize, then cheers for that.

Edit:
I just found out that I needed to go to psplibraries/build/libogg to do the libtoolize --copy --force.
I then had to use.
Code:
svn revert config.sub

So that's that little mystery solved.

Edit 2:
Looks like using the psplibraries has resolved my missing -lvorbisidec as it now appears in the libs and my make is now spewing forth different errors for me to fix. So in some ways, it was a success.
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jul 20, 2008 4:07 pm    Post subject: Reply with quote

If you're really wanting to be technical, vorbisidec is Tremor - the integer-based vorbis decoder. It does require that ogg be compiled before it will compile, so if ogg failed in the libraries script, that would explain its absence. :)

Good work on solving your problem. I've seen people who would wait over a week on a thread like this for a response rather than simply try something on their own. :D
Back to top
View user's profile Send private message AIM Address
whistler



Joined: 04 Mar 2008
Posts: 40

PostPosted: Sun Jul 20, 2008 6:05 pm    Post subject: Reply with quote

Wally4000 wrote:
I hate to say this but "-lvorbisidec " indeed does not exist :)

Try -lvorbisdec

Wally


are you crazy, lol. maybe you should use google before giving out advice

edit glenn if you finally solve your problem thats great:) but if you need an example of something working then post back here
Back to top
View user's profile Send private message
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Jul 20, 2008 6:30 pm    Post subject: Reply with quote

whistler wrote:
Wally4000 wrote:
I hate to say this but "-lvorbisidec " indeed does not exist :)

Try -lvorbisdec

Wally


are you crazy, lol. maybe you should use google before giving out advice

edit glenn if you finally solve your problem thats great:) but if you need an example of something working then post back here


Wally does a good job most of the time. Everyone has a brain-fart every now and then. :)

There's no need to post back here for an example... there's several examples already in this forum. I should know - I worked on one of them. ;)
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group