-
Notifications
You must be signed in to change notification settings - Fork 6.6k
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
SDL doesn't open a window when compiled with vcpkg #34457
Comments
@gojzdar Could you please add this |
BTW, does this error also occur in your native system (outside docker)? Like windows. |
@FrankXie05 I tried compiling it with the APT package manager's sdl2-dev package and I had the same problem, until I built SDL2 from source and installed it through The output of: set(CMAKE_FIND_DEBUG_MODE 1)
get_cmake_property(_variableNames VARIABLES)
list (SORT _variableNames)
foreach (_variableName ${_variableNames})
message(STATUS "${_variableName}=${${_variableName}}")
endforeach() Is:
|
So what can I do? |
@gojzdar There is no problem installing and linking I will investigate this. :) |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
Not stale |
I believe I saw this recently when starting a new game project with SDL2 on a clean install of ubuntu. I believe this happens (for example) if you try to build the x11 backend but do not have the necessary headers installed on your container to do so. In that case, SDL2 compiles successfully, but without any graphical backends. See this warning message:
from vcpkg/ports/sdl2/portfile.cmake Line 30 in 52b52b4
I found that if you want sound, a similar situation occurs, and you may also need to install |
This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 180 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment. |
Describe the bug
Programs built with SDL2 open no window when built with SDL but have no such issue when I build it from source, either from the SDL2 or 3 branches.
Environment
OS: Kubuntu 23.04, x64
DE: KDE X11 / KDE Wayland / XFCE (tried on all of them)
DM: SDDM
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A window to open when project is compiled and run.
Failure logs
N/A, quiet error.
Additional context
I have asked this question on the SDL repo. I thought it was an SDL problem, but appears to be an issue with vcpkg and or apt package store. I have listed my entire compilation process there.
The only change is to the docker image files.
build command:
cmake -B build -S latest/src -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=1 -DCPPFILENAME=$(f) -DCMAKE_TOOLCHAIN_FILE=/app/vcpkg/scripts/buildsystems/vcpkg.cmake
Cmake file
One of the dozens of programs I tried compiling without success.
The text was updated successfully, but these errors were encountered: