Browse Source

added some notes for the compilation on linux

Former-commit-id: 7c9162d30b7f15e1df304e999dff803b9b237984
Daniele Panozzo 11 years ago
parent
commit
3df21bff99
2 changed files with 31 additions and 2 deletions
  1. 29 0
      tutorial/compile_linux.sh
  2. 2 2
      tutorial/compile_macosx.sh

+ 29 - 0
tutorial/compile_linux.sh

@@ -0,0 +1,29 @@
+sudo apt-get install git
+sudo apt-get install build-essential
+sudo apt-get install libeigen3-dev
+sudo apt-get install cmake
+sudo apt-get install libx11-dev
+sudo apt-get install mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev
+sudo apt-get install libxrandr-dev
+sudo apt-get install libxi-dev
+sudo apt-get install freeglut3-dev
+sudo apt-get install libxmu-dev
+sudo apt-get install libblas-dev libsuitesparse-dev
+
+cd ../external/AntTweakBar/src/
+rm ../lib/*.a
+make
+
+cd ../../glfw/
+cmake -DCMAKE_BUILD_TYPE=Release .
+rm src/*.a
+make
+
+cd ../embree/
+rm -fr build
+mkdir build
+cd build
+cmake -DCMAKE_BUILD_TYPE=Release ../
+make
+
+cd ../../../tutorial

+ 2 - 2
tutorial/compile_macosx.sh

@@ -7,11 +7,11 @@ cmake -DCMAKE_BUILD_TYPE=Release .
 rm src/*.a
 make
 
-cd ../../embree/
+cd ../embree/
 rm -fr build
 mkdir build
 cd build
 cmake -DCMAKE_BUILD_TYPE=Release ../
 make
 
-cd ../../tutorial
+cd ../../../tutorial