-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
error: building sdl2:x64-osx failed with: BUILD_FAILED #35839
Comments
I don't know. But I would suggest trying the last version, not last year's version. |
How do I update vcpkg to the latest version on macOS? |
How did you get it?
Otherwise start from scratch: |
I did a clean reinstallation of vcpkg and I'm on the latest version, also download the packages that the project needs, however, I noticed that the code downloads the 2022 version when compiling and gives the aforementioned error... |
That is not vcpkg code. Remove that line. Or find another commit that works for you. Or convert that project to manifest mode. |
Thanks for the help, I removed the line and the first process showed no errors. CMake Error at build/vcpkg.macosx/scripts/buildsystems/vcpkg.cmake:859 (_find_package):
Add the installation prefix of "SDL2-mixer" to CMAKE_PREFIX_PATH or set I'm about to give up, I've already installed SDL2 and gives that error |
In July, sdl-mixer's CMake config changed, so additional changes are required to the project. - find_package(SDL2-mixer CONFIG REQUIRED)
- set(SDL2_ALL_LIBRARIES SDL2::SDL2main SDL2::SDL2-static SDL2::SDL2_mixer)
+ find_package(SDL2-mixer NAMES SDL2_mixer CONFIG REQUIRED)
+ set(SDL2_ALL_LIBRARIES SDL2::SDL2main SDL2::SDL2-static $<IF:$<TARGET_EXISTS:SDL2_mixer::SDL2_mixer>,SDL2_mixer::SDL2_mixer,SDL2_mixer::SDL2_mixer-static>) |
Thank you very much for all your help friend, I made the changes to the lines and apparently the code compiled, with a few warnings, however, the bin folder is empty and the compilation did not generate any executables. Any ideas what it might be? |
This not vcpkg issue. And please use the latest vcpkg. :) |
We hope your question was answered to your satisfaction; if it wasn't, you can ping me with more info and I will reopen. |
I'm trying to compile the code from this project: https://github.com/GPSnoopy/BelgianChocolateDuke3D
but I'm getting this error at the end of the process, I'm on macOS Sonoma:
error: building sdl2:x64-osx failed with: BUILD_FAILED
Please ensure you're using the latest port files with git pull and vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+sdl2
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[sdl2]+Build+error
Include '[sdl2] Build error' in your bug report title, the following version information in your bug description, and attach any relevant failure logs from above.
vcpkg-tool version: 2022-05-05-67e17c1782801cf481be9ac0b3765dff3e4bdeb8
vcpkg-scripts version: 14e7bb4 2022-05-10 (1 year, 7 months ago)
What could be?
The text was updated successfully, but these errors were encountered: