| View previous topic :: View next topic |
| Author |
Message |
flaxum
Joined: 13 Oct 2005 Posts: 4
|
Posted: Wed Mar 01, 2006 12:24 pm Post subject: Cannot build libvorbis |
|
|
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 |
|
 |
Madsy
Joined: 02 Mar 2006 Posts: 1 Location: Norway
|
Posted: Thu Apr 20, 2006 8:12 am Post subject: |
|
|
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 |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Thu Apr 20, 2006 9:29 am Post subject: |
|
|
You forgot the equal sign. |
|
| Back to top |
|
 |
jockyw2001
Joined: 29 Sep 2005 Posts: 339
|
Posted: Thu Apr 20, 2006 5:35 pm Post subject: |
|
|
| yes that happened to me too when I copied the line from README.PSP, the equal sign is missing there :) |
|
| Back to top |
|
 |
turkeyman

Joined: 20 Oct 2004 Posts: 75 Location: Brisbane, Australia
|
Posted: Mon Apr 16, 2007 12:46 am Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Sun Apr 29, 2007 7:32 pm Post subject: |
|
|
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 |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Tue May 01, 2007 1:40 pm Post subject: |
|
|
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 |
|
 |
|