nygenome/lancet

compile errors with v1.0.6

RichardCorbett opened this issue · 3 comments

Hi there,
This was my first time trying to compile and I'm on Centos 7.

My make command seemed to be working fine until...

...
gcc -pthread   -o test/test-vcf-sweep test/test-vcf-sweep.o libhts.a -lz  
make[1]: Leaving directory `/home/rcorbett/bin/lancet-1.0.6/htslib-1.3'
cd src; make; cp lancet ../; cd ../
make[1]: Entering directory `/home/rcorbett/bin/lancet-1.0.6/src'
g++ -std=c++0x -Wno-deprecated -Wall -O3 -fexceptions -g -Wl,-rpath,/home/rcorbett/bin/lancet-1.0.6/bamtools-2.3.0/lib/ -I/home/rcorbett/bin/lancet-1.0.6/bamtools-2.3.0/include/ -I/home/rcorbett/bin/lancet-1.0.6/htslib-1.3/ -L/home/rcorbett/bin/lancet-1.0.6/bamtools-2.3.0/lib/ -L/home/rcorbett/bin/lancet-1.0.6/htslib-1.3/ Lancet.cc Edge.cc Node.cc Graph.cc Microassembler.cc Ref.cc Path.cc ContigLink.cc align.cc util.cc sha256.cc VariantDB.cc Variant.cc -o lancet /home/rcorbett/bin/lancet-1.0.6/htslib-1.3/libhts.a -lz -ldl -lbamtools -lpthread
In file included from Lancet.hh:27:0,
                 from Lancet.cc:1:
Microassembler.hh:43:27: fatal error: api/BamReader.h: No such file or directory
 #include "api/BamReader.h"
                           ^
compilation terminated.
In file included from Mer.hh:28:0,
                 from Edge.hh:32,
                 from Edge.cc:1:
util.hh:32:27: fatal error: api/BamReader.h: No such file or directory
 #include "api/BamReader.h"
                           ^
compilation terminated.
...

It seems like bamtools was not compiled properly. Please check the full output log for some other error before this one. Other users reported similar problems when they tried to compile without having CMake installed or when using an older version of CMake (see #9 and #13 )

Thanks. It was indeed a problem with cmake.

Great! Let me know if you encounter other problems. Closing this issue.