Skip to content
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

How to install libigl on mac m1? #6

Open
TongYiyi11 opened this issue Jan 31, 2022 · 6 comments
Open

How to install libigl on mac m1? #6

TongYiyi11 opened this issue Jan 31, 2022 · 6 comments
Assignees

Comments

@TongYiyi11
Copy link

Hi Professor,

I have a problem installing the igl library on my mac m1. The conda install does not work and I tried to compile the bindings from scratch but there are still errors. I found similar issue in https://github.com/libigl/libigl/issues/1686 and someone metioned using header only mode but I am still confused about how to do it.

Is there any way to solve the problem in detail?

@danielepanozzo
Copy link
Owner

I need to look into this, I will get back to you in a few days.

@danielepanozzo
Copy link
Owner

This is the PR that will add support for the libigl conda package to M1 ARM, it will be merged as soon as it passes the builds: conda-forge/igl-feedstock#27

@danielepanozzo
Copy link
Owner

As none of the python igl developers as direct access to an M1 mac, this is taking longer than expected to fix with a native build.

As a temporary workaround, could you try the following and let me know if it works: https://conda-forge.org/docs/user/tipsandtricks.html . The slowdown due to rosetta emulation will not be an issue for the assigments.

These are commands to set up an intel conda installation.

CONDA_SUBDIR=osx-64 conda create -n your_environment_name python # Create a new environment called your_environment_name with intel packages.
conda activate your_environment_name
conda env config vars set CONDA_SUBDIR=osx-64 # Make sure that conda commands in this environment use intel packages.
conda deactivate
conda activate your_environment_name

@TongYiyi11
Copy link
Author

Thank you professor. I successfully install the libgl package following the commands. And I am still wondering if it only affects the speed performance in this way.

@danielepanozzo
Copy link
Owner

Great to hear. Yes I think this should only affect performances, but I doubt it will be noticeable. I will post here as soon as the native M1 version will be available on conda.

@Adora2401
Copy link

If anyone has the similar problem, pls first check your python version. I have done all of these then found igl only supports python version<=3.9, so have to do all the mess again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants