anstmichaels / emopt

A suite of tools for optimizing the shape and topology of electromagnetic structures.
BSD 3-Clause "New" or "Revised" License
97 stars 41 forks source link

installation problem: g++-5 command generated by make #1

Closed johnmfini closed 6 years ago

johnmfini commented 6 years ago

During installation following README, I got this error:

bash-3.2$ python2 setup.py install
running install
/Library/Developer/CommandLineTools/usr/bin/make -C src/
g++-5 -c -fPIC Grid.cpp -Wall -fopenmp -O3 -march=native -DNDEBUG -std=c++11 -o Grid.o -I/Users/johnfini/local/include/ -I/Users/johnfini/local/include/
make[1]: g++-5: No such file or directory
make[1]: *** [grid] Error 1
make: *** [all] Error 2

I am on Mac OS 10.11.6. I have just installed many of the prerequisites (openmpi with brew, others following the emopt README), so many are not tested with other projects.

anstmichaels commented 6 years ago

Oh, the problem is that I explicitly had the makefile calling g++ version 5. I just tweaked it so that it calls g++. Hopefully it will work now.

Sorry for the slow response!