# How to compile SPTK on Windows

This HowTo is designed to help you if = you decide=20 to use Microsoft Visual C++. If you follow these steps (below) – = it should be=20 fairly easy.

1. Download FLTK from FLTK website and unpack = it to the=20 top level directory of any logical disk. Rename FLTK directory to just = “fltk”=20 (exclude the version number). Compile it by using the FLTK VC++ = workspace file=20 (select any project). You can find that file in \fltk\visualc = directory.

2. Optionally, download and install ASpell for Win32 and at least one = dictionary for it. Download and unpack aspell-dev to the top level = directory=20 of the same logical disk as FLTK. Rename aspell-dev directory to just = “aspell”=20 (exclude the version number).

3. Optionally, but highly recommended, = install the=20 ODBC manager and drivers for your favorite database(s). You can get it = with=20 the installation of Microsoft Office, or with any of the major SQL = database=20 clients.

4. Download SPTK from SPTK website and unpack it to the = top level=20 directory of the same logical disk as FLTK. Rename FLTK directory to = just=20 “sptk” (exclude the version number). In that case you = don't have to correct=20 any project files.

5. Copy \sptk\sptk\sptk-config.h.win file = to=20 \sptk\sptk\sptk-config.h. Edit the file with any editor to define = options=20 you'd like to have in SPTK. Options you can change, are named as = HAVE_*. For=20 instance, if you don't want ASpell support – you can change the = define for it=20 to 0 like this: #define HAVE_ASPELL 0

6. Compile it by using the SPTK VC++ = workspace file=20 (selecting any example project). You can find that file in \sptk\VC6=20 directory.

7. The resulting libraries would be = placed into=20 \sptk\lib. If you want to create your own project using SPTK, make = sure you=20 include fltk and sptk directories to the include path list, and fltk = and sptk=20 libraries to link libraries list. As a quick solution, you can copy = and modify=20 one of the VC++ project files from \sptk\examples and modify it in any = test=20 editor, or directly in Visual Studio.

8. Copy the SPTK themes from = \sptk\.themes.sptk=20 into Windows directory, most likely C:\Windows\.themes.sptk.

9. The most important step. Have=20 fun!