Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sndfile found during cmake but not during build time | MacOs m1 pro #507

Open
cesarvspr opened this issue Sep 2, 2024 · 0 comments
Open

Comments

@cesarvspr
Copy link


cmake -DGGML_OPENBLAS=ON \
                                                                                    -DBUILD_SHARED_LIBS=On \
                                                                                  -DCMAKE_BUILD_TYPE=Release \
                                                                                  -DCMAKE_CXX_FLAGS="-g2 -fno-omit-frame-pointer" \
                                                                                    ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- PkgConfig found :)
-- LIBSNDFILE_INCLUDE_DIR: /opt/homebrew/include
-- LIBSNDFILE_LIBRARY: /opt/homebrew/lib/libsndfile.dylib
-- SndFile found :)
-- SNDFILE_INCLUDE_DIR: /opt/homebrew/include
-- SNDFILE_LIBRARY: SndFile::sndfile
-- SNDFILE_VERSION: 1.2.2
LIBSNDFILE_FOUND: 
-- CMAKE_SYSTEM_PROCESSOR: arm64
-- ARM detected
-- Accelerate framework found
CMake Warning at src/CMakeLists.txt:229 (message):
  OpenBLAS not found


-- ARM detected
-- Accelerate framework found
CMake Warning at tests/CMakeLists.txt:146 (message):
  OpenBLAS not found


-- Configuring done (0.3s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/cesarsampaio/Documents/seamless_communication/ggml

Build:


 make -j4 unity

[ 37%] Built target kaldi-native-fbank
[ 58%] Built target ggml
[ 70%] Built target fairseq2_cpp
[ 79%] Built target unity_lib
[ 83%] Linking CXX executable ../../bin/unity
ld: library 'sndfile' not found
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [bin/unity] Error 1
make[2]: *** [examples/unity/CMakeFiles/unity.dir/all] Error 2
make[1]: *** [examples/unity/CMakeFiles/unity.dir/rule] Error 2
make: *** [unity] Error 2

I know this can be a local issue, but I will leave this issue here in case someone can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant