Open lindenb opened 1 year ago
Hi,
I have limited knowledge of GCC but my understanding is that the system headers in /usr/include
should already be searched by default. The system headers are included in a very specific manner and with -I/usr/include
you are changing the search order which can lead to weird behavior.
The zlib.h not found
is from CMake right? It is very odd that both CMake and GCC cannot see zlib.h... Maybe make sure that you have permission to read the file? Maybe it is easier to test around with a simple program that does nothing except include "zlib.h".
Since you are not familiar with CMake I'll point out that with every change of CMakeLists.txt you make you need to delete and redo the CMakeFiles directory and CMakeCache.txt since values are cached.
Hi again,
after https://github.com/DecodeGenetics/graphtyper/issues/125 I'm trying to compile graphtyper . I got two problems when htslib was compiled.
1) For a strange reason
/usr/include
( where therezlib.h
is found) was not included in the-I
path. So I got azlib.h not found
2) I added
-I/usr/include
to the paths (see below) but then, as I've got a very old version of the htslib headers under /usr/include/htslib, so this old library was used before the graphtyper's htslib..All in one, the problem was fixed by changing
graphtyper/CMakeLists.txt
ok. The compilation, went on.... and then Cmake raised the following error:
again, zlib.h was not found while it's in
/usr/include
.I'm familiar with
make
but not withcmake
.So my question is: where should I add
/usr/include
for compilinggraph/constructor.cpp.o
? Or is there any env variable to add at the beginning to set the include paths.current version: 5b01f1ecb3c9348cfc913ea2fe96e48acf77b2f3