Facebook Open Platform on Fedora 8
From Facebook Developer Wiki
This is exactly what I've done to get Facebook Open Platform running on Fedora 8, running in VMWare on a Vista Machine
- Install Fedora 8 using VMWare
- Setup a new vhost
- The ServerName I've given is 'fbop'
- Create a 'Hello, World!' index page
- Add an entry to my host OS's hosts file, pointing fbop to my vhost. -- all works fine
-
yum install php-devel - Checkout the fb open platform from http://svn.facebook.com/svnroot/platform/fbopen/
- Download all dependencies for Firefox and libfbml -- (you can use [this shell script])
-
./build-all.py - atk failed.
-
export PKG_CONFIG_PATH=/usr/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig - comment out pkgconfig and glib from packages in build-all.py so they won't be installed again
-
./build-all.py - cairo failed.
- vim dependencies/cairo-1.2.6/src/cairo-type1-subset.c add '#include <ctype.h>' right after '#include FT_TYPE1_TABLES_H'
- comment out all dependencies up to and including cairo
- We need to make install this manaully (i.e. without the build-all.py script as it will unpack cairo again and write over our changes)
-
cd dependencies/cairo-1.2.6 -
./configure; make; sudo make install; -
cd ../.. -
./build-all.py - so close! ...xrender failed.
- However, Fedora 8 alreaedy has libXrender 0.9.4 installed, and everything seems to work OK with this...
- coment xrender from packages in build-all.py
-
./build-all.py - Fails after a little while...
-
cd dependencies/mozilla -
sed -i "s@EXTRA_DSO_LDOPTS += \$(MOZ_GTK2_LIBS)@& -L/usr/lib -lXrender -lX11@" layout/build/Makefile.in -
cd ../.. - comment out result = system("tar ...
-
./build-all.py ... failed - edit src/fbml.cpp to not use goto.
- it's only two places, so being lazy I just copied and pasted the code at label exit to where the gotos were.
-
./build-all.py... failed - edit src/js/jsbit.h:173 and replace the second 'long' in sizeof
-
./build-all.py... COMPLETE! hazzah! - add extension=fbml.so to /etc/php.ini
-
service httpd restart
There! Facebook Open Platform should be installed...
I'm not sure if anyone will actually use this - just thought I'd share how I got it working on Fedora 8.
If anyone's interested in me putting up here how I got the canvas working properly so I can completely test the Facebook App locally, send me an email paul.ferrett@servicecentral.com.au and I might put something together.
Have fun! Paul
