[Dune] including vtk-libraries in the dune-build system

Jö Fahlke jorrit at jorrit.de
Wed Nov 12 15:04:35 CET 2014


Am Wed, 12. Nov 2014, 14:42:46 +0100 schrieb egleiss at iup.uni-heidelberg.de:
> My opts-file looks as follows:
> 
> CONFIGURE_FLAGS="--prefix=/Users/ericgleiss/opt --disable-documentation
> --disable-mpiruntest --enable-parallel
> --with-alugrid=/Users/ericgleiss/opt/alugrid
> --with-alberta=/Users/ericgleiss/opt/alberta
> --with-ug=/Users/ericgleiss/opt/ug-install CXX=g++-mp-4.8 CC=gcc-mp-4.8
> F77=gfortran-mp-4.8 CXXFLAGS=\"-O3  -g0 -funroll-loops -ftree-vectorize
> -fno-strict-aliasing -Wall -Wno-deprecated-declarations 
> -I/usr/local/include/vtk-6.1/ -L/Users/ericgleiss/VTK-build/lib \"
> CFLAGS=\"-O3 -g0 -funroll-loops -ftree-vectorize -fno-strict-aliasing
> -Wall -Wno-deprecated-declarations\""
> MAKE_FLAGS="all"
[...] 
> I do not really understand, what's happening here. I suppose that the
> libraries are not recognized correctly. If I run the example outside the
> dune environment it works without problems. The libraries are some .dylib
> files in the folder /Users/ericgleiss/VTK-build/lib, which I include in my
> opts-file.
> Does anyone have a clue what is going on here?
> How can I correctly link the libraries to the dune build system?
> Thank you beforehand.

The -L... stuff should go into LIBS (or LDFLAGS, if you believe ./configure
--help) but definitely not into CXXFLAGS.  You get the error during linking,
and the contents of CXXFLAGS is not passed to the linker.

If this does not help send the Makefile.am that is used to build the program.

Regards,
Jö.

-- 
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729

Of all the things I've lost, I miss my mind the most.
-- Ozzy Osbourne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141112/a11c63b4/attachment.sig>


More information about the Dune mailing list