rikuu / Gap2Seq

Gap2Seq is a gap filling and insertion genotyping tool.
GNU Affero General Public License v3.0
20 stars 7 forks source link

ZLIB error #3

Open francicco opened 6 years ago

francicco commented 6 years ago

Hi,

I'm trying to compile Gap2Seq. I'm stuck at the cmake stage. Apparently it doesnt find ZLIBConfig.cmake even though I think I manage to correctly compile ZLIB. In fact ZLIBConfig.cmake it's not present in the ZLIB that I have. This is the error:

-- Checking IF your system converts long double to (unsigned) long values with special algorithm... no
-- Checking IF your system can convert (unsigned) long to long double values with special algorithm... no
-- Checking IF correctly converting long double to (unsigned) long long values... yes
-- Checking IF correctly converting (unsigned) long long to long double values... yes
-- Checking IF alignment restrictions are strictly enforced... yes
CMake Warning at thirdparty/gatb-core/gatb-core/thirdparty/hdf5/CMakeFilters.cmake:36 (find_package):
  Could not find a package configuration file provided by "ZLIB" with any of
  the following names:

    ZLIBConfig.cmake
    zlib-config.cmake

  Add the installation prefix of "ZLIB" to CMAKE_PREFIX_PATH or set
  "ZLIB_DIR" to a directory containing one of the above files.  If "ZLIB"
  provides a separate development package or SDK, be sure it has been
  installed.
Call Stack (most recent call first):
  thirdparty/gatb-core/gatb-core/thirdparty/hdf5/CMakeLists.txt:574 (include)

-- Found ZLIB: /usr/lib64/libz.so  
-- Filter ZLIB is ON
DYNAMIC BINARIES for gatb-h5dump
CMake Error at CMakeLists.txt:43 (MESSAGE):
  Lambda expressions not available.  Use a newer C++ compiler (e.g.  GCC
  Version 4.5 or greater)

-- Configuring incomplete, errors occurred!
See also "/home/lv70640/c7701100/software/Gap2Seq/build/CMakeFiles/CMakeOutput.log".
See also "/home/lv70640/c7701100/software/Gap2Seq/build/CMakeFiles/CMakeError.log".

Any help? F

rikuu commented 6 years ago

The zlib warning seems like some configuration strangeness GATB is not expecting, but it appears to find zlib anyway.

The more critical error is your C++ compiler not supporting lambda expressions. Have you tried using a newer compiler?

I have been looking at ways make the compilation easier because even I have a lot of trouble with occasionally. I'll try getting something committed soon.

pbravakos commented 6 years ago

I am facing the exact same problem as francicco when trying to compile the program. Bellow is the error i get:

CMake Warning at thirdparty/gatb-core/gatb-core/thirdparty/hdf5/CMakeFilters.cmake:36 (find_package): Could not find a package configuration file provided by "ZLIB" with any of the following names:

ZLIBConfig.cmake
zlib-config.cmake

Add the installation prefix of "ZLIB" to CMAKE_PREFIX_PATH or set "ZLIB_DIR" to a directory containing one of the above files. If "ZLIB" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): thirdparty/gatb-core/gatb-core/thirdparty/hdf5/CMakeLists.txt:574 (include)

-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8") -- Filter ZLIB is ON DYNAMIC BINARIES for gatb-h5dump -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Configuring done -- Generating done -- Build files have been written to:

rikuu commented 6 years ago

I pushed some changes to the CMake configuration, can you now try again? I also tagged a release and added a linux binary, if that helps.