[Dune] CMake problems with dune-grid-howto

Christoph GrĂ¼ninger christoph.grueninger at iws.uni-stuttgart.de
Tue Nov 25 18:24:09 CET 2014


Hi Aleksejs,
yeah, that's a bug which is not yet fixed. A workaround is, to add
target_link_libraries(groundwater ${ZLIB_LIBRARIES})
for every target (here: groundwater) that fails linking.

Bye
Christoph

Am 25.11.2014 um 18:15 schrieb Aleksejs Fomins:
> Dear Dune,
> 
> This time I made sure I have all the latest modules. In fact, I even
> deleted them and cloned them again.
> 
> I run a full project CMake build and get an error with dune-grid-howto
> 
> -----------------------------------------------
> Linking CXX executable adaptiveintegration
> /home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/build-cmake/lib/libdunealugrid.a(binaryio.cc.o):
> In function `ALUGrid::readBinary(std::istream&, void*, unsigned long,
> ALUGrid::BinaryFormat)':
> binaryio.cc:(.text+0xa4): undefined reference to `inflateInit_'
> binaryio.cc:(.text+0x1a5): undefined reference to `inflate'
> binaryio.cc:(.text+0x1be): undefined reference to `zError'
> binaryio.cc:(.text+0x2b3): undefined reference to `inflateEnd'
> /home/fomins/gitwork/hades-github-lspr-ag/dune-alugrid/build-cmake/lib/libdunealugrid.a(binaryio.cc.o):
> In function `ALUGrid::writeBinary(std::ostream&, void const*, unsigned
> long, ALUGrid::BinaryFormat)':
> binaryio.cc:(.text+0x3ac): undefined reference to `deflateInit_'
> binaryio.cc:(.text+0x464): undefined reference to `deflate'
> binaryio.cc:(.text+0x47d): undefined reference to `zError'
> binaryio.cc:(.text+0x53e): undefined reference to `deflateEnd'
> -----------------------------------------------
> 
> The full log and the opts file are attached.
> 
> Greetings,
> Aleksejs
> 
> 
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
> 

-- 
GDB does hate your application, expresses its contempt through the
design of its command-line interface.   -- Tom Tromey, FOSDEM 2014

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20141125/73f3da41/attachment.sig>


More information about the Dune mailing list