swig source compilation fails
Hi, I am trying to compiled fenisc on MAC 10-12.6. All packages compiled fine until the swig source part of the msh compilation. I have the error below. Somehow some files appear to be missing in dolfin/swig directory. Should these have been produced during the dolfin compilation? I am using swig version 3.0.12 and trying to compile msh version 2018.1.0.dev0. Thank you for any hint (I tried to poke around but I am not very familiar with swig).
-- Philippe.
laser few lines of the "cmake .." command:
[ 91%] Built target mshr [ 94%] Swig source /Users/piot/Simulation_Codes/fenics/mshr/swig/mshr.i:36: Error: Unable to find 'dolfin/swig/typemaps/includes.i' /Users/piot/Simulation_Codes/fenics/mshr/swig/mshr.i:37: Error: Unable to find 'dolfin/swig/forwarddeclarations.i' /Users/piot/Simulation_Codes/fenics/mshr/swig/mshr.i:41: Error: Unable to find 'dolfin/swig/exceptions.i' /Users/piot/Simulation_Codes/fenics/mshr/swig/mshr.i:54: Error: Unable to find 'dolfin/swig/common/pre.i' /Users/piot/Simulation_Codes/fenics/mshr/swig/mshr.i:63: Error: Unable to find 'dolfin/swig/mesh/pre.i' /Users/piot/Simulation_Codes/fenics/mshr/swig/mshr.i:66: Error: Unable to find 'dolfin/swig/geometry/pre.i' make[2]: [swig/mshrPYTHON_wrap.cxx] Error 1 make[1]: [swig/CMakeFiles/_mshr.dir/all] Error 2 make: *** [all] Error 2
Comments (2)
-
-
reporter - changed status to resolved
a user from the google mailing list suggested to add -DENABLE_SWIG_BINDINGS:BOOL=OFF in the cmake.
- Log in to comment
Hi,
swig backend has been recently removed by upstream DOLFIN, and I think it will be removed shortly from mshr too @benjamik
In the meantime, you should compile mshr with the cmake option
If you are planning on using mshr from python, you should also manually install the pybind11 wrappers for mshr using the setup.py script in the python subfolder.
HTH,
Francesco