I would like to know if we could build Csound version 7 as a static library.
My intention is to embed Csound as an addon in openFrameworks. For this purpose, I built Csound as a static library, including other external dependencies, libsndfile, FLAC, ogg, opus, vorbis, and libportaudio. However, it seems that there are more dependencies, such as lame, mpeg, etc. In compiling in openFrameworks, many dependencies errors continued infinitely. Therefore, I would like to know if this purpose could be possible fundamentally.
I would appreciate you could leave any suggestions.
Thanks for responding!
Since I used just downloaded artifact, which not installed into system, I could not found “.a” file. I’m sorry for this beginner response, but should it be appearing after installing somewhere?
You’re right, it doesn’t seem to come with the Mac installer. I’ll ask about adding it. In the menatime, you can use this script to build libsndfile, it will download all the dependencies you need. If I rememver correctly, it will create a static libnsdile that Csound can then link to.