logo

linux X3DToolKit unix installation mac

home_link
download_link
examples_link
manual_link
reference_link
You need to have qmake from Qt to compile the source code.

Download

Installation

You can choose between three xml parsers: the Qt xml reader, or the Xerces parser or the libXML2 parser, depending on the libraries already installed on your machine. Note that the Xerces version must be at least 2.2. The default parser is the Qt one.

Download and compile the library

tar xzf X3DTK-1.0.1-src.tar.gz
cd X3DToolKit/src
qmake options
make
where options is defined by (leave blank for default settings):
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

Compile the examples or the applications

The examples that display 3D models require the QGLViewer library.
cd ../examples
qmake options
make
where options is defined by (leave blank for default settings):
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