Skip to content

Conversation

@rh101
Copy link
Contributor

@rh101 rh101 commented Nov 21, 2025

Describe your changes

This addresses the issue described in #2876

An extra change was required in 3rdparty/CMakeLists.txt to avoid a strange linker error when this attribute is set for the OpenAL-soft:

XCODE_ATTRIBUTE_CONFIGURATION_BUILD_DIR "$(inherited)"

It doesn't happen on iOS, but it shows a linker error on MacOS. The only way to fix it was to not force the setting of the output directories for shared libraries in 3rdparty/CMakeLists.txt. The linker error disappears and everything builds correctly with this change.

Issue ticket number and link

#2876

Checklist before requesting a review

For each PR

  • Add Copyright if it missed:
    - "Copyright (c) 2019-present Axmol Engine contributors (see AUTHORS.md)."

  • I have performed a self-review of my code.

    Optional:

    • I have checked readme and add important infos to this PR.
    • I have added/adapted some tests too.

For core/new feature PR

  • I have checked readme and add important infos to this PR.
  • I have added thorough tests.

Axmol 3.x ------------------------------------------------------------

For each 3.x PR

  • Check the '#include "axmol.h"' and replace it with the needed headers.

Ensure that dSym file is generated in correct directory
@rh101 rh101 changed the title Fix for xcarchive generation for iOS and MacOS when usingn OpenAL-Soft Fix for xcarchive generation for iOS and MacOS when using OpenAL-Soft Nov 21, 2025
@halx99 halx99 added the bug Something isn't working label Nov 21, 2025
@halx99 halx99 added this to the 2.10.0 milestone Nov 21, 2025
halx99
halx99 previously approved these changes Nov 21, 2025
@rh101 rh101 marked this pull request as draft November 21, 2025 12:09
@halx99
Copy link
Collaborator

halx99 commented Nov 21, 2025

@rh101 prebuilt workflow check fail: LINK : fatal error LNK1104: cannot open file 'OpenAL32.lib' [D:\a\axmol\axmol\HelloCpp\build\HelloCpp.vcxproj], could you take a look?

@rh101
Copy link
Contributor Author

rh101 commented Nov 21, 2025

@rh101 prebuilt workflow check fail: LINK : fatal error LNK1104: cannot open file 'OpenAL32.lib' [D:\a\axmol\axmol\HelloCpp\build\HelloCpp.vcxproj], could you take a look?

I think it's fixed now, just took a while testing it out to make sure the MacOS build still worked without generating the linker error.

@rh101 rh101 marked this pull request as ready for review November 21, 2025 13:28
@halx99 halx99 merged commit 3ff6d76 into axmolengine:release/2.x Nov 21, 2025
15 checks passed
@rh101 rh101 deleted the ios-openal-patch branch November 21, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] Xcode archive and distribution option broken in latest releases/2.x branch

2 participants