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 

Cannot build libvorbis

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



Joined: 13 Oct 2005
Posts: 4

PostPosted: Wed Mar 01, 2006 12:24 pm    Post subject: Cannot build libvorbis Reply with quote

I've been trying for a while... I made libogg, but it still doesn't work.

Code:
# LDFLAGS="-L$(psp-config --pspsdk-path)/lib -lc -lpspuser" ./autogen.sh      --host psp --prefix=$(psp-config --psp-prefix)
checking for autoconf...
checking for automake...
checking for libtool... libtoolize
Generating configuration files for vorbis, please wait....
  aclocal -I .
/usr/share/aclocal/progsreiserfs.m4:13: warning: underquoted definition of AC_CHECK_LIBREISERFS
  run info '(automake)Extending aclocal'
  or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
  autoheader
  libtoolize --automake
  automake --add-missing
  autoconf
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.


Code:
hecking whether the psp-g++ linker (/usr/local/pspdev/psp/bin/ld) supports shared libraries... no
checking dynamic linker characteristics... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
appending configuration tag "F77" to libtool
checking for memory.h... (cached) no
checking for cos in -lm... yes
checking for pthread_create in -lpthread... no
checking for pkg-config... yes
checking for psp-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for OGG... checking for Ogg... cross compiling; assumed OK...
yes
checking for oggpack_writealign... no
configure: error: Ogg >= 1.0 required !


libogg.a is in /usr/local/pspdev/psp/lib
I'm running suse 10

Please help!
Back to top
View user's profile Send private message
Madsy



Joined: 02 Mar 2006
Posts: 1
Location: Norway

PostPosted: Thu Apr 20, 2006 8:12 am    Post subject: Reply with quote

Is PKG_CONFIG_PATH set?
This worked out for me in cygwin:
Set the PKG_CONFIG_PATH environment var to whereever ogg.pc is. libogg must be compiled first.
export PKG_CONFIG_PATH="$PSPDEV/psp/lib/pkgconfig"

Thanks to chip-pwl and epac for getting me on the right track.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
ooPo
Site Admin


Joined: 17 Jan 2004
Posts: 2032
Location: Canada

PostPosted: Thu Apr 20, 2006 9:29 am    Post subject: Reply with quote

Code:
--host=psp

You forgot the equal sign.
Back to top
View user's profile Send private message Visit poster's website
jockyw2001



Joined: 29 Sep 2005
Posts: 339

PostPosted: Thu Apr 20, 2006 5:35 pm    Post subject: Reply with quote

yes that happened to me too when I copied the line from README.PSP, the equal sign is missing there :)
Back to top
View user's profile Send private message
turkeyman



Joined: 20 Oct 2004
Posts: 75
Location: Brisbane, Australia

PostPosted: Mon Apr 16, 2007 12:46 am    Post subject: Reply with quote

i'm having the same problem, under cygwin.
libogg compiled fine and it seems to be installed properly.
it's not working with either 'PKG_CONFIG_PATH' set as described, or with the '=' put back in...
the ogg.pc file is present. dont know what else to check :/
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Sun Apr 29, 2007 7:32 pm    Post subject: Reply with quote

Same thing here with latest toolchain and sdk in Ubuntu 7.04. Error is:

checking for oggpack_writealign... no
configure: error: Ogg >= 1.0 required!

I compiled libogg with the "=" fix, and the PKG_CONFIG_PATH set... no errors were reported and libogg.a is there.

EDIT: looking at config.log generated when trying to do libvorbis, I noticed this:

undefined reference to 'realloc'

and

undefined reference to 'memmove'

in libogg.a. I guess when libogg is being made, or when it's used, it's not also linking in the lib with those functions.
Back to top
View user's profile Send private message AIM Address
J.F.



Joined: 22 Feb 2004
Posts: 2906

PostPosted: Tue May 01, 2007 1:40 pm    Post subject: Reply with quote

I'm doube-posting because editing a post won't bump the thread...

Found the problem... you have to have pkg-config installed. It isn't installed by default in Ubuntu, and it isn't in the list of packages required to build the sdk (since only things like libvorbis needs it). Once I installed pkg-config (from the repo via synaptic), libvorbis built just peachy.
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