67 lines
1.4 KiB
Markdown
67 lines
1.4 KiB
Markdown
# Qt Desktop GUI build instructions
|
|
|
|
## Under Windows
|
|
|
|
### With Qt Creator
|
|
|
|
TBD
|
|
|
|
* Run Git Bash and then:
|
|
|
|
```
|
|
mkdir git
|
|
cd git
|
|
git clone https://github.com/PurpleI2P/i2pd.git
|
|
cd i2pd
|
|
git checkout openssl
|
|
```
|
|
|
|
* Download [qt-opensource-windows-x86-5.10.1.exe](http://download.qt.io/official_releases/qt/5.10/5.10.1/qt-opensource-windows-x86-5.10.1.exe)
|
|
and install
|
|
|
|
TBD
|
|
|
|
### Without Qt Creator
|
|
|
|
All commands should be run under MSYS2 mingw32.
|
|
|
|
```
|
|
pacman -Suy git make tar mingw-w64-i686-gcc mingw-w64-i686-boost mingw-w64-i686-libpng mingw-w64-i686-openssl mingw-w64-i686-zlib
|
|
pacman -Suy mingw-w64-i686-qt5-static
|
|
pacman -Suy openssl-devel mingw-w64-i686-miniupnpc
|
|
mkdir -p /c/dev/
|
|
cd /c/dev/
|
|
git clone https://github.com/PurpleI2P/i2pd.git
|
|
cd i2pd
|
|
git checkout openssl
|
|
export MINGW='mingw32'
|
|
export PATH=/$MINGW/bin:/usr/bin:/mingw32/qt5-static/bin
|
|
cd qt/i2pd_qt
|
|
qmake
|
|
make USE_UPNP=yes
|
|
```
|
|
|
|
#### Caveats
|
|
|
|
It is important to restrict PATH as described above. If you have Strawberry Perl and/or Mercurial installed, it will pick up gcc & openssl from the wrong places.
|
|
|
|
TBD
|
|
|
|
## Under Ubuntu
|
|
|
|
### With Qt Creator
|
|
|
|
TBD
|
|
|
|
### Without Qt Creator
|
|
|
|
```
|
|
sudo apt-get install build-essential g++ make libcrypto++-dev libssl-dev libboost-all-dev libminiupnpc-dev libwebsocketpp-dev qt5-default libqt5gui5 git
|
|
mkdir git
|
|
cd git
|
|
git clone https://github.com/PurpleI2P/i2pd.git
|
|
cd i2pd/qt/i2pd_qt
|
|
qmake
|
|
make USE_UPNP=yes
|
|
```
|