From e5ec14ad948ace9d8ca081771b9acb4248e8fb00 Mon Sep 17 00:00:00 2001 From: Chris Franklin Date: Fri, 28 Jun 2024 03:25:38 -0500 Subject: [PATCH 1/3] Added a dependency to the readme for Linux. Libclang-dev is required to compile Raylib-rs, at least from my usage of it. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63c0a566..fc14add7 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ fn main() { ### If building for Wayland on Linux 3. Install these packages: -`libglfw3-dev wayland-devel libxkbcommon-devel wayland-protocols wayland-protocols-devel libecm-dev` +`libglfw3-dev wayland-devel libxkbcommon-devel wayland-protocols wayland-protocols-devel libecm-dev libclang-dev` ###### Note that this may not be a comprehensive list, please add details for your distribution or expand on these packages if you believe this to be incomplete. 4. Enable wayland by adding `features=["wayland"]` to your dependency definition @@ -129,7 +129,7 @@ Firstly, a custom build container must be defined. The following `Dockerfile` is FROM rustembedded/cross:x86_64-unknown-linux-gnu-0.2.1 RUN apt-get update -y -RUN apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev -y +RUN apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libclang-dev -y ``` With the image defined, build it locally with: From 9b68e4ce7e370697a416d1d6a6b9073c51afeea5 Mon Sep 17 00:00:00 2001 From: Chris Franklin Date: Fri, 28 Jun 2024 03:37:46 -0500 Subject: [PATCH 2/3] Revert "Added a dependency to the readme for Linux. Libclang-dev is required to compile Raylib-rs, at least from my usage of it." This reverts commit e5ec14ad948ace9d8ca081771b9acb4248e8fb00. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc14add7..63c0a566 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ fn main() { ### If building for Wayland on Linux 3. Install these packages: -`libglfw3-dev wayland-devel libxkbcommon-devel wayland-protocols wayland-protocols-devel libecm-dev libclang-dev` +`libglfw3-dev wayland-devel libxkbcommon-devel wayland-protocols wayland-protocols-devel libecm-dev` ###### Note that this may not be a comprehensive list, please add details for your distribution or expand on these packages if you believe this to be incomplete. 4. Enable wayland by adding `features=["wayland"]` to your dependency definition @@ -129,7 +129,7 @@ Firstly, a custom build container must be defined. The following `Dockerfile` is FROM rustembedded/cross:x86_64-unknown-linux-gnu-0.2.1 RUN apt-get update -y -RUN apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libclang-dev -y +RUN apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev -y ``` With the image defined, build it locally with: From df7e0e126e1464f44c07b47e9b9c0f31f1af5a80 Mon Sep 17 00:00:00 2001 From: Chris Franklin Date: Fri, 28 Jun 2024 05:07:56 -0500 Subject: [PATCH 3/3] Added a dependency for Linux builds in the readme. Libclang-dev is needed to build raylib-rs --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 63c0a566..fc14add7 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ fn main() { ### If building for Wayland on Linux 3. Install these packages: -`libglfw3-dev wayland-devel libxkbcommon-devel wayland-protocols wayland-protocols-devel libecm-dev` +`libglfw3-dev wayland-devel libxkbcommon-devel wayland-protocols wayland-protocols-devel libecm-dev libclang-dev` ###### Note that this may not be a comprehensive list, please add details for your distribution or expand on these packages if you believe this to be incomplete. 4. Enable wayland by adding `features=["wayland"]` to your dependency definition @@ -129,7 +129,7 @@ Firstly, a custom build container must be defined. The following `Dockerfile` is FROM rustembedded/cross:x86_64-unknown-linux-gnu-0.2.1 RUN apt-get update -y -RUN apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev -y +RUN apt-get install libasound2-dev mesa-common-dev libx11-dev libxrandr-dev libxi-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libclang-dev -y ``` With the image defined, build it locally with: