gogins / csound-extended

Extensions for Csound including algorithmic composition, Android app, and WebAssembly.
GNU Lesser General Public License v2.1
40 stars 1 forks source link

macOS Build #196

Closed gogins closed 2 years ago

gogins commented 2 years ago

Update the csound-extended build system produce an installable macOS package (.dmg or just .pkg?). This will involve solving a number of problems.

gogins commented 2 years ago

I should probably use either only fltk-image or only opencv for loading and processing images.

I build FLTK from sources and installed it, it produced the CMake configuration file.

gogins commented 2 years ago

I updated csound-extended's CMakeLists.txt to be more cross-platform.

gogins commented 2 years ago

Can't find elements.h, what is that. OK, it's part of libmusicxml. Looks like a real mess. As installed from the submodule:

mkg@xenakis:~/libmusicxml/build$ xmlversion
libmusicxml version 3.19
musicxml to guido converter version 3.0
musicxml to lilypond converter version 0.92

This installs the inner headers. But as installed from a fresh clone of the libmusicxml repository:

mkg@xenakis:~/libmusicxml/build/bin$ ./xmlversion 
libmusicxml version 3.20
musicxml to guido converter version 3.1

On my MacBook it is also version 3.20.

My mistake was using the default dev branch of the musicxml library instead of the master branch.

gogins commented 2 years ago

The problem now is not finding the fltk.framework directory. I will remove the FLTK dependency.

FLTK image formats:

OpenCV image formats:

Should make little or no practical difference.

gogins commented 2 years ago

There are undefined symbols in the Python module for CsoundAC on macOS because I moved what had been System.cpp into System.hpp to make it into a header file only library that can be used without linking to the CsoundAC library.

I can convince SWIG to bring these functions into the Python module, or I can un-refactor the code.

gogins commented 2 years ago

For standard macOS framework bundle contents and layout see:

https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPFrameworks/Concepts/FrameworkAnatomy.html#//apple_ref/doc/uid/20002253-99920-BAJFEJFI