What am I doing wrong?

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Jolyon

What am I doing wrong?

Post 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?
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: What am I doing wrong?

Post by Dominus »

More information please.
Where is the vorbis/ogg stuff? What is your path, cflags... What do you pass on to configure?
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Jolyon

Re: What am I doing wrong?

Post 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
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: What am I doing wrong?

Post by Dominus »

Try this:
export CFLAGS=-I/opt/local/include
export CXXFLAGS=$CFLAGS

Before running configure.
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Jolyon

Re: What am I doing wrong?

Post by Jolyon »

Ah. That worked a treat. Thanks.
Dominus
Site Admin
Posts: 5656
Joined: Thu May 14, 2020 1:34 pm

Re: What am I doing wrong?

Post by Dominus »

i'll try to remember to write this in readme.macosx for future reference.

Edit: just added this to readme.macosx
--
Read the documentation and the FAQ! There is no excuse for not reading them! RTFM
Read the Rules!
We do not support Piracy/Abandonware/Warez!
Locked