mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-01 19:59:17 -05:00
Updated Working on GNU Linux (markdown)
@ -1,28 +1,10 @@
|
|||||||
## Raylib-Quickstart, the simple solution to get started quickly.
|
#Dependencies
|
||||||
The quickstart is a cross platform template for all desktop platforms that will setup raylib automatically.
|
Raylib as several dependencies that you need in order to work with it.
|
||||||
|
|
||||||
https://github.com/raylib-extras/raylib-quickstart
|
|
||||||
|
|
||||||
It works with many compilers on windows, linux and Mac OS. Works with makefiles, visual studio, and VSCode.
|
|
||||||
|
|
||||||
Simply follow the instructions in that link and you will be done, you do not need to use the rest of this document.
|
|
||||||
|
|
||||||
|
|
||||||
## Building Library
|
|
||||||
|
|
||||||
To build your raylib game for GNU/Linux you need to download raylib git repository. raylib already comes with ready-to-use makefiles and CMake system to compile source code, examples and templates.
|
|
||||||
|
|
||||||
This guide is for all GNU/Linux distros, just note that APT is used as package manager for Debian based distros.
|
|
||||||
|
|
||||||
#### Install required tools
|
#### Install required tools
|
||||||
You need a **GCC** (or alternative C99 compiler), **make** and **git** (to download raylib repo).
|
You need a **GCC** (or alternative C99 compiler), **make** and **git** (to download raylib repo).
|
||||||
|
|
||||||
sudo apt install build-essential git
|
sudo apt install build-essential git
|
||||||
|
|
||||||
Optionally, you could use **CMake** building system.
|
|
||||||
|
|
||||||
sudo apt install cmake
|
|
||||||
|
|
||||||
#### Install required libraries
|
#### Install required libraries
|
||||||
You need to install some required libraries; **ALSA** for audio, **Mesa** for OpenGL accelerated graphics and **X11** for windowing system.
|
You need to install some required libraries; **ALSA** for audio, **Mesa** for OpenGL accelerated graphics and **X11** for windowing system.
|
||||||
|
|
||||||
@ -35,6 +17,24 @@ You need to install some required libraries; **ALSA** for audio, **Mesa** for Op
|
|||||||
##### Arch Linux
|
##### Arch Linux
|
||||||
sudo pacman -S alsa-lib mesa libx11 libxrandr libxi libxcursor libxinerama
|
sudo pacman -S alsa-lib mesa libx11 libxrandr libxi libxcursor libxinerama
|
||||||
|
|
||||||
|
## 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.
|
||||||
|
|
||||||
|
https://github.com/raylib-extras/raylib-quickstart
|
||||||
|
|
||||||
|
It works with many compilers on windows, linux and Mac OS. Works with makefiles, visual studio, and VSCode.
|
||||||
|
|
||||||
|
Simply follow the instructions in that link and you will be done, you do not need to use the rest of this document.
|
||||||
|
|
||||||
|
|
||||||
|
## Building Library Manually
|
||||||
|
|
||||||
|
To build your raylib game for GNU/Linux you need to download raylib git repository. raylib already comes with ready-to-use makefiles and CMake system to compile source code, examples and templates.
|
||||||
|
|
||||||
|
This guide is for all GNU/Linux distros, just note that APT is used as package manager for Debian based distros.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#### Wayland
|
#### Wayland
|
||||||
|
|
||||||
> WARNING: Wayland building requires manual generation of some wayland specific files. GLFW support for Wayland is "experimental and incomplete". For more info check issue [#2666](https://github.com/raysan5/raylib/issues/2666)
|
> WARNING: Wayland building requires manual generation of some wayland specific files. GLFW support for Wayland is "experimental and incomplete". For more info check issue [#2666](https://github.com/raysan5/raylib/issues/2666)
|
||||||
@ -74,6 +74,8 @@ _NOTE:_ raylib is configurable and can be be built in a variety of ways. Please
|
|||||||
|
|
||||||
### Build raylib using CMake
|
### Build raylib using CMake
|
||||||
|
|
||||||
|
sudo apt install cmake
|
||||||
|
|
||||||
Building with cmake on Linux is easy, just use the following:
|
Building with cmake on Linux is easy, just use the following:
|
||||||
```
|
```
|
||||||
git clone https://github.com/raysan5/raylib.git raylib
|
git clone https://github.com/raysan5/raylib.git raylib
|
||||||
|
|||||||
Reference in New Issue
Block a user