Build XBMC under 10.7.4 / Xcode 4.3
#1
Just for my own amusement, I've been trying to build XBMC for iOS/ATV2 under Lion 10.7.4 and Xcode 4.3.

Xcode 4.3 has moved to everything being wrapped up in a .app and is now located in /Applications. There is no /Developer anymore.

This is how it's gone so far:

First up I was getting errors of autoconf not found. Realised that autoconf, automake, lib tool and stuff are no longer packaged with Xcode. I'm sure there's reasons for this, and I'm also none of those reasons help us end users in any way.....

Did some googling, and found a guide for installing the latest versions of these tools from source on 10.6.8, and luckily this script works for 10.7.4.

Got it from here: Install tools - How-to

Basically this is the script:

Code:
curl -O http://mirrors.kernel.org/gnu/m4/m4-1.4.13.tar.gz
tar -xzvf m4-1.4.13.tar.gz
cd m4-1.4.13
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://mirrors.kernel.org/gnu/autoconf/autoconf-2.65.tar.gz
tar -xzvf autoconf-2.65.tar.gz
cd autoconf-2.65
./configure --prefix=/usr/local # ironic, isn't it?
make
sudo make install
cd ..
# here you might want to restart your terminal session, to ensure the new autoconf is picked up and used in the rest of the script
curl -O http://mirrors.kernel.org/gnu/automake/automake-1.11.tar.gz
tar xzvf automake-1.11.tar.gz
cd automake-1.11
./configure --prefix=/usr/local
make
sudo make install
cd ..
curl -O http://mirrors.kernel.org/gnu/libtool/libtool-2.2.6b.tar.gz
tar xzvf libtool-2.2.6b.tar.gz
cd libtool-2.2.6b
./configure --prefix=/usr/local
make
sudo make install

So after getting these tools installed I managed to progress a little further.

Next issue I realised that the build scripts and what not all look for /Developer, and as this no longer exists we had a problem. To solve this I symlinked /Developer to /Applications/Xcode.app/Contents/Developer .

This got me further.

So with all of this I've managed to get to make xcode_depends but during that process it errors out with:

Code:
/usr/bin/ranlib: file: dllloader.a(ldt_keeper.o) has no symbols
make -C lib
make -C ffmpeg
Makefile:2: config.mak: No such file or directory
Makefile:45: /common.mak: No such file or directory
Makefile:84: /libavutil/Makefile: No such file or directory
Makefile:84: /library.mak: No such file or directory
Makefile:161: /doc/Makefile: No such file or directory
Makefile:162: /tests/Makefile: No such file or directory
make[2]: *** No rule to make target `/tests/Makefile'.  Stop.
make[1]: *** [ffmpeg] Error 2
make: *** [dvdpcodecs] Error 2

Well, that's as far as I've gotten so far. Run out of time to investigate any further for now, but thought maybe this info would be useful to anyone else messing around with it.

And of course, any of the steps I've done come with a zero responsibility guarantee... if your computer breaks, your cat dies, or your ear gets itchy, it isn't my fault!

If I have helped you in any way, please forgive me, it was entirely accidental.
Reply


Messages In This Thread
Build XBMC under 10.7.4 / Xcode 4.3 - by Cranial - 2012-05-12, 01:58
Logout Mark Read Team Forum Stats Members Help
Build XBMC under 10.7.4 / Xcode 4.30