Skip to content

Fixes issues for building the core standalone on macOS brought up in issue 1228#1249

Open
thoellt wants to merge 3 commits into
masterfrom
feature/fix_macos_bundling_and_pch
Open

Fixes issues for building the core standalone on macOS brought up in issue 1228#1249
thoellt wants to merge 3 commits into
masterfrom
feature/fix_macos_bundling_and_pch

Conversation

@thoellt
Copy link
Copy Markdown
Collaborator

@thoellt thoellt commented May 29, 2026

The PCH problem is addressed here by enabling Objective C(++) compilation for macOS, rather than turning of precompiled headers.

Running the app from the debugger immediately crashed for me because the built libraries (MV_Public and qtadvanceddocking) were not embedded into the app bundle. I moved this step from install to post build to make sure it happens and by doing it as post build the libraries will already be there in build-tree, rather than only in install.

I have tested this with Xcode projects and makefiles (in VS Code) as target.

thoellt added 2 commits May 29, 2026 11:14
This enables objective-c compilation on macOS for creating compatible precompiled headers for the .mm them helper file
This bundles the MV_Public and qtadvanceddocking dylibs with the app bundle on postbuild rather than install. This allows for easier debug/run out of the box.

Addition of the libraries during the install step was also flaky for me, so moving this should also improve when running from the installed bundle.

Note: Setting the working exe/directory (ll. 465-468) does not seem to have any effect for me. My understanding is that XCode cannot handle this while the build is not there. So if one wants to run from the install folder this still needs to be done manually after building
@thoellt thoellt changed the title This should fix some of the issues brought up in issue 1228 Fixes issues for building the core standalone on macOS brought up in issue 1228 May 29, 2026
@thoellt thoellt added bug Something isn't working macOS labels May 29, 2026
@thoellt thoellt marked this pull request as draft May 29, 2026 16:32
The previous solution did not properly solve the version numbering of rpath and embedded library for advanced docking. this creates a symlink using the SONAME used for the rpath.
@thoellt thoellt marked this pull request as ready for review May 29, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working macOS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant