Re: Help needed for discosnp
On Wed, Jan 23, 2019 at 09:05:47AM +0100, Olivier Sallou wrote:
>
> On 1/22/19 10:37 PM, Andreas Tille wrote:
> > ...
> > cd /build/discosnp-2.3.0/obj-x86_64-linux-gnu/tools/kissnp2 && /usr/bin/cmake -E cmake_link_script CMakeFiles/kissnp2.dir/link.txt --verbose=1
> > /usr/bin/c++ -g -O2 -fdebug-prefix-map=/build/discosnp-2.3.0=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -rdynamic CMakeFiles/kissnp2.dir/src/Bubble.cpp.o CMakeFiles/kissnp2.dir/src/Filter.cpp.o CMakeFiles/kissnp2.dir/src/Kissnp2.cpp.o CMakeFiles/kissnp2.dir/src/main.cpp.o -o ../../bin/kissnp2 -lgatbcore -lhdf5
> > /usr/bin/ld: cannot find -lhdf5
> > collect2: error: ld returned 1 exit status
>
> well, looks like hdf5 lib is not found at link time.
>
> I gonna have a try
I've found a possibly helpful hint here
https://stackoverflow.com/questions/31438916/cmake-cannot-find-library-using-link-directories
and I think I found a solution now. The position of LINK_LIBRARIES is
relevant. Now it seems to work - so please save your time.
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: