-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I have seen a number of people on the mailing list archives ask whether or not Freevo will run on OS X. In my experience, the answer is: not yet (but your mileage may vary--please let me know if you are able to get it to run). It looks like there may be a little problem with pygame (but I have not traced the exact source of the problem yet). For those that want, I will detail the prerequisite install instructions, but something in the pygame module is unhappy with the window manager. If you are going to follow the instructions, be sure you have a long afternoon available and access to a large pot of coffee... Also, these instructions are aimed at a power user or programmer. Maybe someone can flesh out the individual steps if there is demand.
1. Apple prerequisites
1a. Be sure you have Apple's OS X development kit installed. This should have came with your computer, but you can download it from http://developer.apple.com if you sign up to be a developer (which is free). You will need this to to compile smpeg.
1b. Be sure to install Apple's X11--and not just the runtime, the development headers. (Go to http://www.apple.com/macosx/x11/download/ and download the app, then go to the same URL and click the "Download SDK" in the lower right corner of the page to get the development headers.)
2. Install PyGame prerequisites
2a. Install SDL (development) binary package for OSX from http://www.libsdl.org/
2b. Install SDL_image (development) binary package for OSX from http://www.libsdl.org/projects/SDL_image/
2c. Install SDL_ttf (development) binary package from http://www.libsdl.org/projects/SDL_ttf/
2d. Install SDL_mixer (development) binary package from http://www.libsdl.org/projects/SDL_mixer/
2e. Install smpeg from http://www.icculus.org/smpeg/ (get cvs source, open in ProjectBuilder file, copy framework from build dir to /Library/Frameworks)
2f. Copy all of the SDL frameworks from ~/Library to /Library (this makes headers usable systemwide). Use finder and not the "cp" command so resources are kept.
3. Install Python 2.3:
3a. Install Fink (http://fink.sourceforge.net/).
3b. Optionally, install Fink Commander (http://finkcommander.sourceforge.net/) for a nice GUI to Fink.
3c. Use Fink to install Python 2.3 and numeric-py23
3d. Override the default OS X Python (2.2) with Fink's (2.3):
cd /usr/bin
sudo mv python python2.2
ln -s /sw/usr/bin/python2.3 python
4. Install PyGame, using the OS X files from http://undefined.org/python/
5. Install Python Imaging (this required a little finessing). Take care to follow the OS X changes. You may have to tweak setup.py to include /sw/include and /usr/X11R6/include.
6. Install Python Twisted, the "Twisted" project from SourceForge (sf.net)
7. Edit freevo startup script
7a. Change "ps -ef" to "ps -e"
7b. Comment out the "if...else...fi" section involving "stat $0". The script should only run the line in the "else" clause (export FREEVO_SCRIPT=`echo $0`) without evaluating the if because OS X has no "stat" command (and I cannot seem to find one in Fink).
At this point, Freevo *should* be ready to go, but it is not because of a bug. When run, you will get the following stack trace:
Traceback (most recent call last):
File "./src/main.py", line 94, in ?
import osd # The OSD class, used to communicate with the OSD daemon
File "/Users/enigma/Code/sf/freevo/src/osd.py", line 111, in ?
import pygame
File "/sw/lib/python2.3/site-packages/pygame/__init__.py", line 158, in ?
raise ImportError, "Can not access the window manager, use bundlebuilder or execute with the pythonw script"
ImportError: Can not access the window manager, use bundlebuilder or execute with the pythonw script
I seem to get the same bug whether I run it in the native Terminal app or an X11 xterm. Does anyone know what this means? More importantly, does anyone know how to fix it?
-Brian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (Darwin)
iD8DBQE/VDS10dKNWt3rpSURAmE4AJ9I19VKdIBdlslmkQEEu/TWWeIGRQCgo8lR SKq0WqAeGwtoUmKm0ITqJxI= =U8NG -----END PGP SIGNATURE-----
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-users
