isovic / graphmap

GraphMap - A highly sensitive and accurate mapper for long, error-prone reads http://www.nature.com/ncomms/2016/160415/ncomms11307/full/ncomms11307.html Note: This was the original repository which will no longer be officially maintained. Please use the new official repository here:
https://github.com/lbcb-sci/graphmap2
MIT License
178 stars 44 forks source link

compiling issue (gcc/g++-4.8.4) #44

Closed noncodo closed 7 years ago

noncodo commented 7 years ago

Trying to compile on CentOS... Seems like there is a missing range.h file? Any ideas?

g++ -static-libgcc -static-libstdc++ -D__cplusplus=201103L -I"./src/" -I"/usr/include/" -I"codebase/seqlib/src/libs/seqan-library-2.0.1/include" -I"codebase/seqlib/src/libs/libdivsufsort-2.0.1-64bit/" -Icodebase/argumentparser/src -Icodebase/seqlib/src -DRELEASE_VERSION -O3 -fdata-sections -ffunction-sections -c -fmessage-length=0 -ffreestanding -fopenmp -m64 -std=c++11 -Werror=return-type -pthread  -o obj_linux/src/alignment/alignment.o src/alignment/alignment.cc
In file included from ./src/alignment/alignment.h:23:0,
                 from src/alignment/alignment.cc:8:
./src/containers/path_graph_entry.h:14:30: fatal error: containers/range.h: No such file or directory
 #include "containers/range.h"
                              ^
compilation terminated.
isovic commented 7 years ago

Hi, this is interesting - the range.h file should be present in the repository. Which version of g++ do you have? Also, did you run make modules before running make?

Best regards, Ivan.

noncodo commented 7 years ago

I think the issue was from using 'git pull' to update the source. Removing the directory, re-cloning and recompiling seems to have fixed the issue. Cheers!