nanoporetech / dorado

Oxford Nanopore's Basecaller
https://nanoporetech.com/
Other
445 stars 54 forks source link

Install error in M1 mac #774

Closed junjunxy closed 2 months ago

junjunxy commented 2 months ago

# Issue Report

Problem at

cmake --build cmake-build --config Release -j

## Please describe the issue:

[100%] Built target dorado_tests Checking linked libs... /opt/homebrew/opt/libaec/lib/libsz.2.dylib (compatibility version 2.0.0, current version 2.0.1) make[2]: [bin/dorado] Error 1 make[2]: Deleting file `bin/dorado' make[1]: [CMakeFiles/dorado.dir/all] Error 2 make: [all] Error 2

Please provide a clear and concise description of the issue you are seeing and the result you expect.

Hi, I am struggling at building dorado in M1 mac. I had installed autoconf 2.69 and followed instruction, but error arose at the end of the building process. I have looked into the other issues, but could not find the similar issues. could you help me to solve this issue?

Steps to reproduce the issue:

Please list any steps to reproduce the issue.

This is the spec of computer and version of cmake

% sw_vers ProductName: macOS ProductVersion: 12.5.1 BuildVersion: 21G83

% cmake --version cmake version 3.29.2 CMake suite maintained and supported by Kitware (kitware.com/cmake).

%which cmake /opt/homebrew/bin/cmake

% Model ientifier: M1 Mac mini, 2020 Chip Apple M1 Memory 16 GB

Run environment:

Logs

malton-ont commented 2 months ago

Hi @junjunxy,

The dorado build should use a static version of libhdf5.a that is pulled from our CDN. This looks like you've picked up a shared library from homebrew (an error that we catch as of v0.6.1). You can avoid this by simply uninstalling hdf5 and libaec from your brew installation (assuming they're not required for anything else):

brew uninstall hdf5 libaec

Or, if you don't want to remove these libraries (maybe they are needed somewhere else) you can force dorado to skip the brewed version by passing -DHDF5_NO_FIND_PACKAGE_CONFIG_FILE=ON to your cmake configure command (the brew version uses an hdf5-config.cmake which takes precedence over the CMAKE_PREFIX_PATH otherwise).

junjunxy commented 2 months ago

Hi @malton-ont

dorado is successfully installed. Thank you so much :)