I'm trying to install xhp on my local machine, a Macbook pro running os x 10.8.2, aka Mountain Lion (64 bit). I've xampp with the development package installed.
I've already spent many hours trying to get it to work, and I think I'm pretty close. But... I've installed all the dependencies through homebrew, upgraded my XCode version and installed the XCode command line tools.
Through research, I've learned that xampp is running in 32bit mode, while Mountain Lion (Snow Leopard in the article, but I'm guessing its the same thing here) compiles things in 64bit mode.
This is where I run into troubles. I've tried to ./configure the following ways:
./configure
CFLAGS=-m32 CPPFLAGS=-m32 CCASFLAGS=-m32 ./configure
MACOSX_DEPLOYMENT_TARGET=10.8 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config-5.3.1
1) fails at make
. Probably because of the 32/64 bit problem.
2) and 3) succeeds, but it breaks PHP. After adding the xhp.so extension to php.ini, and running some arbitrary, but valid PHP code, I get the following error:
I've found the same problem as an issue on Github, but my makefile does not match the one in the solution.
Any ideas?