all of three files for building mac instance are not for mac. On every step there are errors. Needed to do something like
#!/bin/bash
clear
echo "Starting a clean build of csound-vst3 for macOS..."
find . -name CMakeCache.txt -delete
rm -rf build-macos
mkdir -p build-macos
cd build-macos
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
CMAKE_C_COMPILER="/usr/bin/cc"
CMAKE_CXX_COMPILER="/usr/bin/c++"
cmake ../vst3-opcodes -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_C_FLAGS=-O2 -DCMAKE_CXX_FLAGS=-O2 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.15 -GXcode -DCMAKE_C_COMPILER="$CMAKE_C_COMPILER"
-DCMAKE_CXX_COMPILER="$CMAKE_CXX_COMPILER"
cmake --build . --config RelWithDebInfo --verbose --parallel 4
mv lib/Debug/libvst3_plugins.so lib/Debug/libvst3_plugins.dylib
cd ..
find -name "libvst3_plugins.*" -ls 2>/dev/null
echo "Completed a clean build of csound-vst3 for macOS."
after build i typed something like
gi_nstance vst3init "/Library/Audio/Plug-Ins/VST3/Serum.vst3" in instruments and it outputs alloc error.
I putted whole folder into OPCODEDIR64 or how its called idk, i know it works as zip of shared library (7zip command dont exist on mac, and i dont even know what zip does, if after i downloaded p7zip and ran zip-macos, the lib dont seem to have c++ file with opcodes in the vst3opcodes dir.
after i run mac os example.csd (didnt change it at all) it outputs some error:
Unable to find opcode entry for 'vst3init' with matching argument types:
Found: i vst3init SSSc
gi_vst3_handle_jx10 vst3init "../build-macos/VST3/Debug/mda-vst3.vst3" ...
Line: 59
from file /Users/now/Library/csound/6.0/plugins64/csound-vst3-opcodes/vst3-opcodes/vst3-opcodes-test-macos1.csd (1),Parsing failed due to syntax errors
seems like i can do nothing at this point. the build must be normal. I know nothing about csound internal architecture, how it read .dylib file. i tried putting it inside the opcode64 dir without folder just as dylib file. just dont work
seems and feels beta. much hope there will be smthng convinient.
all of three files for building mac instance are not for mac. On every step there are errors. Needed to do something like
after build i typed something like
gi_nstance vst3init "/Library/Audio/Plug-Ins/VST3/Serum.vst3
" in instruments and it outputs alloc error. I putted whole folder into OPCODEDIR64 or how its called idk, i know it works as zip of shared library (7zip command dont exist on mac, and i dont even know what zip does, if after i downloaded p7zip and ran zip-macos, the lib dont seem to have c++ file with opcodes in the vst3opcodes dir. after i run mac os example.csd (didnt change it at all) it outputs some error:seems like i can do nothing at this point. the build must be normal. I know nothing about csound internal architecture, how it read .dylib file. i tried putting it inside the opcode64 dir without folder just as dylib file. just dont work seems and feels beta. much hope there will be smthng convinient.