Closed fnollet closed 6 years ago
Hello. It looks like it is not linking with the HDF5 library; the name of library to link against is determined by the block https://github.com/nanoporetech/scrappie/blob/master/CMakeLists.txt#L111 Try commenting this out and explicitly adding
set(HDF5 libname)
where libname might be 'hdf5' if your /tools/bioinfo/app/hdf5-1.8.16/lib directory contains a libhdf5.so file, similar trimming for other libraries (e.g. libhdf5_serial.so -> hdf5_serial).
N.B. we have encountered issues with the HDF5 library on Redhat platforms not being compiled for multithreaded use. If errors are encountered reading from the fast5 files, running Scrappie in single-threaded mode is recommended (see https://github.com/nanoporetech/scrappie/blob/master/README.md#running)
Hi
So your trick helped partially. I also had to fix this line:
check_include_file ("hdf5.h" HDF5_STANDARD)
to
check_include_file ("/tools/bioinfo/app/hdf5-1.8.16/include/hdf5.h" HDF5_STANDARD)
Also for RHEL 6 users still out there building this from scratch: CUnit is not available (from RedHat repo's) as a precompiled package so I compiled a version myself. This article helped a lot: http://blog.cleverelephant.ca/2014/12/building-cunit-from-source.html Main tip here was to use version 2.1-2 (not 2.1-3 as is has a missing file). Also requires a more recently version of automake/autoconf (1.14.1 & 2.69) and gcc (4.9.4) and some voodoo with several files there.
Also had to add then the lib/include dirs to the CMakeLists.txt: e.g. (in our case)
include_directories("/tools/bioinfo/app/CUnit-2.1-2/include")
link_directories("/tools/bioinfo/app/CUnit-2.1-2/lib")
This made scrappie compile. I will ask my user to verify multithreading. Thanks for tip anyway and all the help!!!
Glad it helped. Many thanks for the additional info -- I'll see if I can improve the documentation and CMakeLists.txt file.
Hi
Trying to compile on RHEL 6 64 bit. I am using a more recent compiler (gcc 4.9.4) and have been helped a lot already with https://github.com/nanoporetech/scrappie/issues/5 But I still seem to have issues with hdf5.
I have hdf5 1.8.16 installed in a dedicated path and added this to the CMakeLists.txt file:
But I still seem to have compile issues:
To I need to do something else? Is my version of hdf5 ok?
Thanks for you help.
Filip Nollet