-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling mex on Linux/Ubuntu - Could NOT find MPFR and other issues #118
Comments
I think you might need to do something like
sudo apt-get install mpfr gmp
|
Thank you so much for the quick reply. Do you know someone who have already compiled mex on Linux successfully? |
I did it recently and vaguely remember that CGAL makes it cumbersome to
tell it where to find MPFR and gmp. I'll dig through my command history to
see if I can find what I did.
… |
I found this:
cmake ../ -DCMAKE_BUILD_TYPE=Release
-DGMP_INCLUDE_DIR=`pwd`/../external/gmp-6.2.0
-DGMP_LIBRARIES=`pwd`/../external/gmp-6.2.0/build/lib/libgmp.so
-DMPFR_INCLUDE_DIR=`pwd`/../external/mpfr-4.0.2/build/include
-DMPFR_LIBRARIES=`pwd`/../external/mpfr-4.0.2/build/lib/libmpfr.a
-DLIBIGL_WITH_CGAL=ON
…On Sun, Jul 18, 2021 at 5:12 PM Alec Jacobson ***@***.***> wrote:
I did it recently and vaguely remember that CGAL makes it cumbersome to
tell it where to find MPFR and gmp. I'll dig through my command history to
see if I can find what I did.
>
|
I think I was on a machine where I couldn't use apt-get so I
downloaded/installed mpfr and gmp in the external folder of libigl. Maybe
this also works if you point it to /usr/local/ or wherever your mpfr gmp
are .
… |
Thank you so much. Yes, now I don't have that error about MPFR anymore I had also a conflict with different boost version before ( one in anaconda and another one 1.70 and 1.76) . I was able to solve that (mayybe) Now the build folder looks like this Not sure what is the specific error that I am getting. as far as I am reading the pthread shouldn't be an issue Would you be able to share your notes with us about the linux installation? We are doing our best to make sure students will be able to install it as well https://github.com/odedstein/sgi-introduction-course/blob/main/205_mex/compilation_instructions.md. Any help would be much appreciated. |
ooffff. Glad you made it through. If you have a suggestion of how to give better instructions for linux uses, please share. |
Dear Alec,
Thanks again for this great work.
I am trying to compile mex for Linux for the SGI workshop
Using matlab 2021a and (gptoolbox was installed via matlab-addon: /home/alberto/MATLAB Add-Ons/Collections/gptoolbox)
currently I tried both
cmake ..
cmake ../ -DMatlab_ROOT_DIR=/usr/local/MATLAB/R2021a
on the build folder
In attached the log and error files, it is outputting this folder structure with empty folders
It seems there is an issue with
Maybe related with this one PyMesh/PyMesh#96
so I performed
I have installed boost and set the path
export BOOST_ROOT=/home/alberto/Documents/boost/boost_1_76_0
Should I install manually all the other libraries or this is supposed to support all of them (stl, Eigen libigl, CGAL, Embree,El Topo.) already?
CMakeError.log
CMakeOutput.log
Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: