Skip to content

[3.0] Fix OpenAL loading on Windows and make the examples run out-of-the-box#2573

Draft
Exanite wants to merge 45 commits intodevelop/3.0from
feature/examples-and-openal-loading
Draft

[3.0] Fix OpenAL loading on Windows and make the examples run out-of-the-box#2573
Exanite wants to merge 45 commits intodevelop/3.0from
feature/examples-and-openal-loading

Conversation

@Exanite
Copy link
Copy Markdown
Member

@Exanite Exanite commented Apr 30, 2026

Summary of the PR

This will fix #2572

Related issues, Discord discussions, or proposals

Discord discussion: https://discord.com/channels/521092042781229087/587346162802229298/1499401418896048238

Further Comments

Should wait until #2570 is merged before merging this one.

Exanite and others added 30 commits April 17, 2026 23:45
(cherry picked from commit 7938a0c)
(cherry picked from commit b0db2ba)
(cherry picked from commit 156aa5c)
armv7s seems to be legacy.

(cherry picked from commit 25b0e27)
CMAKE_LIBRARY_ARCHITECTURE fixes the issue where system libraries weren't being found.
Eg: "SDL_X11                     (Wanted: ON): ON" was OFF without this setting.
Eg: "Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so " was a not found error without this setting.

I removed the pkg-config settings since they didn't seem to do anything and I couldn't figure out if they were correct in the first place.
I'm assuming CMake figures these out automatically (it should automatically find the host version of the pkg-config executable and I'm *assuming* (please verify) it uses the CMAKE_LIBRARY_ARCHITECTURE variable to figure out which set of .pc files to use).
x64/amd64 is handled the same way for consistency.
This is because it otherwise gets confusing in the "run project" dropdown.
@github-actions
Copy link
Copy Markdown
Contributor

Some of the native library builds modified in this PR were not referenced in the PR description. Please ensure that the PR description contains /build-native OpenAL-Soft SDL. These libraries won't be rebuilt without this being specified. If you believe this is in error, then please write a comment explaining why and ignore this suggestion. This comment will be automatically updated if rectified.

@Exanite Exanite mentioned this pull request Apr 30, 2026
12 tasks
@Exanite Exanite marked this pull request as ready for review April 30, 2026 17:18
@Exanite Exanite requested a review from a team as a code owner April 30, 2026 17:18
@Exanite Exanite marked this pull request as draft April 30, 2026 17:19
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 30, 2026

File Coverage
All files 16%

Minimum allowed coverage is 0%

Generated by 🐒 cobertura-action against bb59721

@Exanite
Copy link
Copy Markdown
Member Author

Exanite commented Apr 30, 2026

Looks like the license identifier is invalid and causing the pack step of the build to fail:
image

Also, it looks like the correct identifier should be LGPL-2.0-or-later instead of v2.1.
image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants