I have two versions of the Rack SDK on my mac, in directories named Rack-SDK-1
and Rack-SDK-2
Running make
against Rack v1 SDK works as usual:
c++ -std=c++11 -stdlib=libc++ -fPIC -I/Users/grough/code/Rack-SDK-1/include -I/Users/grough/code/Rack-SDK-1/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.7 -c -o build/src/plugin.cpp.o src/plugin.cpp
c++ -o plugin.dylib build/src/plugin.cpp.o -shared -undefined dynamic_lookup -stdlib=libc++ -mmacosx-version-min=10.7
Running make
against Rack v2 SDK yields this error:
c++ -std=c++11 -stdlib=libc++ -fPIC -I/Users/grough/code/Rack-SDK-2/include -I/Users/grough/code/Rack-SDK-2/dep/include -MMD -MP -g -O3 -march=nocona -funsafe-math-optimizations -Wall -Wextra -Wno-unused-parameter -DARCH_MAC -mmacosx-version-min=10.9 -c -o build/src/plugin.cpp.o src/plugin.cpp
c++ -o plugin.dylib build/src/plugin.cpp.o -shared -L/Users/grough/code/Rack-SDK-2 -lRack -undefined dynamic_lookup
ld: library not found for -lRack
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [plugin.dylib] Error 1
Being not so good with C++ stuff, I’m wondering if there’s something simple I missed here. I have both versions of Rack installed on my system and I double checked the guides for building and migrating plugins, but haven’t been able to get passed this error. Thanks for any help.
Edit: I’ve updated to Rack-SDK-2.git.042a9ce0-mac.zip and can now build successfully.