mirror of
https://github.com/raysan5/raylib.git
synced 2026-02-06 22:29:17 -05:00
Make the instructions for building a project clearer
@ -165,11 +165,6 @@ Continue with:
|
|||||||
#> dnf install raylib
|
#> dnf install raylib
|
||||||
```
|
```
|
||||||
|
|
||||||
### The simplest possible build command
|
|
||||||
```
|
|
||||||
cc main.c -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
|
|
||||||
```
|
|
||||||
|
|
||||||
### Arch Linux
|
### Arch Linux
|
||||||
The official Arch Repository contains the `raylib` package. Install via:
|
The official Arch Repository contains the `raylib` package. Install via:
|
||||||
|
|
||||||
@ -177,6 +172,13 @@ The official Arch Repository contains the `raylib` package. Install via:
|
|||||||
pacman -S raylib
|
pacman -S raylib
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## The simplest possible build command
|
||||||
|
After installing raylib from source or package manager, you can build a project with this command (modify as necessary):
|
||||||
|
```
|
||||||
|
cc game.c -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
|
||||||
|
```
|
||||||
|
Creating a Makefile will help with building as the project grows.
|
||||||
|
|
||||||
## Common issues
|
## Common issues
|
||||||
|
|
||||||
#### I get an error: `error while loading shared libraries: libraylib.so.351: cannot open shared object file: No such file or directory` after rebooting. Right after building the library it worked fine.
|
#### I get an error: `error while loading shared libraries: libraylib.so.351: cannot open shared object file: No such file or directory` after rebooting. Right after building the library it worked fine.
|
||||||
|
|||||||
Reference in New Issue
Block a user