Open kibala93 opened 4 years ago
Hi! I got the same error when using the 1st command below; it worked when using the 2nd command (local install) - by directly including the full path to htslib.
Good luck!
This code can be compiled using
g++ -std=c++11 snp-pileup.cpp -lhts -o snp-pileup
when htslib is available systemwide, or
g++ -std=c++11 -I/path/htslib/include snp-pileup.cpp \\
-L/path/htslib/lib -lhts -Wl,-rpath=/path/htslib/lib -o snp-pileup
when it is installed locally and path is the location where it is available.
When trying to compile snp-pileup using g++ -std=c++11 -I/path/htslib/include snp-pileup.cpp \ -L/path/htslib/lib -lhts -Wl,-rpath=/path/htslib/lib -o snp-pileup I get the following error
In file included from snp-pileup.h:15:0, from snp-pilup.cpp:1: htslib/khash_str2int.h:28:26: fatal error: htslib/khash.h: No such file or directory
But I can see that htslib/khash.h does exist so I'm not sure what the issue is.
Thank you!