Contents User Forum Source Index APIs by Task APIs by Level Data


Installing G3D on Linux and FreeBSD

The following sections give step-by-step instructions for downloading, building, and installing the 7.00 version of G3D on Linux and FreeBSD.

The short version of these instructions is simple:

  1. Unzip G3D-7.00-src.zip
  2. Type buildg3d install /usr/local to build the library
  3. See /usr/local/G3D-7.00/demos/starter/ for a simple application framework


  1. Execute the following commands at the terminal prompt on your local machine to download, build, and install G3D:
    pushd /tmp
    curl http://prdownloads.sourceforge.net/g3d-cpp/G3D-7.00-src.zip?download > G3D-7.00-src.zip
    unzip G3D-7.00-src.zip
    pushd G3D
    chmod u+x buildg3d
    ./buildg3d install /usr/local
    popd
    rm -rf G3D
    popd
    

  2. You probably want to bookmark the local G3D documentation at /usr/local/G3D-7.00/html/index.html. Sample projects and data files can be found at /usr/local/G3D-7.00/data and /usr/local/G3D-7.00/demos.

  3. G3D comes with a build tool called iCompile that automatically compiles and links programs using g++ on Linux, FreeBSD, and OS X. This is a replacement for Makefiles. If you choose to use it and installed G3D to a path and you plan to use the provided bin/icompile tool to create yourthat is not already in your INCLUDE and LIBRARY variables then you need to edit your ~/.icompile file to work with G3D. See the iCompile Manual for details. A sample .icompile file that assumes you built in your home directory and never installed to the system is:
    
    [GLOBAL]
    defaultinclude:  ;/usr/include;/usr/X11R6/include;/usr/local/include;/usr/local/include/SDL11;/usr/include/SDL;/Volumes/Home/Projects/G3D/build/linux-i386-g++-4.0/include
    defaultlibrary:  ;;/usr/lib;/usr/X11R6/lib;/usr/local/lib;/Volumes/Home/Projects/G3D/build/linux-i386-g++-4.0/lib
    defaultcompiler: 
    defaultexclude:  
    beep:            True
    tempdir:         tmp
    builddir:        build
    
    [DEBUG]
    
    [RELEASE]
    
    


Generated on Thu Aug 2 11:40:43 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo