Skip to content
Jaqueeee edited this page Dec 18, 2016 · 2 revisions

BUILD Boost

Download boost 1.60 http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.zip

WIN32

in normal cmd shell

cd boost_1_60_0\tools\build\src\engine PATH c:\msys32\mingw32\bin;%PATH% .\build.bat gcc copy bin.ntx86*.exe ........

WIN64

in normal cmd shell

cd boost_1_60_0\tools\build\src\engine path C:\msys64\mingw64\bin;%PATH% .\build.bat gcc ... copy bin.ntx86_64*.exe ........

win32 & win64

back to msys2 boost folder

cat < project-config.jam import option ; using gcc ; option.set keep-going : false ; EOF

WIN64

./b2 --layout=tagged --build-type=minimal --cxxflags=-mno-avx --prefix=/mingw64/boost runtime-link=static install --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --with-locale

WIN32

./b2 --layout=tagged --build-type=minimal --cxxflags=-mno-avx --prefix=/mingw32/boost define=BOOST_USE_WINAPI_VERSION=0x0501 runtime-link=static install --with-chrono --with-date_time --with-filesystem --with-program_options --with-regex --with-serialization --with-system --with-thread --with-locale

BUILD Qt from source

WINDOWS

Download & install direct X SDK

https://www.microsoft.com/en-us/download/details.aspx?id=6812

start/restart msys2 shell to set right env variables

in msys shell

download deps (was required for win32 at least)

pacman -S bison

Download Qt sources

wget http://download.qt.io/official_releases/qt/5.7/5.7.0/single/qt-everywhere-opensource-src-5.7.0.zip

Extract

on win 64 i had a conflict between Angle files in mingw and qt sources

maybe because i also had msys2 version of qt installed.

edit qtbase/src/3rdparty/angle/src/libANGLE/renderer/d3d/d3d11/Query11.cpp

add ifndef statement on line 24-27

#ifndef D3D11_QUERY_DATA_TIMESTAMP_DISJOINT typedef struct D3D11_QUERY_DATA_TIMESTAMP_DISJOINT ... #endif

in qtbase/src/angle/src/libGLESv2/libGLESv2.pro

add extra / to all flags on the row that contains (row 592):

/nologo /E /T /Fh (i.e /nologo /E /T /Fh -> //nologo //E //T //Fh)

Build Qt

./configure.bat -opensource -nomake examples -nomake tests -opengl dynamic -no-avx -debug-and-release -nomake tools -make libs -qt-freetype -qt-libpng -qt-libjpeg

build qt and submodules

make && make install

for some reason qtquick didnt get built every time for me. if so, build it again:

cd qtquickdialogs make && make install

prepend to path

export PATH=/C/Qt/qt-everywhere-opensource-src-5.7.0/qtbase/bin:$PATH

Build monero-core

Make sure you have the correct path to boost (BOOST_ROOT in get_libwallet_api.sh)

./build.sh

deploy

cd build make deploy