pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: audio/csound6 and devel/sdl12-compat failing on Darwin (macOS 14.0)



On 10/24/23 08:11, Manuel Kuklinski wrote:
Am Samstag 21 Oktober 2023 um 15:45:45 -0700, schrieb Jason Bacon 0,4K:
On 10/22/23 11:42, Manuel Kuklinski wrote:
I, too, have seen "librtjack.so", and also have read the article you
mentioned; but as far as I know, Darwin needs a .dylib to function properly?

I'd probably verify this before pursuing other avenues.  The article
suggests that both .dylib and .so have their purposes under macOS, so
the question is do we really need a .dylib in this instance?

Hi!

I was in contact with upstream; they, among other things, look for a
*.dylib, when initalizing the audio backend. I'm in no means an expert,
but I think I still agree, that Darwin needs a *.dylib instead of a
*.so.

After mailing back and forth with upstream, it seems, that either
-dynamiclib or -shared is missing from LDFLAGS (I hope I don't mistake
this for the CFLAGS); if I pass one of this argument in the Makefile, I
get the following error:

- - - - - - - - - - %< - - - - - - - - - -

[ 65%] Linking CXX shared module ../libdoppler.so
cd /Users/mk/pkgsrc/wip/csound6181/work/csound-6.18.1/cmake-pkgsrc-build/Opcodes && /opt/pkg/bin/cmake -E cmake_link_script CMakeFiles/doppler.dir/link.txt --verbose=1
/Users/mk/pkgsrc/wip/csound6181/work/.cwrapper/bin/clang++ -O2 -g -DBETA -shared -DCS_DEFAULT_PLUGINDIR=\"/opt/pkg/lib/csound/plugins64-6.0\" -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 -std=c++11 -ffast-math -msse2 -fomit-frame-pointer -DNDEBUG -stdlib=libc++ -fvisibility=hidden -fvisibility=hidden -DHAVE_ATOMIC_BUILTIN -O3  -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 ../libdoppler.so CMakeFiles/doppler.dir/doppler.cpp.o
clang: error: invalid argument '-bundle' not allowed with '-dynamiclib'
*** [libdoppler.so] Error code 1

- - - - - - - - - - %< - - - - - - - - - -

How do I remove "-bundle"? I already tried playing with

BUILDLINK_TRANSFORM.Darwin+=    rm:-bundle

but no results...

Thank you and excuse my previous brevity.

# fgrep -ri bundle work/ | more

work//csound-6.18.1/Release_Notes/Version_6.12.md:- OSCbundle sends a
collection of similar OSC messages as a single packet
work//csound-6.18.1/CMakeLists.txt:set(MACOSX_FRAMEWORK_BUNDLE_VERSION
...

Maybe replace MACOSX_FRAMEWORK_BUNDLE_VERSION with something else that
refers to a dylib?  Just a guess, as I'm not a cmake guru.

Gotta love build scripts almost as complicated as the application itself...



Home | Main Index | Thread Index | Old Index