From: Thomas Debesse Date: Mon, 20 May 2019 19:22:14 +0000 (+0200) Subject: readme: macOS instructions update X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=487eb76c5eec105772df6e670a4ff8f4fe2f4ea4;p=xonotic%2Fnetradiant.git 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 --- 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