alecjacobson / gptoolbox

Matlab toolbox for Geometry Processing.
MIT License
628 stars 166 forks source link

'sudo make' error with CGAL files #83

Closed yardasol closed 5 years ago

yardasol commented 5 years ago

I am trying to build this library so I can compile the code into mex. In running make once I have run sudo cmake -DCMAKE_C_COMPILER=/usr/bin/gcc -DCMAKE_CXX_COMPILER=/usr/bin/g++ .. gives me many errors, the first one being `gptoolbox/mex/external/libigl/external/cgal/Installation/lib/cmake/CGAL/../../../../Number_types/include/CGAL/gmpxx.h:45:10: error: 'gmpxx.h' file not found with include; use "quotes" instead

include `

This may be a problem on the computer as I have had similar issues when running make for other libraries as well.

alecjacobson commented 5 years ago

This seems like a CGAL issue that I wouldn't quite know how to solve. It's also suspicious that you're doing sudo make instead of just make

yardasol commented 5 years ago

I have to use sudo make because otherwise I get this:

[ 1%] Built target impaste [ 1%] Building CXX object CMakeFiles/wire_mesh.dir/wire_mesh.cpp.o error: unable to open output file 'CMakeFiles/wire_mesh.dir/wire_mesh.cpp.o': 'Permission denied'

Also, the CGAL issue is with the CGAL files that are built/included in gptoolbox. Is it possible that it is an issue with the compiler?

alecjacobson commented 5 years ago

Interesting. That might mean you're just in a folder that you don't have write access to. The CGAL issue is strange. I know that everything works with the CGAL that's auto-downloaded using the libigl cmake. -Alec

On Sat, Feb 16, 2019 at 2:42 PM yardasol notifications@github.com wrote:

I have to use sudo make because otherwise I get this:

[ 1%] Built target impaste [ 1%] Building CXX object CMakeFiles/wire_mesh.dir/wire_mesh.cpp.o error: unable to open output file 'CMakeFiles/wire_mesh.dir/wire_mesh.cpp.o': 'Permission denied'

Also, the CGAL issue is with the CGAL files that are built/included in gptoolbox. Is it possible that it is an issue with the compiler?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/alecjacobson/gptoolbox/issues/83#issuecomment-464371068, or mute the thread https://github.com/notifications/unsubscribe-auth/ACI0mVUxRqloT1SWTKJg5H1e7V5QdC6Pks5vOFEogaJpZM4a--PK .

yardasol commented 5 years ago

I previously installed CGAL for another library (pcl). Could that be what is causing the make step to go haywire?

yardasol commented 5 years ago

I fixed the issue by installing GMP with Homebrew