Page 1 of 1
Has anybody tried compiling under XCode 4?
Posted: Fri Apr 01, 2011 7:32 am
by Jolyon
I'm getting errors since I upgraded to XCode. Apparently vorbis.h cannot be found. I don't *think* I've changed anything else that would affect the developer tools.
Re: Has anybody tried compiling under XCode 4?
Posted: Fri Apr 01, 2011 8:22 am
by Dominus
Are you using macports or did you build ogg vorbis yourself?
Copy paste your .profile file and the commands you use to compile exult.
Exult builds fine for me with xcode4, the current snapshot has been built by a mixture of Xcode 3.2.x and 4 (mixture because some stuff xcode 3.26 stuff is needed for making a threeway universal binary).
Re: Has anybody tried compiling under XCode 4?
Posted: Mon Apr 04, 2011 8:08 am
by Jolyon
I'm using MacPorts for ogg.
I manually set
export CFLAGS=-I/opt/local/include
export CXXFLAGS=$CFLAGS
Before compiling and follow the instructions in the readme to compile. I don't try to link to static libraries.
Here's my .profile:
#Define aliases
alias ls='ls -G'
alias ll='ls -lG'
alias la='ls -lGa'
# 'pman' bit - this will create a PDF file of a UNIX man page.
pman()
{
man -t "${1}" | open -f -a /Applications/Preview.app/
}
# MacPorts Installer addition on 2010-02-15_at_19:47:34: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
The weird thing was I compiled right before updating to XCode 4 and it was fine. Afterwards, no such luck.
Re: Has anybody tried compiling under XCode 4?
Posted: Mon Apr 04, 2011 10:01 am
by Dominus
I'm setting these, maybe one of those is really needed:
export CFLAGS=-I/opt/local/include
export LDFLAGS=-L/opt/local/lib
export CXXFLAGS=$CFLAGS
export CPPFLAGS=$CXXFLAGS
export ACLOCAL_FLAGS="-I /opt/local/share/aclocal"
export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig"
Re: Has anybody tried compiling under XCode 4?
Posted: Wed Apr 06, 2011 3:42 am
by Jolyon
That seems to have worked! Thanks.
Did anything change between XCode version (or SVN revisions) that could have caused it to stop compiling? Previously I never had to se CPPFLAGS, ACLOCAL_FLAGS, or PKG_CONFIG_PATH.
Re: Has anybody tried compiling under XCode 4?
Posted: Wed Apr 06, 2011 5:20 am
by Dominus
I think I had problems before, but never bothered finding out which line fixed it.