libStatGen icon indicating copy to clipboard operation
libStatGen copied to clipboard

Error compiling fastQValidator

Open denisemauldin opened this issue 8 years ago • 6 comments

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 function GzipFileType::GzipFileType(char const*, char const*)': GzipFileType.cpp:(.text+0xdf): undefined reference togzopen64' /tools/src/libStatGen//libStatGen.a(GzipFileType.o): In function GzipFileType::seek(long, int)': GzipFileType.cpp:(.text._ZN12GzipFileType4seekEli[GzipFileType::seek(long, int)]+0x9): undefined reference togzseek64' /tools/src/libStatGen//libStatGen.a(GzipFileType.o): In function GzipFileType::tell()': GzipFileType.cpp:(.text._ZN12GzipFileType4tellEv[GzipFileType::tell()]+0x5): undefined reference togztell64'

denisemauldin avatar Apr 26 '16 23:04 denisemauldin

Do you have the development version of zlib installed?

mktrost avatar Apr 27 '16 02:04 mktrost

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.

denisemauldin avatar Apr 29 '16 23:04 denisemauldin

On which OS are you building?

jonathonl avatar Apr 30 '16 14:04 jonathonl

CENTOS. Mostly I think it's that I have my updated libraries in a different path (/tools) rather than in the system paths.

denisemauldin avatar Apr 30 '16 21:04 denisemauldin

So adding "-L/tools/lib" solved your problem then? Or are you still getting errors when building the tests?

jonathonl avatar Apr 30 '16 22:04 jonathonl

Yes, adding -L/tools/lib solved my problem. :)

denisemauldin avatar May 02 '16 00:05 denisemauldin