Am Mittwoch 25 Oktober 2023 um 6:23:26 +0200, schrieb Manuel Kuklinski 1,1K: > Am Dienstag 24 Oktober 2023 um 18:05:34 +0000, schrieb Victor Lazzarini 3,3K: > > Ok, it's not a bundle, that's a different type of dynamic lib (we don't use). So > > > > 1. You need to find where -bundle is being added > > > > 2. You need to use -dynamiclib > > > > 3. the plugin libs need to have the extension .dylib in their names. > > > > So here's a command line example for building a Csound plugin (with no dependencies) > > > > cc -dynamiclib mysrc.c -o myplug.dylib -I > > > > This command compiles and links the opcode. If you are using object files then you just replace the .c by a .o file. > > > > Basically the solution is to fix the makefiles so you use -dynamiclib to build the libraries. > > Got it! One question before I start searching and editing: > > "Custom.cmake.ex" is the right place to pass custom commands to cmake? > > It is my first time explicitly using cmake... > > Kind regards. O.K., Custom.cmake.ex is the right place, according to CmakeLists.txt; I re-named the example file to Custom.cmake and added the following two lines: - - - - - - - - - - %< - - - - - - - - - - $NetBSD$ --- Custom.cmake.orig 2022-11-23 19:53:55.000000000 +0000 +++ Custom.cmake @@ -6,6 +6,10 @@ set(CMAKE_VERBOSE_MAKEFILE ON) set(BUILD_STATIC_LIBRARY ON) set(TCL_VERSION 8.5) set(PYTHON_INCLUDE_DIRS "/usr/include/python2.7") +SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib - headerpad_max_install_names") +SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a") #### NOTE the processor type needs setting #set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -W -Wall -mtune=core2") - - - - - - - - - - %< - - - - - - - - - - The result is: - - - - - - - - - - %< - - - - - - - - - - CMake Error: The following variables are used in this project, but they are set to NOTFOUND. Please set them or make sure they are set and tested correctly in the CMake files: PTHREAD_LIBRARY linked by target "rtjack" in directory /Users/mk/pkgsrc/wip/csound6181/work/csound-6.18.1/InOut -- Generating done (0.2s) CMake Generate step failed. Build files cannot be regenerated correctly. *** Error code 1 Stop. bmake[1]: stopped in /Users/mk/pkgsrc/wip/csound6181 *** Error code 1 Stop. bmake: stopped in /Users/mk/pkgsrc/wip/csound6181 (1) mk ~/.../wip/csound6181 $ - - - - - - - - - - %< - - - - - - - - - - I'm in need of a hint again :-( 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