From 487eb76c5eec105772df6e670a4ff8f4fe2f4ea4 Mon Sep 17 00:00:00 2001 From: Thomas Debesse Date: Mon, 20 May 2019 21:22:14 +0200 Subject: [PATCH] readme: macOS instructions update - tell macOS users to install coreutils, as grealpath is required by gamepack-manager - tell them to use GCC since of clang fails to build netradiant --- README.md | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e38b9185..62705069 100644 --- a/README.md +++ b/README.md @@ -50,12 +50,10 @@ pacman -S --needed base-devel mingw-w64-i686-{toolchain,cmake,make,gtk2,gtkglext pacman -S --needed base-devel mingw-w64-x86_64-{toolchain,cmake,make,gtk2,gtkglext,libwebp} ``` -## OS X: +## macOS: ``` -brew install gtkglext -brew install webp -brew install Caskroom/cask/xquartz +brew install gcc cmake Caskroom/cask/xquartz gtkglext pkgconfig minizip webp coreutils gnu-sed brew link --force gettext ``` @@ -86,6 +84,12 @@ cmake -G "Unix Makefiles" -H. -Bbuild && cmake --build build -- -j$(nproc) cmake -G "Unix Makefiles" -H. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build -- -j$(nproc) ``` +On Mac you have to add this to the first cmake call: + +``` +-DCMAKE_C_COMPILER=/usr/local/bin/gcc-9 -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-9 -DOPENGL_INCLUDE_DIR=/opt/X11/include -DOPENGL_gl_LIBRARY=/opt/X11/lib/libGL.dylib +``` + ## Build and installation details ### Compilation details -- 2.39.2