Page 1 of 1

What am I doing wrong?

Posted: Wed Jan 26, 2011 11:09 pm
by Jolyon
Hello,

I'm trying to compile from the latest in SVN on Mac OSX 10.6.6 and get the following:

libtool: link: ranlib .libs/libpathfinder.a
libtool: link: ( cd ".libs" && rm -f "libpathfinder.la" && ln -s "../libpathfind
er.la" "libpathfinder.la" )
Making all in usecode
Making all in .
/bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I./.
./headers -I./.. -I./../files -I./../imagewin -I./../shapes -I./../objs -I./../a
udio -I./../gumps -I./../tools -I./../shapes/shapeinf -I./../server -I/opt/local
/include/SDL -D_GNU_SOURCE=1 -D_THREAD_SAFE -DMACOSX -O2 -Wno-long-long -M
T intrinsics.lo -MD -MP -MF .deps/intrinsics.Tpo -c -o intrinsics.lo intrinsics.
cc
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I./../headers -I./.. -I./../fil
es -I./../imagewin -I./../shapes -I./../objs -I./../audio -I./../gumps -I./../to
ols -I./../shapes/shapeinf -I./../server -I/opt/local/include/SDL -D_GNU_SOURCE=
1 -D_THREAD_SAFE -DMACOSX -O2 -Wno-long-long -MT intrinsics.lo -MD -MP -MF .deps
/intrinsics.Tpo -c intrinsics.cc -o intrinsics.o
In file included from ./../audio/Audio.h:25,
from intrinsics.cc:27:
./../audio/Midi.h:25:26: error: vorbis/codec.h: No such file or directory
make[3]: *** [intrinsics.lo] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

I've definitely got libvorbis installed and $PATH seems to be correct. Am I missing something or doing something really silly?

Re: What am I doing wrong?

Posted: Thu Jan 27, 2011 6:26 am
by Dominus
More information please.
Where is the vorbis/ogg stuff? What is your path, cflags... What do you pass on to configure?

Re: What am I doing wrong?

Posted: Thu Jan 27, 2011 8:00 am
by Jolyon
vorbis was installed via MacPorts, so the includes are in /opt/local/include. I've tried with various parameters - using --with-vorbis-includes and by specifying a path to static libraries. No luck on any of them. I haven't specified any CFLAGS.

$PATH is /opt/local/include/:/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin

Re: What am I doing wrong?

Posted: Thu Jan 27, 2011 8:08 am
by Dominus
Try this:
export CFLAGS=-I/opt/local/include
export CXXFLAGS=$CFLAGS

Before running configure.

Re: What am I doing wrong?

Posted: Fri Jan 28, 2011 5:51 am
by Jolyon
Ah. That worked a treat. Thanks.

Re: What am I doing wrong?

Posted: Fri Jan 28, 2011 6:49 am
by Dominus
i'll try to remember to write this in readme.macosx for future reference.

Edit: just added this to readme.macosx

Fatal: Not able to open ./cache/production/data_global.php