ComposersDesktop / CDP8

New version of CDP software
GNU Lesser General Public License v2.1
83 stars 3 forks source link

Build for Apple Silicon #9

Open jottr opened 2 months ago

jottr commented 2 months ago

A build for Apple Silicon would be very nice.

wolfshirts commented 1 month ago

@jottr Hi, I wanted apple silicon too so I built it tonight. You can grab it at the link below. Once you get the file run gunzip, and the resulting file will be a .tgz, extract it and you're good. This is missing any application that has portaudio. https://app.circleci.com/pipelines/github/wolfshirts/CDP8/15/workflows/b9dc7341-d664-4d2a-98fa-251d2b95467a/jobs/15/artifacts

shakfu commented 1 month ago

@jottr @wolfshirts

I too have added Apple Silicon support in my fork which assumes portaudio is obtained via the homebrew package manager. In this fork, libaaio is also built using cmake.

First install portaudio via homebrew...

brew install portaudio

... then build it.

git clone https://github.com/shakfu/CDP8.git
cd CDP8
mkdir build && cd build
cmake .. && cmake --build . --config Release

Built executables should be found in a new CDP8/NewRelease folder.

Also works for raspberry pi.

jottr commented 1 month ago

This is nice. Maybe one could create a Github action, cross compile CDP8, and then install the resulting artifact via homebrew-cask. This would avoid that everyone has to build their own binary.

wolfshirts commented 1 month ago

@jottr @shakfu I would be willing to put forth some effort on this. I can pull in the changes that @shakfu made to build with port and do the build on CCI. I'll look into creating a cask.

shakfu commented 1 month ago

Sure. Feel free to grab any relevant changes from my fork.

wolfshirts commented 1 month ago

@shakfu 💯 thanks, it will save the time of getting port working :).