Cannot build libvorbis

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
flaxum
Posts: 4
Joined: Thu Oct 13, 2005 1:33 pm

Cannot build libvorbis

Post by flaxum »

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

Code: Select all

# 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: Select all

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!
Madsy
Posts: 1
Joined: Thu Mar 02, 2006 1:29 am
Location: Norway
Contact:

Post by Madsy »

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.
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

Code: Select all

--host=psp
You forgot the equal sign.
jockyw2001
Posts: 339
Joined: Thu Sep 29, 2005 4:19 pm

Post by jockyw2001 »

yes that happened to me too when I copied the line from README.PSP, the equal sign is missing there :)
User avatar
turkeyman
Posts: 75
Joined: Wed Oct 20, 2004 7:38 pm
Location: Brisbane, Australia
Contact:

Post by turkeyman »

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 :/
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
J.F.
Posts: 2906
Joined: Sun Feb 22, 2004 11:41 am

Post by J.F. »

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.
Post Reply