Open mikeabrantes opened 1 year ago
I stumbled upon this problem as well. It seems lua was not installed. The docs suggest using brew but the lua formulae is disabled.
❯ brew install lua@5.1 Error: lua@5.1 has been disabled because it is deprecated upstream!
We'd need to use a tap or install lua@5.1 by ourselves.
You can brew install luajit
instead and configure the project with -DLUAJIT=ON
flag when running CMake.
With @diath help and after brew install mesa
now I'm stuck at
[100%] Linking CXX executable otclient ld: warning: Linking with PIE, -image_base will be ignored ld: warning: ignoring duplicate libraries: '-lSystem' ld: warning: search path '/usr/X11R6/lib' not found ld: library 'GL' not found clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: [otclient] Error 1 make[1]: [CMakeFiles/otclient.dir/all] Error 2 make: *** [all] Error 2
I'm using this to run the build
#!/bin/bash
PREFIX=$(brew --prefix)
cmake \
-DUSE_STATIC_LIBS=OFF \
-DLUAJIT=ON \
-DBoost_INCLUDE_DIR=$PREFIX/Cellar/boost@1.76/1.76.0_5/include/ \
-DOPENSSL_INCLUDE_DIR=$PREFIX/Cellar/openssl@3/3.3.0/include/ \
-DGMP_INCLUDE_DIR=$PREFIX/Cellar/gmp/6.3.0/include \
-DGMP_LIBRARY=$PREFIX/Cellar/gmp/6.3.0/lib/libgmp.dylib \
../
make -j$(( $(sysctl -n hw.ncpu) - 1 ))
I'm using Sonoma btw.
otclient doesn't support MacOS natively, you need XQuartz (X11 server for MacOS) installed (brew install xquartz
). I'm not sure about GL though, I don't use a Mac.
This happen when executing the: "make -j$(sysctl -n hw.ncpu)"
macOS Monterey (12.4)