## How To Compile

User's Guide > About spwave > How To Compile

To compile the source code, spLibs (spBase, spAudio, spComponent, spLib and spPlugin) which can be downloaded from here are required.

How to compile on Unix (including Linux or Cygwin) is as follows. Go to the spwave top directory, and make a symbolic link from `include' directory and `lib' directory of spLibs (e.g. /usr/local/include and /usr/local/lib):

     % cd spwave-X.X.X
     % ln -s /usr/local/include
     % ln -s /usr/local/lib

If your platform is supported by the configuration file of spBase, you can build executable binary by typing `make' in the source directory:

     % cd spwave
     % make

To install this binary to your system directory (e.g /usr/local), login as root and type:

     # make SPDESTROOT=/usr/local install

If you don't want to make a symbolic link from spLibs directory, you can compile and install by adding `TOP=/usr/local` option (/usr/local is top directory of spLibs) to the above command line of `make' such as:

     % cd spwave-X.X.X
     % cd spwave
     % make TOP=/usr/local
     % su
     # make TOP=/usr/local SPDESTROOT=/usr/local install

By default, the gtk version is selected forcedly on Linux, so compiling the Motif version on Linux requires `USE_MOTIF=y` option against `make' command. If you want to compile on Windows or Mac OS, you have to find out how to compile spwave by yourself :-)

User's Guide > About spwave > How To Compile

Last modified: "2024-06-11 16:11:02 hideki"