Update MacOS_X_InstallGuide.md

This commit is contained in:
defnax 2021-03-26 12:06:10 +01:00
parent 505a963212
commit a783ffac75

View file

@ -8,7 +8,7 @@ Use default options. And add Qt Script support.
Add to the PATH environment variable by editing your *~/.profile* file. Add to the PATH environment variable by editing your *~/.profile* file.
export PATH="/users/$USER/Qt/5.5/clang_64/bin:$PATH" export PATH="/users/$USER/Qt/5.14.1/clang_64/bin:$PATH."
Depends on which version of Qt you use. Depends on which version of Qt you use.
@ -49,6 +49,8 @@ Start XCode to get it updated and to able C compiler to create executables.
$ brew install openssl $ brew install openssl
$ brew install miniupnpc $ brew install miniupnpc
$ brew install libmicrohttpd $ brew install libmicrohttpd
$ brew install rapidjson
$ brew install sqlcipher
If you have error in linking, run this: If you have error in linking, run this:
@ -65,20 +67,43 @@ Get Your OSX SDK if missing: [MacOSX-SDKs](https://github.com/phracker/MacOSX-SD
## Last Settings ## Last Settings
In QtCreator Option Git select "Pull" with "Rebase" In QtCreator Option Git add his path:
## Compil missing libraries /usr/local/bin
### SQLCipher
cd <your development directory> select "Pull" with "Rebase"
git clone https://github.com/sqlcipher/sqlcipher.git
cd sqlcipher ## Set your Mac OS SDK version
./configure --disable-shared --disable-tcl --enable-static --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC -I/opt/local/include" LDFLAGS="-lcrypto"
make Edit RetroShare.pro
sudo make install
CONFIG += c++14 rs_macos11.1
and then retroshare.pri
macx:CONFIG *= rs_macos11.1
rs_macos10.8:CONFIG -= rs_macos11.1
rs_macos10.9:CONFIG -= rs_macos11.1
rs_macos10.10:CONFIG -= rs_macos11.1
rs_macos10.12:CONFIG -= rs_macos11.1
rs_macos10.13:CONFIG -= rs_macos11.1
rs_macos10.14:CONFIG -= rs_macos11.1
rs_macos10.15:CONFIG -= rs_macos11.1
## Link Include & Libraries
Edit your retroshare.pri and add to macx-* section
INCLUDEPATH += "/usr/local/opt/openssl/include"
QMAKE_LIBDIR += "/usr/local/opt/openssl/lib"
QMAKE_LIBDIR += "/usr/local/opt/sqlcipher/lib"
QMAKE_LIBDIR += "/usr/local/opt/miniupnpc/lib"
alternative via Terminal
$ qmake INCLUDEPATH+="/usr/local/opt/openssl/include" QMAKE_LIBDIR+="/usr/local/opt/openssl/lib" QMAKE_LIBDIR+="/usr/local/opt/sqlcipher/lib" QMAKE_LIBDIR+="/usr/local/opt/miniupnpc/lib"
NOTE, might be necessary to *chmod 000 /usr/local/ssl* temporarily during *./configure* if
homebrew uses newer, non-stock ssl dependencies found there. Configure might get confused.
You can now compile RS into Qt Creator or with terminal You can now compile RS into Qt Creator or with terminal
@ -89,4 +114,4 @@ You can now compile RS into Qt Creator or with terminal
You can change Target and SDK in *./retroshare.pri:82* changing value of QMAKE_MACOSX_DEPLOYMENT_TARGET and QMAKE_MAC_SDK You can change Target and SDK in *./retroshare.pri:82* changing value of QMAKE_MACOSX_DEPLOYMENT_TARGET and QMAKE_MAC_SDK
You can find compiled application on *./retroshare/retroshare-gui/src/retroshare.app* You can find the compiled application at *./retroshare/retroshare-gui/src/retroshare.app*