nitinagarwal / mesh_slicer

A simple UI to slice any mesh in any arbitrary direction
14 stars 1 forks source link

Build Fail #2

Open dyogurt opened 6 years ago

dyogurt commented 6 years ago
[ 90%] Built target nanogui
Scanning dependencies of target mesh_slicer
[ 92%] Building CXX object CMakeFiles/mesh_slicer.dir/main.cpp.o
/home/ubuntu/mesh_slicer/main.cpp:15:10: fatal error: GL/glew.h: No such file or directory
 #include <GL/glew.h>                /* always before GLFW */
               ^~~~~~~~~~~
compilation terminated.
CMakeFiles/mesh_slicer.dir/build.make:62: recipe for target 'CMakeFiles/mesh_slicer.dir/main.cpp.o' failed
make[2]: *** [CMakeFiles/mesh_slicer.dir/main.cpp.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mesh_slicer.dir/all' failed
make[1]: *** [CMakeFiles/mesh_slicer.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I followed your README instructions but i am getting this fatal error. The error was fixed by installing OpenGL (following instructions here). After fixing that, build fails because of missing library glm which I also installed. The build is now failing because of igl library. Is there a simple way to install all necessary dependencies? The ones listed in the README don't seem sufficient.

celstark commented 5 years ago

Having just hit both of these myself...

yuriao commented 4 years ago

Yes we can copy the "libigl/include/igl" to "mesh_slicer/nanogui/include" to "putting it in the path"