Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS Sonoma 14.7.1 & Xcode 16.2 compiling errors #47

Open
kovaacs opened this issue Dec 22, 2024 · 7 comments
Open

macOS Sonoma 14.7.1 & Xcode 16.2 compiling errors #47

kovaacs opened this issue Dec 22, 2024 · 7 comments
Labels
macOS macOS only issue (Xcode compiling etc)

Comments

@kovaacs
Copy link

kovaacs commented Dec 22, 2024

Hello,

I was very excited to see that someone revived this project, but the build on macOS fails the same as with the original repo 🤔

Screenshot 2024-12-22 at 20 06 10

I followed the linked guide in both cases.

@damiensellier
Copy link
Owner

damiensellier commented Dec 22, 2024

Hi, what's the setup you're using? macOS version? intel or apple silicon? Xcode version?
Unless you're using Sonoma, it should work fine.

thanks

EDIT : Also what version of CtrlrX you're trying to compile?

@damiensellier damiensellier added the macOS macOS only issue (Xcode compiling etc) label Dec 22, 2024
@damiensellier
Copy link
Owner

The compilation Guide for Xcode is a bit out dated. If you're on mac silicon you should set the projucer project as following :

RomanKubiak#560 (comment)

However, I got the build working without changing any source files by switching back to C++14 standard in the project build settings under "Apple Clang - Language" -> "C Language dialect"

Also, you need to build CtrlrX as "release" not debug in the Xcode schemes.

Xcode Scheme Settings

@damiensellier
Copy link
Owner

@kovaacs Did you succeed in building your app this way?

@CFD2
Copy link

CFD2 commented Dec 25, 2024

Same issue with Sonoma 14.7.1 and Xcode 16.2. Trying to build CtrlrX-5.6.30-GUI-Maintenance

Setting c++14 does not really help and fails when building shared code

@damiensellier
Copy link
Owner

It seems that there is a Sonoma problem. Compiled Ctrlr apps on older macOS run but seem to crash on closing.
I can't help with that unfortunately since I don't have Sonoma yet but Ventura.

@CFD2
Copy link

CFD2 commented Dec 25, 2024

I can try to build it on an Intel Mac that is running Ventura. Can I cross compile for Apple Silicon and Sonoma? What does that entail?

@damiensellier
Copy link
Owner

damiensellier commented Dec 26, 2024

You can compile for ARM64 on intel. I think you need to install the arm64 library for xcode and when your run your project from projucer of define the settings of CtrlrX in Xcode you would need to specify :
target arm64
minimum system macos11
and C++ language standard is C++ 14

I don't remember but another user succeeded doing that at the early release stage of the mac M1.

Let me know if you get it right, I never tried on my own.

Damien

@damiensellier damiensellier changed the title macOS build steps macOS Sonoma 14.7.1 & Xcode 16.2 compiling errors Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS macOS only issue (Xcode compiling etc)
Projects
None yet
Development

No branches or pull requests

3 participants