link python

This commit is contained in:
Joachim Schoeberl 2014-08-13 16:29:55 +00:00
parent 4175aff8b5
commit 2c8757e5ab
3 changed files with 23 additions and 3 deletions

View File

@ -145,6 +145,15 @@ AC_ARG_ENABLE([mkl],
[if test "$enableval" = yes; then mklon=true; else mklon=false; fi] [if test "$enableval" = yes; then mklon=true; else mklon=false; fi]
) )
pythonon=false
AC_ARG_ENABLE([python],
[AS_HELP_STRING([--enable-python],[link boost python, necessary for ngsolve])],
[if test "$enableval" = yes; then pythonon=true; else pythonon=false; fi]
)
# only for GUI version # only for GUI version
if test a$ngguion = atrue ; then if test a$ngguion = atrue ; then
@ -202,6 +211,7 @@ fi
AM_CONDITIONAL([NGLIB], [test x$nglibon = xtrue]) AM_CONDITIONAL([NGLIB], [test x$nglibon = xtrue])
AM_CONDITIONAL([NGGUI], [test x$ngguion = xtrue]) AM_CONDITIONAL([NGGUI], [test x$ngguion = xtrue])
AM_CONDITIONAL([NGMKL], [test x$mklon = xtrue]) AM_CONDITIONAL([NGMKL], [test x$mklon = xtrue])
AM_CONDITIONAL([NGPYTHON], [test x$pythonon = xtrue])
AC_CHECK_HEADER(pthread.h) AC_CHECK_HEADER(pthread.h)

View File

@ -1,6 +1,7 @@
include_HEADERS = include_HEADERS =
AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include -I$(top_srcdir)/libsrc/interface -DOPENGL -D$(TOGL_WINDOWINGSYSTEM) $(TCL_INCLUDES) $(MPI_INCLUDES) $(FFMPEG_INCLUDES) $(JPEGLIB_INCLUDES) -I/usr/include/python3.4 AM_CPPFLAGS = -I$(top_srcdir)/libsrc/include -I$(top_srcdir)/libsrc/interface -DOPENGL -D$(TOGL_WINDOWINGSYSTEM) $(TCL_INCLUDES) $(MPI_INCLUDES) $(FFMPEG_INCLUDES) $(JPEGLIB_INCLUDES)
if NGGUI if NGGUI
bin_PROGRAMS = netgen bin_PROGRAMS = netgen
@ -44,7 +45,15 @@ ngtesting.tcl parameters.tcl variables.tcl csgeom.tcl stlgeom.tcl \
occgeom.tcl acisgeom.tcl netgen.ocf occgeom.tcl acisgeom.tcl netgen.ocf
netgen_LDFLAGS = -export-dynamic -lboost_python-py34 -lpython3.4m netgen_LDFLAGS = -export-dynamic
if NGPYTHON
AM_CPPFLAGS += -I/usr/include/python3.2 -DNGPYTHON
# netgen_LDFLAGS += -lboost_python-py34 -lpython3.4m
netgen_LDFLAGS += -lboost_python-py32 -lpython3.2mu
endif
# netgen_LDFLAGS = -rdynamic # netgen_LDFLAGS = -rdynamic
# -static # -static

View File

@ -7,8 +7,9 @@
#include "incvis.hpp" #include "incvis.hpp"
#include <meshing.hpp> #include <meshing.hpp>
#ifdef NGPYTHON
#include <boost/python.hpp> #include <boost/python.hpp>
#endif
namespace netgen namespace netgen
{ {