STOmics / gefpy

1 stars 2 forks source link

build for apple silicon Mac #1

Open czhu opened 1 year ago

czhu commented 1 year ago

try to build for Apple silicon, but failed with the error

`

include "gef.h"

           ^~~~~~~
  1 error generated.
  error: command '/usr/bin/gcc' failed with exit code 1
  [end of output]

`

cannot build geftool with default gcc either. I need this for the latest stereopy. Thanks

xiayh17 commented 5 months ago

For the key is geftools can be installed in silicon mac. An edit version can be found in https://github.com/xiayh17/geftools

Below is a instruction to install gefpy Given homebrew and conda installed in your mac

brew install hdf5
brew install opencv
conda install -c conda-forge libtiff

After install hdf5 and opencv homebrew will print the path of them and paste to below code accordingly.

git clone https://github.com/xiayh17/geftools
cd geftools
HDF5_ROOT=/opt/homebrew/opt/hdf5 OpenCV_DIR=/opt/homebrew/opt/opencv cmake .
make
sudo make install
export HDF5_ROOT=/opt/homebrew/opt/hdf5
export OpenCV_DIR=/opt/homebrew/opt/opencv
export GEFTOOLS_DIR=/usr/local
pip3 install git+https://github.com/STOmics/gefpy

♥️ Thanks to all the developers and maintaners. 🫡 I apologize for not having the time and capability to move forward with pull requests.