zynaddsubfx / zyn-build-osx

OSX build script for zynaddsubfx
12 stars 7 forks source link

Problems building on macOS 10.14.6 Mojave #5

Open carlca opened 4 years ago

carlca commented 4 years ago

I downloaded the zyn-build-osx scripts and with them in a parallel folder to the zynaddsubfx-3.0.5 folder, I ran the doit.sh script. The build seemed to progress until it terminated with the error... clang: error: unsupported option '-static-libgcc'

The process did, however, generate a src folder in my ~ folder and this contained two subfolders zyn_build_x86_64 and zyn_stack_x86_64 and further subfolders. Examination of this did not reveal any built binaries such as VSTs, so I guess the process was indeed terminated prematurely.

Any idea what I have done wrong, and how I can fix this. Cheers!

x42 commented 4 years ago

The current scripts expect gcc (not clang). You have to run ./00_gcc7.sh once manually to bootstrap that compiler. This was done to provide distributable builds are compatible from OSX 10.5 .. 10.15. (Apple's clang uses a libc++ that is 10.9 or later only).

If that does not matter to you you can edit the script and remove the static options.

carlca commented 4 years ago

I've been trying various things for 4 days, as the now-deleted messages described. I ran the ./00_gcc7.sh script. That didn't work. Can you explain in clear steps how I 'edit the script and remove the static options'?