From bbfa4ec21f5b3e76b94f2e4c0cb32e682def26c7 Mon Sep 17 00:00:00 2001 From: jaxl Date: Wed, 22 Jul 2020 14:52:53 +0800 Subject: [PATCH] Update AMDVLK README.md: Use cmake instead of cmake3 on RHEL8 --- README.md | 42 +++++------------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/README.md b/README.md index 33045f8..39c9c81 100644 --- a/README.md +++ b/README.md @@ -139,8 +139,7 @@ repo sync > **Note:** Source code in dev branch can be gotten by using "-b dev" in the "repo init" command -### 64-bit Build -#### Ubuntu +### Build Driver (64-bit, Release) ``` cd /drivers/xgl @@ -148,45 +147,14 @@ cmake -H. -Bbuilds/Release64 cd builds/Release64 -make -j$(nproc) -``` - -#### RedHat -``` -cd /drivers/xgl - -cmake3 -H. -Bbuilds/Release64 - -cd builds/Release64 - -make -j$(nproc) -``` - -### 32-bit Build -#### Ubuntu -``` -cd /drivers/xgl - -cmake -H. -Bbuilds/Release -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 - -cd builds/Release - -make -j$(nproc) -``` -#### RedHat -``` -cd /drivers/xgl - -cmake3 -H. -Bbuilds/Release -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32 - -cd builds/Release - make -j$(nproc) ``` > **Note:** +* For RedHat 7.x, please use cmake3(>= 3.13.4) instead of cmake. +* For debug build, use `-DCMAKE_BUILD_TYPE=Debug`. +* For 32-bit build, use `-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32`. +* To enable Wayland support, use `-DBUILD_WAYLAND_SUPPORT=ON`. * If the build runs into errors like "collect2: fatal error: ld terminated with signal 9 [Killed]" due to out of memory, you could try with reducing the number of threads in "make" command. -* Debug build can be done by using `-DCMAKE_BUILD_TYPE=Debug`. -* To enable Wayland support, you need to build the driver by using `-DBUILD_WAYLAND_SUPPORT=ON`. ## Installation Instructions ### Install Vulkan SDK