http://www.cs.washington.edu/education/courses/csep557/09sp/images/logosmall.gif

CSEP 557 Current Trends in Computer Graphics


Autumn Quarter 2010

 

Installing FLTK...

Windows

1. Copy FLTK files

2. Configure MSVC

3. Verify that your project is linking with the correct library

That's it!

Linux

Note: FLTK is already installed on instructional Linux systems (attu and the workstations in the Allen Center labs) in /usr, and on your own Linux system, before attempting to follow these instructions you should look for prepackaged binaries for your own distribution.

1. Install Mesa
As the first step, you must install MesaGL. You can get the source of MesaGL from here. To install it,

> gunzip MesaLib-3_0_tar.gz
> tar -xvf MesaLib-3_0_tar
> cd Mesa-3.0
> make linux-386
.....

Serveral minutes later, you will have libMesaGL.a and LibMesaGLU.a in Mesa-3.0/lib and a directory called GL in Mesa-3.0/include. I usually prefer to copy all these files into ~/local/lib and ~/local/include such that I can access all the libraries without remembering tons of paths.

2. Install Fltk
Now, we try to make fltk. You can get the source from here.

> unzip fltk-1.1.10-source.zip
> cd fltk-1.1.10
> ./configure 
> make
 
Create a local directory in you home dir
Open makeinclude file and change the prefix variable to the your local
directory
 
> make install
> cp fltk-1.1.10/fluid/fluid ~/local/bin
> cp fltk-1.1.10/

That's it. You will have
'fluid' in ~/local/bin,
two directories, FL and Fl, in include
and libfltk.a in lib.

Now everyting is in ~/local, you need to change the value of the variable, $(LOCAL), in Makefile to ~/local.

Other

If you have a Mac, an unsupported variant of Windows, or some yet rarer variety of environment you may still be able to use FLTK on your machine. Download the FLTK source and follow the directions provided to compile FLTK for your own system.

size=2 width="100%" align=center>

CSEP 557 Trends in Computer Graphics
Autumn Quarter 2010
 

Last modified: Monday, 04-Oct-2010 19:20:28 PDT