mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 12:09:57 +00:00
Adds openssl and boost lib includes for OSX build
This adds the paths to the openssl and boost libraries (installed with brew) for the MacOS X build. Furthermore the MacOS X build instructions in the README.md has been improved (formatting).
This commit is contained in:
parent
032e721532
commit
46d87f9c91
2 changed files with 42 additions and 36 deletions
68
README.md
68
README.md
|
@ -83,7 +83,7 @@ TODO
|
||||||
4. Use the script to compile the Monero libs necessary to run the GUI.
|
4. Use the script to compile the Monero libs necessary to run the GUI.
|
||||||
|
|
||||||
`./get_libwallet_api.sh`
|
`./get_libwallet_api.sh`
|
||||||
|
|
||||||
|
|
||||||
5. Install the GUI dependencies.
|
5. Install the GUI dependencies.
|
||||||
|
|
||||||
|
@ -92,7 +92,7 @@ TODO
|
||||||
`sudo apt-get install qtbase5-dev qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-xmllistmodel qttools5-dev-tools qml-module-qtquick-dialogs`
|
`sudo apt-get install qtbase5-dev qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-xmllistmodel qttools5-dev-tools qml-module-qtquick-dialogs`
|
||||||
|
|
||||||
- For Ubuntu 16.04 x64
|
- For Ubuntu 16.04 x64
|
||||||
|
|
||||||
`sudo apt-get install qtbase5-dev qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-xmllistmodel qttools5-dev-tools qml-module-qtquick-dialogs qml-module-qt-labs-settings libqt5qml-graphicaleffects`
|
`sudo apt-get install qtbase5-dev qt5-default qtdeclarative5-dev qml-module-qtquick-controls qml-module-qtquick-xmllistmodel qttools5-dev-tools qml-module-qtquick-dialogs qml-module-qt-labs-settings libqt5qml-graphicaleffects`
|
||||||
|
|
||||||
- For Linux Mint 18 "Sarah" - Cinnamon (64-bit)
|
- For Linux Mint 18 "Sarah" - Cinnamon (64-bit)
|
||||||
|
@ -115,32 +115,39 @@ TODO
|
||||||
|
|
||||||
### On OS X:
|
### On OS X:
|
||||||
|
|
||||||
1. install Xcode from AppStore
|
1. Install Xcode from AppStore
|
||||||
2. install [homebrew] (http://brew.sh/)
|
2. Install [homebrew](http://brew.sh/)
|
||||||
3. install [bitmonero] (https://github.com/monero-project/bitmonero) dependencies:
|
3. Install [monero](https://github.com/monero-project/monero) dependencies:
|
||||||
```brew install boost --c++11```
|
|
||||||
|
|
||||||
```brew install pkgconfig```
|
`brew install boost --c++11`
|
||||||
|
|
||||||
```brew install cmake```
|
`brew install openssl` - to install openssl headers
|
||||||
|
|
||||||
4. install latest Qt using official installer from [qt.io] (https://www.qt.io/download-open-source/), homebrew version might be outdated
|
`brew install pkgconfig`
|
||||||
|
|
||||||
|
`brew install cmake`
|
||||||
|
|
||||||
|
4. Install latest Qt using official installer from [qt.io](https://www.qt.io/download-open-source/) (homebrew version might be outdated).
|
||||||
5. Add Qt bin dir to your path:
|
5. Add Qt bin dir to your path:
|
||||||
|
|
||||||
```export PATH=$PATH:$HOME/Qt5/5.7/clang_64/bin```
|
`export PATH=$PATH:$HOME/Qt/5.7/clang_64/bin`
|
||||||
|
|
||||||
where ```Qt5``` is the folder you selected to install Qt
|
where ```Qt``` is the folder you selected to install Qt.
|
||||||
6. Clone repository and build:
|
|
||||||
|
6. Grab an up-to-date copy of the monero-core repository.
|
||||||
```
|
|
||||||
git clone https://github.com/monero-project/monero-core.git
|
`git clone https://github.com/monero-project/monero-core.git`
|
||||||
|
|
||||||
cd monero-core
|
7. Go into the repository.
|
||||||
|
|
||||||
build.sh
|
`cd monero-core`
|
||||||
|
|
||||||
```
|
8. Start the build:
|
||||||
|
|
||||||
|
`build.sh`
|
||||||
|
|
||||||
|
The executable can be found in the `build/release/bin` folder.
|
||||||
|
|
||||||
### On Windows:
|
### On Windows:
|
||||||
|
|
||||||
1. Install [msys2](http://msys2.github.io/), follow the instructions on that page on how to update packages to the latest versions
|
1. Install [msys2](http://msys2.github.io/), follow the instructions on that page on how to update packages to the latest versions
|
||||||
|
@ -162,7 +169,7 @@ TODO
|
||||||
5. Open ```mingw``` shell:
|
5. Open ```mingw``` shell:
|
||||||
|
|
||||||
```%MSYS_ROOT%\msys2_shell.cmd -mingw32```
|
```%MSYS_ROOT%\msys2_shell.cmd -mingw32```
|
||||||
|
|
||||||
Where ```%MSYS_ROOT%``` will be ```c:\msys32``` if your host OS is x86-based or ```c:\msys64``` if your host OS
|
Where ```%MSYS_ROOT%``` will be ```c:\msys32``` if your host OS is x86-based or ```c:\msys64``` if your host OS
|
||||||
is x64-based
|
is x64-based
|
||||||
|
|
||||||
|
@ -180,8 +187,8 @@ TODO
|
||||||
|
|
||||||
8. Build application:
|
8. Build application:
|
||||||
|
|
||||||
- open ```Qt environment``` shell (Qt 5.7 for Desktop (MinGW 5.3.0 32 bit) is shortcut name)
|
- open ```Qt environment``` shell (Qt 5.7 for Desktop (MinGW 5.3.0 32 bit) is shortcut name)
|
||||||
- navigate to the project dir and build the app:
|
- navigate to the project dir and build the app:
|
||||||
```
|
```
|
||||||
cd %MSYS_ROOT%\%USERNAME%\monero-core
|
cd %MSYS_ROOT%\%USERNAME%\monero-core
|
||||||
mkdir build
|
mkdir build
|
||||||
|
@ -191,6 +198,3 @@ TODO
|
||||||
mingw32-make deploy
|
mingw32-make deploy
|
||||||
```
|
```
|
||||||
- grab result binary and dependencies in ```.\release\bin```
|
- grab result binary and dependencies in ```.\release\bin```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ LIBS += -L$$WALLET_ROOT/lib \
|
||||||
# currently we only support x86 build as qt.io only provides prebuilt qt for x86 mingw
|
# currently we only support x86 build as qt.io only provides prebuilt qt for x86 mingw
|
||||||
|
|
||||||
win32 {
|
win32 {
|
||||||
|
|
||||||
contains(QMAKE_HOST.arch, x86_64) {
|
contains(QMAKE_HOST.arch, x86_64) {
|
||||||
message("Host is 64bit")
|
message("Host is 64bit")
|
||||||
MSYS_PATH=c:/msys64/mingw32
|
MSYS_PATH=c:/msys64/mingw32
|
||||||
|
@ -78,7 +78,7 @@ win32 {
|
||||||
}
|
}
|
||||||
|
|
||||||
LIBS+=-L$$MSYS_PATH/lib
|
LIBS+=-L$$MSYS_PATH/lib
|
||||||
|
|
||||||
LIBS+= \
|
LIBS+= \
|
||||||
-Wl,-Bstatic \
|
-Wl,-Bstatic \
|
||||||
-lboost_serialization-mt \
|
-lboost_serialization-mt \
|
||||||
|
@ -130,8 +130,10 @@ linux {
|
||||||
|
|
||||||
macx {
|
macx {
|
||||||
LIBS+= \
|
LIBS+= \
|
||||||
-L/usr/local/lib \
|
-L/usr/local/lib \
|
||||||
-lboost_serialization \
|
-L/usr/local/opt/openssl/lib \
|
||||||
|
-L/usr/local/opt/boost/lib \
|
||||||
|
-lboost_serialization \
|
||||||
-lboost_thread-mt \
|
-lboost_thread-mt \
|
||||||
-lboost_system \
|
-lboost_system \
|
||||||
-lboost_date_time \
|
-lboost_date_time \
|
||||||
|
|
Loading…
Reference in a new issue