zd1 / telseq

A software for calculating telomere length
GNU General Public License v3.0
67 stars 26 forks source link

TelSeq does not compile with modern versions of bamtools #29

Open stephan-hutter opened 4 years ago

stephan-hutter commented 4 years ago

Compilation aborts and I get the following error when trying to compile TelSeq with the current version (2.5.1) of bamtools:

g++ -Wall -Wextra -Wno-unknown-pragmas -g -O0 -std=c++11  -Wl,-rpath,/data/_stephan/bamtools-2.5.1/lib -L/data/_stephan/bamtools-2.5.1/lib -Wl,-rpath,/data/_stephan/bamtools-2.5.1/lib/bamtools -L/data/_stephan/bamtools-2.5.1/lib/bamtools   -o telseq telseq-telseq.o ../Util/libutil.a -lbamtools -lz
/usr/bin/ld: cannot find -lbamtools
collect2: error: ld returned 1 exit status

I assume the problem is that the library directory in bamtools changed from lib to lib64 at some point. Using bamtools 2.4.0 everything compiles cleanly.

Alternatively, I changed line 21 in src/configure.ac, replacing all instances of lib with lib64. That also fixed the problem and allows compilation with bamtools 2.5.1.

jeselle commented 2 years ago

I had to significantly downgrade both gcc and bamtools to a 2016 commit in order to get it to run.