Installing: ---------- I. UNIX II. MS-Windows I. UNIX: -------- We've only tested it under Linux so far. 1. Unpack the archive into a directory of your choice: gunzip pyfltkxxxx.tar.gz tar xf pyfltkxxxx.tar 2. Edit the file setup.py. Basically you have to fit the link libraries to your local build of FLTK (libz, libjpeg, libpng, OpenGL). 3. To build the python wrappers: cd pyfltkxxx export FLTK_HOME=...#set it to your fltk directory python setup.py build python setup.py install This will build the wrapper and install it to the Python directores. You should then be able to swith to test/ and run the demos by typing: python demos.py Note: As I do not know configure, I do not provide any such scripts. Basically, you will have to edit the setup file to adjust to your installation. II. MS-Windows: --------------- MS-Visual C++ under Windows Console: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Unpack the archive into a directory of your choice: gunzip pyfltkxxxx.tar.gz tar xf pyfltkxxxx.tar 2. Edit the file setup.py. Basically you have to fit the link libraries to your local build of FLTK (libz, libjpeg, libpng, OpenGL). The default will fit the normal FLTK distribution. 3. Set the environment variable FLTK_HOME to the place where you installed FLTK. 4. To build the python wrappers: Open a command window, e.g., command.com. cd pyfltkxxx python setup.py build python setup.py install This will build the wrapper and install it to the Python directores. You should then be able to swith to test/ and run the demos by typing: python demos.py MinGW ~~~~~ 1. Unpack the archive into a directory of your choice: gunzip pyfltkxxxx.tar.gz tar xf pyfltkxxxx.tar 2. Build the proper libpython22a.lib. See http://pyfltk.sourceforge.net for directions. 3. Edit the file setup_mingw.py. Basically you have to fit the link libraries to your local build of FLTK (libz, libjpeg, libpng, OpenGL). The default will fit the normal FLTK distribution. 4. Set the environment variable FLTK_HOME to the place where you installed FLTK. 5. To build the python wrappers: Open a MSYS command window cd pyfltkxxx python setup_mingw.py build python setup_mingw.py install This will build the wrapper and install it to the Python directores. You should then be able to switch to test/ and run the demos by typing: python demos.py III. Other Platforms: --------------------- Proceed according to the above outline. I would be glad about any feedback if you succeeded with building pyFltk on any other platform. Andreas Held pyfltk.sourceforge.net a.held@computer.org