acids-ircam / rave_vst

Other
184 stars 28 forks source link

Compiling on Apple Silicon #5

Closed delmenhorst closed 2 years ago

delmenhorst commented 2 years ago

Hey, I tried to compile the vst on my machine, but I couldn't figure out how the compiler knows where libtorch is. Anyway he finds it. :) I have installed the liberary via brew, but it seems "libiomp5.dylib" is missing.

tried to find a solution, but couldn't figure it out...

$ cmake .. -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is AppleClang 13.1.6.13160021
-- The CXX compiler identification is AppleClang 13.1.6.13160021
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
torch version : 1.11.0
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Caffe2: Found protobuf with new-style protobuf targets.
-- Caffe2: Protobuf version 3.19.4
-- Found Torch: /opt/homebrew/lib/libtorch.dylib
-- Configuring juceaide
-- Building juceaide
-- Exporting juceaide
-- Found CURL: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr/lib/libcurl.tbd (found version "7.77.0")
-- Configuring done
CMake Error at juce/extras/Build/CMake/JUCEUtils.cmake:1037 (add_executable):
  Cannot find source file:

    /opt/homebrew/lib/libiomp5.dylib

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc
Call Stack (most recent call first):
  juce/extras/Build/CMake/JUCEUtils.cmake:1213 (_juce_link_plugin_wrapper)
  juce/extras/Build/CMake/JUCEUtils.cmake:1666 (_juce_configure_plugin_targets)
  CMakeLists.txt:66 (juce_add_plugin)

-- Generating done
CMake Generate step failed.  Build files cannot be regenerated correctly.
ZodiacFRA commented 2 years ago

Hey! Our makefile should download and link to torch on its own, did you try to build before installing torch via homebrew?

ZodiacFRA commented 2 years ago

You can now get the pre compiled binaries in the "Actions" panel of the repository for Ubuntu, MacOS and Windows. If want to run natively on Mac M1 you'll need to compile it yourself however, as github actions do not provide an M1 environment