Compiling PyGIMLi from Source on Apple M-Based Macs #603
Replies: 4 comments 7 replies
-
Dear Robin, Good to have the Mac users on board. Are the conda versions working for you? |
Beta Was this translation helpful? Give feedback.
-
Hello Robin,
ahh .. I found the same weird leading 'lib' also for the windows build, which probably comes from a recent cmake version. I recently added a special cmake target to rename it for the windows build and should add this target for the mac build to. Thanks a lot for the building instructions .. we will add a link to this thread into the documentation, or can we copy it directly? Cheers, |
Beta Was this translation helpful? Give feedback.
-
Hello all, many thanks to @robinthibaut for sharing the installation steps for Mac OS! I could successfully compile pygimli after some modifications to the guide given above :
After a
I hope this addition might help. Cheers, |
Beta Was this translation helpful? Give feedback.
-
Dear @robinthibaut @ruboerner, could you please try if Thanks and best wishes |
Beta Was this translation helpful? Give feedback.
-
Hello everyone,
I've encountered some difficulties with the instructions given for compiling PyGIMLi from source on Macs. They were a great starting point, but I had to work through some roadblocks to make it work. I'd like to share adjusted instructions that should provide a good starting point for others in the community. While some steps may need tweaking for your individual systems, this guide should give you a fair idea:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Importantly, the paths listed in the CMake command need to correspond to the version of Python being used, which you can check using
which python3
andpython3 --version
You can test your installation with:
python3 -c 'import pygimli as pg; print(pg.__version__)'
Watch out: You might notice that PyGIMLi creates an .so file named
lib_pygimli_.so
, make sure to rename it to_pygimli_.so
since_pygimli_.so
is the name PyGIMLi internally uses.I hope this guide can be of some use.
Cheers,
Robin
Beta Was this translation helpful? Give feedback.
All reactions