-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
mingw buildability #19349
mingw buildability #19349
Conversation
lyrra
commented
Sep 10, 2023
- [ x] I signed the CLA
build/cmake/FindSndFile.cmake
Outdated
@@ -1,6 +1,6 @@ | |||
include(GetPlatformInfo) | |||
|
|||
if (OS_IS_WIN) | |||
if (OS_IS_WIN AND (NOT MINGW)) | |||
find_path(SNDFILE_INCDIR sndfile.h PATHS ${PROJECT_SOURCE_DIR}/dependencies/include;) | |||
if (MINGW) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wouldn't this then be dead code?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Originally the path was took for all flavors of windows. This narrows to a subset that does not include mingw.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But causes sndfile to not get found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean with dead code, I've pushed a commit that removes the mingw stuff inside the windows path that is avoided on mingw.
When I try this, I get:
|
Not sure about the PKG_CONFIG_EXECUTABLE error, but check if your mingw has libsndfile is installed: |
I'm pretty sure it has, as my 3.x builds find it |
It seems pkg-config is needed to be found, and if so, it is used to find libsndfile:
EDIT: on mu3 it seems "find_library" is used instead of "find_package" as in mu4. |
I beleive I'm using the MinGW that comes as part of Qt 5.15.2, maybe that's just too old? |
The WASAPI errors are expected as this PR depends on #19246 which disables wasapi if jack is used (which is needed for mingw). Yes, also other stuff needs to be disabled, here is my build command:
|
But isn't #19246 just about Linux?
|
You are correct, you need this patch to make jack build also on windows: c5ec4e1 |