[Debian-med-packaging] Problems linking hdf5, gzstream, boost_program_options due to usage of simple Makefile

Gianfranco Costamagna costamagnagianfranco at yahoo.it
Tue Mar 29 19:29:30 UTC 2016


Hi,

>g++ -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -O3 -std=c++11 -I/nonexistent/software/include -I../gzstream -I../dlib -D >DLIB_NO_GUI_SUPPORT=1 -D DLIB_USE_BLAS=1 -D DLIB_USE_LAPACK=1 -Wl,-z,relro  sample.o significant_kmer.o kmer.o covar.o seerCommon.o seerErr.o seerFilter.o seerIO.o >seerChiFilter.o seerMain.o seerCmdLine.o seerContinuousAssoc.o seerBinaryAssoc.o logitFunction.o linearFunction.o -lhdf5 -lgzstream -lz -larmadillo >-lboost_program_options -llapack -lblas -Wl,-z,relro -o seer

>/usr/bin/ld: cannot find -lhdf5
>/usr/bin/ld: cannot find -lgzstream
>/usr/bin/ld: cannot find -lboost_program_options
>collect2: error: ld returned 1 exit status
>
>Any hint how to elegantly deal with this situation?


using cmake :)

if you don't want to, you can call pkg-config --libs "foo" if foo provides a pc file, or by finding the library location and call -l with -Ldirectorynonstandard

if lib is stored in /lib/triplet/privatetool/libfoo.so

you can link it with -L/lib/triplet/privatetool -lfoo

but you need to have the required build-dependencies of the -dev packages installed.

cheers,

G.



More information about the Debian-med-packaging mailing list