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

Fails to build on Kubuntu #1

Open
hinell opened this issue Jul 14, 2023 · 5 comments
Open

Fails to build on Kubuntu #1

hinell opened this issue Jul 14, 2023 · 5 comments

Comments

@hinell
Copy link

hinell commented Jul 14, 2023

SDL failed to create a window!
SDL_Error: Could not create GLES window surface

Steps to reproduce

Apply this small patch: patch.diff.txt

System

Ubuntu 23.04
gcc version 12.2.0 
GNU ld (GNU Binutils for Ubuntu) 2.40
libgles2/lunar 1.6.0-1
@computermouth
Copy link
Owner

I fired up a virtual machine with Kubuntu, and was unable to reproduce your results.

I did have some issues with the mouse

  • in X11, the mouse sensitivity was extremely high
  • in Wayland, the mouse seemingly did not work

It's possible some or all of this could be attributed to the virtualization layer though. Could you tell me more about your setup? Are you on i386, amd64, or perhaps arm or something?

Also, are you using a proprietary graphics driver? You can use glxinfo to get more information about which graphics driver is in use.

@hinell
Copy link
Author

hinell commented Jul 16, 2023

x86-64, no virtualization used.
Kubuntu 23.04
Linux 6.2.0-25-generic x86_64 GNU/Linux
Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-25-generic (64-bit)
Graphics Platform: X11
Graphics Processor: NVIDIA GeForce GT 1030/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.

glxinfo output:

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce GT 1030/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 525.125.06
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 525.125.06
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 525.125.06
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

@computermouth
Copy link
Owner

Hmm, judging by this 4.6.0 NVIDIA 525.125.06, I'd say it's the proprietary driver.

I don't have any Nvidia hardware to test against. I wonder if you'd be willing to try the nouveau driver, or perhaps live-boot a distro which does not include the proprietary driver, and test again.

@hinell
Copy link
Author

hinell commented Jul 17, 2023

Let's see if I have time for that. Afaik, libgles2 should work with proprietary drivers as well.

@computermouth
Copy link
Owner

Agreed that it should. You could also try something like es2gears or $ gcc experiments/sdl2gles2tri.c -lSDL2 -lGLESv2 && ./experiments/a.out to test other programs which utilize gles2

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

No branches or pull requests

2 participants