]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
readme: macOS instructions update 125/head
authorThomas Debesse <dev@illwieckz.net>
Mon, 20 May 2019 19:22:14 +0000 (21:22 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sat, 1 Jun 2019 15:51:39 +0000 (17:51 +0200)
- 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

index e38b9185de1fa352fa6ed802abcb18e3f2b7e1ff..6270506950b4f123153f45e6ea08ed6ae40fa9c4 100644 (file)
--- 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