|
@@ -16,8 +16,8 @@ listed below.
|
|
|
- Eigen3 Last tested with Eigen Version 3.2
|
|
|
|
|
|
### Optional ###
|
|
|
-- OpenGL (IGL_NO_OPENGL)
|
|
|
-- AntTweakBar (IGL_NO_ANTTWEAKBAR) Last tested 1.16 (see
|
|
|
+- OpenGL (`IGL_NO_OPENGL`)
|
|
|
+- AntTweakBar (`IGL_NO_ANTTWEAKBAR`) Last tested 1.16 (see
|
|
|
- libigl/external/AntTweakBar)
|
|
|
- GLEW Windows only
|
|
|
- OpenMP
|
|
@@ -34,7 +34,7 @@ listed below.
|
|
|
## Header only ##
|
|
|
libigl is designed to work "out-of-the-box" as a headers only library. To
|
|
|
include libigl in your project. You need only include the libigl/include/
|
|
|
-directory in your include path and define the IGL_HEADER_ONLY macro. To
|
|
|
+directory in your include path and define the `IGL_HEADER_ONLY` macro. To
|
|
|
compile a hello-word example.cpp:
|
|
|
|
|
|
#include <Eigen/Dense>
|
|
@@ -77,11 +77,11 @@ To build the entire libigl library producing lib/libigl.a, issue:
|
|
|
make lib
|
|
|
|
|
|
You may need to edit Makefile.conf accordingly. Best to give yourself an
|
|
|
-IGL_USERNAME and add a custom install suite for yourself. Then you can enable
|
|
|
+`IGL_USERNAME` and add a custom install suite for yourself. Then you can enable
|
|
|
appropriate extras.
|
|
|
|
|
|
#### Extras ####
|
|
|
-Once you've set up an IGL_USERNAME and enabled extras within Makefile.conf.
|
|
|
+Once you've set up an `IGL_USERNAME` and enabled extras within Makefile.conf.
|
|
|
You can build the extra libraries (into lib/ligiglpng.a, lib/libiglmatlab.a,
|
|
|
lib/libigltetgen.a, lib/libiglmosek.a, etc.) by issuing:
|
|
|
|
|
@@ -98,6 +98,53 @@ Finally there are a number of external libraries that we include in
|
|
|
patched for easier use with libigl. Please see the respective readmes in
|
|
|
those directories.
|
|
|
|
|
|
+
|
|
|
+##### Installing AntTweakBar #####
|
|
|
+To build the a static AntTweakBar library on Mac OS X issue:
|
|
|
+
|
|
|
+ cd external/AntTweakBar/src
|
|
|
+ make -f Makefile.osx.igl
|
|
|
+
|
|
|
+##### Installing Tetgen #####
|
|
|
+To build the tetgen library and executable on Mac OS X issue:
|
|
|
+
|
|
|
+ cd external/tetgen
|
|
|
+ make clean
|
|
|
+ rm -f obj/*.o
|
|
|
+ make -f Makefile.igl tetlib
|
|
|
+ rm -f obj/*.o
|
|
|
+ rm tetgen
|
|
|
+ make -f Makefile.igl tetgen
|
|
|
+
|
|
|
+##### Installing Embree 2.0 #####
|
|
|
+To build the embree library and executables on Mac OS X issue:
|
|
|
+
|
|
|
+ cd external/embree
|
|
|
+ mkdir build
|
|
|
+ cd build
|
|
|
+ cmake ..
|
|
|
+ # Or using a different compiler
|
|
|
+ #cmake .. -DCMAKE_C_COMPILER=/opt/local/bin/gcc -DCMAKE_CXX_COMPILER=/opt/local/bin/g++
|
|
|
+ make
|
|
|
+ # Could also install embree to your root, but libigl examples don't expect
|
|
|
+ # this
|
|
|
+ #sudo make install
|
|
|
+
|
|
|
+##### Installing tinyxml2 #####
|
|
|
+To build the a static tinyxml2 library on Mac OS X issue:
|
|
|
+
|
|
|
+ cd external/tinyxml2
|
|
|
+ cmake .
|
|
|
+ make
|
|
|
+
|
|
|
+
|
|
|
+##### Installing YImg #####
|
|
|
+To build the a static YImg library on Mac OS X issue:
|
|
|
+
|
|
|
+ cd external/yimg
|
|
|
+ make
|
|
|
+
|
|
|
+
|
|
|
## Windows (Experimental) ##
|
|
|
To build a static library (.lib) on windows, open Visual Studio 2010.
|
|
|
|