Build instructions
[ Unix & Linux |
Windows ]
This page describes shortly how to build the Mesh Viewer from source on Unix
and Windows systems. It is assumed that all required libraries are already
installed.
Unix & Linux
-
Unpack the source code
-
Change to the source directory and depending on the Mesh Viewer version you
want to build execute "make":
-
"make GLUT" for building the GLUT version of Mesh Viewer
-
"make QT" for building the LibQT 3 version of Mesh Viewer
-
"make QT_TEXT" for building the LibQT 3 version of Mesh Viewer with texture
map calculation support (requires LibGandalf)
In case the compiler or linker could not find certain include files or
libraries, you may need to edit the first lines of the Makefile. "INCPATH" and
"LIBPATH" specify where the compiler and linker search for include and library
files, respectively.
Windows
This is a description on how to build Mesh Viewer with Microsoft Visual
C++ 2003, LibJPEG 6 and LibQT 3.
-
Unpack the source code
-
Create a new "Windows" project
-
Add the Mesh Viewer source code (cpp) files to the project. Do not add the
files in the glut directory and the files "qt/texture_image*". The latter
files are only useful for the texture map calculation feature.
-
Set the following C/C++ compiler options:
-
Add the location of your LibJPEG and LibQT include files to the include
directories
-
Add "WIN32" to the preprocessor definitions (should be standard)
-
Disable precompiled headers
-
Set the following linker options:
Back to main page