monadgroup / axiom

A powerful realtime node-based audio synthesizer.
Other
678 stars 31 forks source link

Fix Mac build #142

Closed cpdt closed 6 years ago

cpdt commented 6 years ago

When building on macOS High Sierra with Xcode 10, the standalone editor immediately segfaults. This doesn't happen on the Windows builds however.

remaininlight commented 6 years ago

Thanks for posting up Axiom, looks promising and I am interested in trying it out. However, I am also experiencing this issue on macOS High Sierra with XCode 10.

When attempting to run I get:

Starting application
Using data path /Users/user/Library/Application Support/Axiom
Starting backend
Starting editor
LLVM ERROR: Program used external function '___bzero' which could not be resolved!

Process finished with exit code 1

I have tried adding:

jit->addBuiltin("__bzero", (uint64_t) & ::bzero);

To LLVMAxiomOrcCreateInstance in LLVMMaxim.cpp, which removes that error message but then the program hangs on launch. In my debugger it seems to be waiting on AxiomGUI::MainWindow::lockGlobalLibrary().

cpdt commented 6 years ago

@remaininlight Thanks for the info! I'll have a look at the hang issue ASAP.

cpdt commented 6 years ago

Hi @remaininlight, the build should now be working on macOS. I've also added a macOS build to the latest release. Let me know if that works for you!

If the program is still hanging on lockGlobalLibrary, could you try deleting the /Users/user/Library/Application Support/Axiom directory? There might be a lock file there that Qt isn't cleaning up...

remaininlight commented 6 years ago

Thanks @cpdt, let the strange sounds begin! :)