2016-07-16 17:10:00 -04:00
|
|
|
# Compilation on MacOS
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
## Qt Installation
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
Install Qt via: [Qt Download](http://www.qt.io/download/)
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
Use default options. And add Qt Script support.
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
Add to the PATH environment variable by editing your *~/.profile* file.
|
|
|
|
|
|
|
|
export PATH="/users/$USER/Qt/5.5/clang_64/bin:$PATH"
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2018-02-04 04:37:45 -05:00
|
|
|
Depends on which version of Qt you use.
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
## ***Choose if you use MacPort or HomeBrew***
|
|
|
|
|
|
|
|
### MacPort Installation
|
2016-10-04 17:27:40 -04:00
|
|
|
|
|
|
|
Install MacPort and XCode following this guide: [MacPort and XCode](http://guide.macports.org/#installing.xcode)
|
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
Start XCode to get it updated and to able C compiler to create executables.
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
#### Install libraries
|
2016-10-04 17:27:40 -04:00
|
|
|
|
|
|
|
$sudo port -v selfupdate
|
|
|
|
$sudo port install openssl
|
|
|
|
$sudo port install miniupnpc
|
2016-07-16 17:10:00 -04:00
|
|
|
$sudo port install libmicrohttpd
|
2016-10-04 17:27:40 -04:00
|
|
|
|
|
|
|
For VOIP Plugin:
|
|
|
|
|
|
|
|
$sudo port install speex-devel
|
|
|
|
$sudo port install opencv
|
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
Get Your OSX SDK if missing: [MacOSX-SDKs](https://github.com/phracker/MacOSX-SDKs)
|
|
|
|
|
|
|
|
### HOMEBREW Installation
|
|
|
|
|
|
|
|
Install HomeBrew following this guide: [HomeBrew](http://brew.sh/)
|
|
|
|
|
|
|
|
Install XCode command line developer tools:
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
$xcode-select --install
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
Start XCode to get it updated and to able C compiler to create executables.
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
#### Install libraries
|
|
|
|
|
|
|
|
$brew install openssl
|
|
|
|
$brew install miniupnpc
|
|
|
|
$brew install libmicrohttpd
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
If you have error in linking, run this:
|
|
|
|
|
|
|
|
$sudo chown -R $(whoami) /usr/local/lib/pkgconfig
|
|
|
|
|
|
|
|
For VOIP Plugin:
|
2016-10-04 17:27:40 -04:00
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
$brew install speex
|
2017-01-04 15:13:45 -05:00
|
|
|
$brew install speexdsp
|
2016-07-16 17:10:00 -04:00
|
|
|
$brew install homebrew/science/opencv
|
|
|
|
$brew install ffmpeg
|
|
|
|
|
|
|
|
Get Your OSX SDK if missing: [MacOSX-SDKs](https://github.com/phracker/MacOSX-SDKs)
|
|
|
|
|
|
|
|
## Last Settings
|
|
|
|
|
|
|
|
In QtCreator Option Git select "Pull" with "Rebase"
|
|
|
|
|
|
|
|
## Compil missing libraries
|
|
|
|
### SQLCipher
|
2016-10-04 17:27:40 -04:00
|
|
|
|
|
|
|
cd <your development directory>
|
|
|
|
git clone https://github.com/sqlcipher/sqlcipher.git
|
|
|
|
cd sqlcipher
|
2016-07-16 17:10:00 -04:00
|
|
|
./configure --disable-shared --disable-tcl --enable-static --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC -I/opt/local/include" LDFLAGS="-lcrypto"
|
2016-10-04 17:27:40 -04:00
|
|
|
make
|
|
|
|
sudo make install
|
|
|
|
|
|
|
|
NOTE, might be necessary to *chmod 000 /usr/local/ssl* temporarily during *./configure* if
|
2016-07-16 17:10:00 -04:00
|
|
|
homebrew uses newer, non-stock ssl dependencies found there. Configure might get confused.
|
2016-10-04 17:27:40 -04:00
|
|
|
|
|
|
|
You can now compile RS into Qt Creator or with terminal
|
|
|
|
|
|
|
|
cd <your development directory>
|
|
|
|
git clone https://github.com/RetroShare/RetroShare.git retroshare
|
|
|
|
cd retroshare
|
|
|
|
qmake; make
|
|
|
|
|
2016-07-16 17:10:00 -04:00
|
|
|
You can change Target and SDK in *./retroshare.pri:82* changing value of QMAKE_MACOSX_DEPLOYMENT_TARGET and QMAKE_MAC_SDK
|
|
|
|
|
2017-07-17 04:44:27 -04:00
|
|
|
You can find compiled application on *./retroshare/retroshare-gui/src/retroshare.app*
|