Am Dienstag 24 Oktober 2023 um 7:58:29 +0000, schrieb Victor Lazzarini 3,9K: > Thanks. I see this: > > [ 78%] Linking C shared module ../librtjack.so > cd /Users/mk/pkgsrc/wip/csound6181/work/csound-6.18.1/cmake-pkgsrc-build/InOut && /opt/pkg/bin/cmake -E cmake_link_script CMakeFiles/rtjack.dir/link.txt --verbose=1 > /Users/mk/pkgsrc/wip/csound6181/work/.cwrapper/bin/clang -DHAVE_CLOCK_GETTIME -O2 -I/opt/pkg/include -I/opt/pkg/include/glib-2.0 -I/opt/pkg/include/gio-unix-2.0 -I/opt/pkg/lib/glib-2.0/include -I/opt/pkg/include/readline -I/opt/pkg/include/ncurses -I/opt/pkg/include/python3.11 -DLDAP_DEPRECATED -ffast-math -msse2 -fomit-frame-pointer -fvisibility=hidden -std=gnu99 -DHAVE_VECLIB -DSNDFILE_MP3 -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -DHAVE_PTHREAD -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk -mmacosx-version-min=11.3 -bundle -Wl,-headerpad_max_install_names -L/opt/pkg/lib/csound6 -L/opt/pkg/lib -o ../librtjack.so CMakeFiles/rtjack.dir/rtjack.c.o CMakeFiles/rtjack.dir/alphanumcmp.c.o /opt/pkg/lib/libjack.dylib /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/lib/libpthread.tbd > > Note the -o ../librtjack.so > > This is what I get here: > > [ 78%] Linking C shared library ../librtjack.dylib > cd /Users/victor/src/csound/debug/InOut && /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/rtjack.dir/link.txt --verbose=1 > /Library/Developer/CommandLineTools/usr/bin/cc -DHAVE_CLOCK_GETTIME -ffast-math -fomit-frame-pointer -g -Wno-error -Wno-missing-field-initializers -Wno-unused-parameter -DBETA -Wall -Werror -Wno-missing-field-initializers -fvisibility=hidden -std=gnu99 -DHAVE_VECLIB -DSNDFILE_MP3 -DHAVE_ATOMIC_BUILTIN -DHAVE_CURL -DHAVE_PTHREAD -g -arch arm64 -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk -mmacosx-version-min=10.7 -dynamiclib -Wl,-headerpad_max_install_names -o ../librtjack.dylib -install_name @rpath/librtjack.dylib CMakeFiles/rtjack.dir/rtjack.c.o CMakeFiles/rtjack.dir/alphanumcmp.c.o /usr/local/lib/libjack.dylib /Library/Developer/CommandLineTools/SDKs/MacOSX13.3.sdk/usr/lib/libpthread.tbd > > and it is -o ../librtjack.dylib > > I wonder if there is any difference in CMake options? Hi! The Makefile currently includes these arguments: - - - - - - - - - - %< - - - - - - - - - - CFLAGS+= -g -DBETA CFLAGS+= -DCS_DEFAULT_PLUGINDIR=\"${PREFIX}/lib/csound/plugins64-6.0\" USE_CMAKE= yes CMAKE_ARGS+= -DBUILD_RELEASE=1 CMAKE_ARGS+= -DCMAKE_BUILD_TYPE=Release CMAKE_ARGS+= -DCMAKE_VERBOSE_MAKEFILE=1 #CMAKE_INSTALL_RPATH doesn't work for some reason, so do it here. LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/csound6 - - - - - - - - - - %< - - - - - - - - - - These options were taken from audio/csound6 and can be changed / removed. I'm not 99,9% confident, that these are the necessary arguments, especially the CFLAGS... options.mk includes these arguments: - - - - - - - - - - %< - - - - - - - - - - PKG_OPTIONS_VAR= PKG_OPTIONS.csound6 PKG_SUPPORTED_OPTIONS= jack portaudio pulseaudio .include "../../mk/bsd.fast.prefs.mk" .if ${OPSYS} == "Linux" PKG_SUPPORTED_OPTIONS+= alsa PKG_SUGGESTED_OPTIONS+= alsa .elif ${OPSYS} != "Darwin" && ${OPSYS} != "Haiku" PKG_SUGGESTED_OPTIONS+= portaudio .endif .include "../../mk/bsd.options.mk" PLIST_VARS+= alsa .if !empty(PKG_OPTIONS:Malsa) .include "../../audio/alsa-lib/buildlink3.mk" CMAKE_ARGS+= -DUSE_ALSA=ON PLIST.alsa= yes .else CMAKE_ARGS+= -DUSE_ALSA=OFF .endif PLIST_VARS+= jack .if !empty(PKG_OPTIONS:Mjack) .include "../../audio/jack/buildlink3.mk" CMAKE_ARGS+= -DUSE_JACK=ON PLIST.jack= yes .else CMAKE_ARGS+= -DUSE_JACK=OFF .endif PLIST_VARS+= portaudio .if !empty(PKG_OPTIONS:Mportaudio) .include "../../audio/portaudio/buildlink3.mk" CMAKE_ARGS+= -DUSE_PORTAUDIO=ON CMAKE_ARGS+= -DCMAKE_INCLUDE_PATH=${BUILDLINK_PREFIX.portaudio}/include/portaudio2 CMAKE_ARGS+= -DCMAKE_LIBRARY_PATH=${BUILDLINK_PREFIX.portaudio}/lib/portaudio2 PLIST.portaudio= yes .else CMAKE_ARGS+= -DUSE_PORTAUDIO=OFF .endif PLIST_VARS+= pulseaudio .if !empty(PKG_OPTIONS:Mpulseaudio) .include "../../audio/pulseaudio/buildlink3.mk" CMAKE_ARGS+= -DUSE_PULSEAUDIO=ON PLIST.pulseaudio= yes .else CMAKE_ARGS+= -DUSE_PULSEAUDIO=OFF .endif - - - - - - - - - - %< - - - - - - - - - - options.mk is mainly for the audio backend; the default setting is jack (doesn't matter if the system is Darwin). I tried setting in the Makefile: CMAKE_ARGS+= -DBUILD_SHARED_LIBS=1 The reason was, that I spotted the "-dynamiclib" compiler flag in your logs. But no change... Kind regards. Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here