Compiling Applications with Otk

You can either compile your application and Otk in one step, or compile Otk and link your application separately. Or,


Compiling OTK

To Compile on Unix/Linux:
    Be sure to link with -lGLU -lGL and -lX11.
For example, to compile on Linux:
          cc -O -I/usr/X11R6/include -L/usr/X11R6/lib yourprogram.c -lGLU -lGL -lXmu -lXext -lX11 -lm -o yourprogram
To compile on Sun Solaris
          gcc -O -I/usr/dt/include -L/usr/dt/lib yourprogram.c -lGLU -lGL -lXmu -lXext -lX11 -lm -o yourprogram.exe

To Compile on Microsoft, MinGW is recommended:
    The platform auto-detection will automatically detect MinGW and compile the right sections.
    See Downloading & installing MinGW, and compiling Otk with MinGW

To Compile on Microsoft using MS-Visual-C:
    Not sure if auto-platform detect will work in this case. Otherwise, set PLATFORM_KIND to MsVisC_Platform.
    Compile as console application. Needs Glut libs.
    (See Microsoft Visual-C.)


Other Notes:







Back to main page

SourceForge.net Logo