Report [HowTo] Compile TrinityCore on Mac OS X using Homebrew in Guides Posted January 4, 2023 · Edited January 12, 2023 by WebberLai I'm success build on Mac OS 12.6 Monterey and old Mojave after install all brew packages one more thing to do with Monterey is I need copy ssl config cp /usr/local/opt/openssl/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/ when I run this command brew link zlib --force It shows these message , but seems no effect anything Warning: Refusing to link macOS-provided software: zlib For compilers to find zlib you may need to set: export LDFLAGS="-L/usr/local/opt/zlib/lib" export CPPFLAGS="-I/usr/local/opt/zlib/include" this is what I use for build settings , works for both OS cmake ../ -GXcode \ -DMYSQL_ADD_INCLUDE_PATH=/usr/local/include \ -DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib \ -DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include \ -DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib \ -DBOOST_INCLUDEDIR=/usr/local/include \ -DBOOST_LIBRARYDIR=/usr/local/lib \ -DOPENSSL_INCLUDE_DIR=/usr/local/opt/openssl@3/include \ -DOPENSSL_SSL_LIBRARIES=/usr/local/opt/openssl@3/lib/libssl.dylib \ -DOPENSSL_CRYPTO_LIBRARIES=/usr/local/opt/openssl@3/lib/libcrypto.dylib \ -DZMQ_LIBRARY=/usr/local/opt/zeromq/lib/libzmq.dylib \ -DZMQ_INCLUDE_DIR=/usr/local/opt/zeromq/include \ -DZLIB_ROOT=/usr/local/Cellar/zlib/1.2.13 \ -DACE_INCLUDE_DIR=/usr/local/opt/ace/include \ -DACE_LIBRARY=/usr/local/opt/ace/lib/libACE.dylib \ -DCMAKE_INSTALL_PREFIX=/Applications/Trinity \ -DWITH_WARNINGS=1 the key is change oepnssl to openssl@3 and Mojave require Xcode 11 , don't use Xcode 10
[HowTo] Compile TrinityCore on Mac OS X using Homebrew
in Guides
Posted · Edited by WebberLai
I'm success build on Mac OS 12.6 Monterey and old Mojave
after install all brew packages
one more thing to do with Monterey is I need copy ssl config
cp /usr/local/opt/openssl/lib/pkgconfig/*.pc /usr/local/lib/pkgconfig/
when I run this command
It shows these message , but seems no effect anything
Warning: Refusing to link macOS-provided software: zlib
For compilers to find zlib you may need to set:
export LDFLAGS="-L/usr/local/opt/zlib/lib"
export CPPFLAGS="-I/usr/local/opt/zlib/include"
this is what I use for build settings , works for both OS
the key is change oepnssl to openssl@3
and Mojave require Xcode 11 , don't use Xcode 10