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

glfw at Raspberry Desktop version #25

Open
Poleg44 opened this issue Dec 21, 2023 · 2 comments
Open

glfw at Raspberry Desktop version #25

Poleg44 opened this issue Dec 21, 2023 · 2 comments

Comments

@Poleg44
Copy link

Poleg44 commented Dec 21, 2023

Hello!
Today i install X11 desktop for Raspberry and try run from it.
pi@raspberrypi:~/php-glfw/examples $ php 01_triangle.php
3.3.8 X11 GLX EGL OSMesa clock_gettime evdev shared
php: /home/pi/php-glfw/vendor/glfw/src/window.c:954: glfwSetWindowUserPointer: Assertion `window != NULL' failed.
Aborted

My 01_triangle.php that i executed from CLI dont work from Desktop

@Poleg44
Copy link
Author

Poleg44 commented Dec 21, 2023

with virtual buffer work normal
pi@raspberrypi:/php-glfw/examples $ xvfb-run --auto-servernum php 01_triangle.php
3.3.8 X11 GLX EGL OSMesa clock_gettime evdev shared
string(43) "4.5 (Core Profile) Mesa 23.2.1-1
bpo12+rpt2"

@Poleg44
Copy link
Author

Poleg44 commented Dec 21, 2023

at https://discourse.glfw.org/t/solved-cant-get-started/1152
author say:
... switching from glfw-wayland to glfw-x11 on arch linux solved the issue.
I dont know how switch...

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

1 participant