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

Fail to compile PySAP dependencies on MacOSX using Anaconda and MacPorts #45

Closed
jeremiedecock opened this issue Apr 5, 2018 · 2 comments
Assignees

Comments

@jeremiedecock
Copy link
Contributor

Here are the commands I use to compile and install PySAP on MacOSX using Anaconda and MacPorts
(the environment.yml is available there: https://raw.githubusercontent.com/jeremiedecock/pysap/master/environment.yml )

# Install cmake and GCC7 with MacPorts (in /opt/local)
sudo port install cmake gcc7

# Make the conda virtual environment and activate it
conda env create -f environment.yml
source activate pysap

# Set the compiler environment variable (to use the right MacPorts version of GCC)
export CC="/opt/local/bin/gcc-mp-7"
export CXX="/opt/local/bin/g++-mp-7"

# Set the Python headers directory (here in the Anaconda pysap virtual environment)
export CPLUS_INCLUDE_PATH=~/anaconda3/envs/pysap/include/python3.6m

# Build and install
python3 setup.py build
python3 setup.py install

It can compile but it cannot link.
I also tried with Python2.7 and I’ve got the same errors.
I'll try with homebrew instead of macports.

@AGrigis
Copy link
Contributor

AGrigis commented Apr 5, 2018

Thank for your feedback.
We never try to install pysap with conda.
We will investigate your issue.
Note also that we will provide soon a singularity container to avoid the installation of pysap.

@sfarrens
Copy link
Contributor

With #88 PySAP can be built on macOS in any of the following ways:

  1. Using the native AppleClang and libomp from Homebrew.
brew install libomp
python setup.py install
  1. Using gcc from Homebrew.
brew install gcc
export CC=gcc-8
export CXX=g++-8
python setup.py install

All methods have been tested using conda 4.6.2 and the following environment.

conda create -n pysap python=3.6 pyqtgraph

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

No branches or pull requests

3 participants