-
Notifications
You must be signed in to change notification settings - Fork 24
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 when setting SDL_VIDEO_DRIVER_WAYLAND #29
Comments
Well, I guess there is no Wayland nim wrapper around. So |
Yes, If you have knowledge of others and can update sdl_syswm.nim with patches for them, you are welcome to do so. |
Makes sense. I thought there might be a Wayland wrapper I was missing but I don't know of any either. I've since realized that using Feel free to close if you like. |
If I try to compile with
nim c -d:SDL_VIDEO_DRIVER_WAYLAND main.nim
, the compiler throws this error:~/.nimble/pkgs/sdl2_nim-2.0.10.0/sdl2/sdl_syswm.nim(54, 5) Error: expression 'nil' is of type 'typeof(nil)' and has to be discarded
Line 54 in that file just says
nil
. If I replace it withdiscard
it no longer errors there, but it then fails with~/.nimble/pkgs/sdl2_nim-2.0.10.0/sdl2/sdl_syswm.nim(250, 23) Error: undeclared identifier: 'WlDisplay'
I'm assuming the first error is from some kind of syntax change with Nim, bu where are the
WlDisplay
,WlSurface
, etc. symbols supposed to come from? Is there a missing import or something?Sorry if I'm misunderstanding something here. Fairly new to Nim and SDL2.
The text was updated successfully, but these errors were encountered: