← Back to team overview

dolfin team mailing list archive

[Question #157995]: compile dolfin on windows

 

New question #157995 on DOLFIN:
https://answers.launchpad.net/dolfin/+question/157995

Dear all,

I almost succeed in compiling dolfin of windows with mingw32 and python2.7. I am getting the folowing error related to numpy and swig. Is there a way to tell it where numpy is?

-- The following optional packages were found:
-- -------------------------------------------
-- (OK) OPENMP
-- (OK) UMFPACK
-- (OK) CHOLMOD
-- (OK) GMP
-- (OK) ZLIB
-- (OK) PYTHON
--
-- The following optional packages were not enabled:
-- -------------------------------------------------
-- (--) MPI
--
-- The following optional packages could not be found:
-- ---------------------------------------------------
-- (**) PETSC
-- (**) SLEPC
-- (**) TRILINOS
-- (**) MTL4
-- (**) SCOTCH
-- (**) PARMETIS
-- (**) CGAL
--
-- Configuring done
-- Generating done
...
[100%] Building CXX object dolfin/swig/CMakeFiles/_cpp.dir/dolfinPYTHON_wrap.cxx
.obj
C:\Users\chaffra\Projects\Fenics\dolfin\build\dolfin\swig\dolfinPYTHON_wrap.cxx:
3681:31: fatal error: numpy/arrayobject.h: No such file or directory
compilation terminated.
mingw32-make[3]: *** [dolfin/swig/CMakeFiles/_cpp.dir/dolfinPYTHON_wrap.cxx.obj]
 Error 1
mingw32-make[2]: *** [dolfin/swig/CMakeFiles/_cpp.dir/all] Error 2
mingw32-make[1]: *** [all] Error 2

c:\Users\chaffra\Projects\Fenics\dolfin\build>
c:\Users\chaffra\Projects\Fenics\dolfin\build>
c:\Users\chaffra\Projects\Fenics\dolfin\build>
c:\Users\chaffra\Projects\Fenics\dolfin\build>
c:\Users\chaffra\Projects\Fenics\dolfin\build>
c:\Users\chaffra\Projects\Fenics\dolfin\build>
c:\Users\chaffra\Projects\Fenics\dolfin\build>
c:\Users\chaffra\Projects\Fenics\dolfin\build>
c:\Users\chaffra\Projects\Fenics\dolfin\build>mingw32-make
[100%] Built target dolfin
[100%] Building CXX object dolfin/swig/CMakeFiles/_cpp.dir/dolfinPYTHON_wrap.cxx
.obj
C:\Users\chaffra\Projects\Fenics\dolfin\build\dolfin\swig\dolfinPYTHON_wrap.cxx:
3681:31: fatal error: numpy/arrayobject.h: No such file or directory
compilation terminated.
mingw32-make[3]: *** [dolfin/swig/CMakeFiles/_cpp.dir/dolfinPYTHON_wrap.cxx.obj]
 Error 1
mingw32-make[2]: *** [dolfin/swig/CMakeFiles/_cpp.dir/all] Error 2
mingw32-make[1]: *** [all] Error 2


You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.