logo

X3DToolKit installation with qmake on a unix platform

home_link
download_link
examples_link
manual_link
reference_link
follow the instructions:
1. Decompress the file:
  tar xzf X3DTK-0.6.0-src.tar.gz
2. Compile the library:
  cd X3DToolKit/src
qmake options
make
options:
option description default value
PARSER indicates which xml parser is used (LIBXML, XERCES or QT) QT
LIBXML_DIR indicates in which directory is installed libXML default install path
LIBXML_LIB_DIR indicates in which directory is located the libXML binary file LIBXML_DIR/lib if LIBXML_DIR specified, else default install path
LIBXML_INC_DIR indicates in which directory is located the libXML include files LIBXML_DIR/include if LIBXML_DIR specified, else default install path
XERCES_DIR indicates in which directory is installed Xerces default install path
XERCES_LIB_DIR indicates in which directory is located the Xerces binary file XERCES_DIR/lib if XERCES_DIR specified, else default install path
XERCES_INC_DIR indicates in which directory is located the Xerces include files XERCES_DIR/include if XERCES_DIR specified, else default install path
JPEG compiles the library with or without the jpeg support yes
JPEG_DIR indicates in which directory is installed the jpeg library default install path
JPEG_LIB_DIR indicates in which directory is located the libjpeg binary file JPEG_DIR/lib if JPEG_DIR specified, else default install path
JPEG_INC_DIR indicates in which directory is located the libjpeg include files JPEG_DIR/include if JPEG_DIR specified, else default install path

For example you can type:
  qmake PARSER=LIBXML X3DTK_DIR=my_x3dtk_dir
3. Compile the examples or the applications
For the examples,
  cd ../examples

For the examples and the applications:
  qmake options
make
options:
option description default value
X3DTK_DIR indicates in which directory is installed X3DTK default compiler path
X3DTK_LIB_DIR indicates in which directory is located the X3DTK binary file X3DTK_DIR/lib if X3DTK_DIR specified, else default install path
X3DTK_INC_DIR indicates in which directory is located the X3DTK include files X3DTK_DIR/include if X3DTK_DIR specified, else default install path
QGLVIEWER_DIR indicates in which directory is installed the QGLViewer library default compiler path
QGLVIEWER_LIB_DIR indicates in which directory is located the QGLViewer binary file QGLVIEWER_DIR/lib if QGLVIEWER_DIR specified, else default install path
QGLVIEWER_INC_DIR indicates in which directory is located the QGLViewer include files QGLVIEWER_DIR/include if QGLVIEWER_DIR specified, else default install path

For example if you let the library installed in X3DToolKit/lib you can type:
  qmake