libStatGen
libStatGen copied to clipboard
Error compiling fastQValidator
Compiling libStatGen doesn't throw any errors, but when compiling fastQValidator, it does:
g++ -std=c++0x -O4 -pipe -Wall -I/tools/src/libStatGen//include -I. -D__ZLIB_AVAILABLE__ -D_FILE_OFFSET_BITS=64 -D__STDC_LIMIT_MACROS -o ../bin/fastQValidator ../obj/FastQValidator.o /tools/src/libStatGen//libStatGen.a -lm -lz
/tools/src/libStatGen//libStatGen.a(GzipFileType.o): In functionGzipFileType::GzipFileType(char const*, char const*)': GzipFileType.cpp:(.text+0xdf): undefined reference to
gzopen64' /tools/src/libStatGen//libStatGen.a(GzipFileType.o): In functionGzipFileType::seek(long, int)': GzipFileType.cpp:(.text._ZN12GzipFileType4seekEli[GzipFileType::seek(long, int)]+0x9): undefined reference to
gzseek64' /tools/src/libStatGen//libStatGen.a(GzipFileType.o): In functionGzipFileType::tell()': GzipFileType.cpp:(.text._ZN12GzipFileType4tellEv[GzipFileType::tell()]+0x5): undefined reference to
gztell64'
Do you have the development version of zlib installed?
Yes. 1.2.8. I was incorrect though and it's libStatGen that's throwing the error. The compile doesn't show anything, but the tests fail. I had to manually add the -L/tools/lib directory containing -lz to the Makefiles/Makefile.include. Not sure if there's something you can do to detect that. It is in my LD_LIBRARY_PATH.
On which OS are you building?
CENTOS. Mostly I think it's that I have my updated libraries in a different path (/tools) rather than in the system paths.
So adding "-L/tools/lib" solved your problem then? Or are you still getting errors when building the tests?
Yes, adding -L/tools/lib solved my problem. :)