Comments (8)
What version of GLFW have you got? According to vcpkg it should be 3.4 which is the latest.
GLFW_USE_WAYLAND
is now deprecated:
https://github.com/glfw/glfw/blob/master/CMakeLists.txt#L30-L33
from glfw.
Are you certain that Wayland is supported?
a window appears but it uses x11 and pitch black.
If you want another colour try setting glClearColor
and then use glClear
prior to drawing and swapping buffers..
from glfw.
That's my question.
Why is it not supported. The wayland support function returns false.
from glfw.
Sorry, I meant are you certain that Wayland is supported by your system?
from glfw.
Hi,
It looks like your GLFW library was compiled without Wayland support. The _GLFW_WAYLAND
option needs to be defined at compile time.
I also just noticed you are calling the init hint prior to calling init. This should be called prior to the init as follows:
if (glfwPlatformSupported(GLFW_PLATFORM_WAYLAND)) {
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_WAYLAND);
} else {
fmt::println("No Wayland Support");
}
if (!glfwInit())
return -1;
from glfw.
Sorry, I meant are you certain that Wayland is supported by your system?
Yes, am sure its supported i already use a Wayland wm.
Also i use vcpkg for the library management and here is the cmake command
cmake -DGLFW_USE_WAYLAND=ON ..
and for the hints i fixed it but it still doesn't work
from glfw.
Thank you it worked
from glfw.
Excellent, then I shall mark this as closed.
from glfw.
Related Issues (20)
- Full screen windows not showing on multiple monitors with different scales HOT 1
- CreateWindow specifying monitor broken on linux in 3.3.9 HOT 4
- How to use osmesa? HOT 4
- Linking issue MacOS
- Linking issue MacOS Sonoma 14.5 ("OBJC_CLASS$_CAMetalLayer"-Error) HOT 1
- Wayland window icon support
- How to dynamically specify OpenGL driver to use?
- MacOS keyboard input weirdness. HOT 1
- glfwSetWindowAttrib() for GLFW_MOUSE_PASSTHROUGH causes glfwWaitEvents() to return, as if there's a new event (WINDOWS 11) HOT 7
- _glfwGrabErrorHandlerX11 assert with no window manager running
- Can a user event transmission interface be implemented? HOT 1
- How to use osmesa? HOT 1
- Potential solution for not being able to set window pos on wayland
- how to use waland? HOT 1
- Retrieve not-rounded video mode refresh rate. HOT 1
- glfwInit() Failed, Error code is 0x10003 HOT 6
- MacOS/EGL: Rendering output too small (bottom quarter of window)
- undefined symbol for architecture: _glfwGetCocoaWindow HOT 1
- Outdated Documentation Regarding glad Usage
- Potential find_package issue with CMake installed binaries on Linux Mint HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from glfw.