3 ms·
There's also a pure X11 version, which only pulls in what X requires: $ make gcc main.c -std=c89 -pedantic -O2 -D_POSIX_C_SOURCE=200809L -o bin/zahnrad -lX
by i336_ 11y ago
There's also a pure X11 version, which only pulls in what X requires:
$ make
gcc main.c -std=c89 -pedantic -O2 -D_POSIX_C_SOURCE=200809L -o bin/zahnrad -lX11 -lm
$ ldd bin/zahnrad
linux-vdso.so.1 (0x00007ffe32df9000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f8468746000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f8468441000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f84680a0000)
libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f8467e7d000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f8467c79000)
/lib64/ld-linux-x86-64.so.2 (0x00007f8468a88000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f8467a75000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f846786f000)
- digi_owl 11y agoOdd seeing that in this day and age. I though everyone was hot and bothered about Wayland...
- generic_user 11y agoCross platform is a key feature. Thats why glfw is so nice. Unless you want to write the grungy windows bits for all your platforms I don't see any problem with useing glfw. Its a solid library.
- flohofwoe 11y agoGLFW is great, but it's limited to GL or Vulkan as 3D backend. There's a context-less mode now (created for Vulkan I think), but I haven't seen GLFW used together with D3D or Metal yet. It's fairly easy to rip the relevant window- and input-handling code out though.