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

Don't link delayimp on UWP because it doesn't exist there #349

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Ravbug
Copy link
Contributor

@Ravbug Ravbug commented Apr 27, 2024

delayimp.lib does not exist on UWP, but SteamAudio always tries to link it on Windows platforms. This PR prevents SteamAudio from linking delayimp.lib on UWP. SteamAudio still works on UWP without it.

@lakulish
Copy link
Collaborator

lakulish commented May 6, 2024

Did you need to make any other changes in order to build for UWP? I tried building your branch for UWP and it didn't seem to work.

@Ravbug
Copy link
Contributor Author

Ravbug commented May 16, 2024

What error did you get when trying to build UWP?

@lakulish
Copy link
Collaborator

I got the following error:

error MSB8024: Using static version of the C++ runtime library is not supported.

Which can be fixed by removing the /MT flag set in the root CMakeLists.txt, but it would also require all dependencies to be built without static linking to the CRT, which would involve changing the dependency building scripts as well.

@Ravbug
Copy link
Contributor Author

Ravbug commented May 20, 2024

Which can be fixed by removing the /MT flag set in the root CMakeLists.txt

I checked my copy and found that I also did that. My project builds SteamAudio's dependencies as part of the cmake build tree. Maybe an option could be added to disable adding the /MT flag?

lakulish added a commit that referenced this pull request Jul 15, 2024
runtime.

Also update dependencies script with new flag for selecting
static/dynamic linking to the CRT.

See also: #349
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants