From 22b3b7ecfb83e4becb0e72dd26b88fae8a8f7920 Mon Sep 17 00:00:00 2001 From: Avdhoot Jadhav <68023630+AvdhootJadhav@users.noreply.github.com> Date: Thu, 10 Oct 2024 21:12:30 +0530 Subject: [PATCH] Updated Working on GNU Linux (markdown) --- Working-on-GNU-Linux.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Working-on-GNU-Linux.md b/Working-on-GNU-Linux.md index abbcda5..694d834 100644 --- a/Working-on-GNU-Linux.md +++ b/Working-on-GNU-Linux.md @@ -19,6 +19,11 @@ You need to install some required libraries; **ALSA** for audio, **Mesa** for Op ##### Arch Linux sudo pacman -S alsa-lib mesa libx11 libxrandr libxi libxcursor libxinerama +##### Void Linux + sudo xbps-install alsa-lib-devel libglvnd-devel libX11-devel libXrandr-devel libXi-devel libXcursor-devel libXinerama-devel mesa MesaLib-devel + - ##### For intel drivers + sudo xbps-install mesa-dri mesa-intel-dri + ## Raylib-Quickstart, the simple solution to get started quickly. The quickstart is a cross platform template for all desktop platforms that will setup raylib automatically. @@ -221,6 +226,31 @@ Next all you need to do is either specify that install path in the makefile or s You can append this command to the end of your `~/.bashrc` or `~/.zshrc` or other user login script, to make the change permanent. If you do so you'll be able to compile right away after you relogin. If you don't want to relogin just run `source ` +#### For issues related like not able to link a library like libGL or libGLX in Void Linux, it's probably due to broken symlinks. + +The broken symlinks could be checked using below command: + +`sudo xbps-pkgdb -a` + +The above command will output something similar to below one: + +``` +ERROR: MesaLib-devel: broken symlink /usr/lib/libGLX_mesa.so (target: /usr/lib/libGLX_mesa.so.0) +ERROR: libglvnd-devel: broken symlink /usr/lib/libGL.so (target: /usr/lib/libGL.so.1) +ERROR: libglvnd-devel: broken symlink /usr/lib/libGLESv1_CM.so (target: /usr/lib/libGLESv1_CM.so.1) +ERROR: libglvnd-devel: broken symlink /usr/lib/libGLESv2.so (target: /usr/lib/libGLESv2.so.2) +ERROR: libglvnd-devel: broken symlink /usr/lib/libGLX.so (target: /usr/lib/libGLX.so.0) +ERROR: libglvnd-devel: broken symlink /usr/lib/libGLdispatch.so (target: /usr/lib/libGLdispatch.so.0) +ERROR: base-files: unexistent file /etc/issue +ERROR: base-files: conf files check FAILED. +``` + +This helps us to know which packages needs to be reinstalled to fix the broken symlink issus. From the above output, it's clear that `libglvnd-devel`, `MesaLib-devel` needs to be reinstalled. + +One can you below command to reinstall these packages: + +`sudo xbps-install -f libglvnd-devel MesaLib-devel` + # Simple setup using Premake The fastest way to get a game setup on with GCC, MinGW or Visual Studio is to use premake.