Commit 05bf041d authored by Stefan Pfeifer's avatar Stefan Pfeifer

Add deployment files for Linux

parent d7a751be
# Hidden files
.*
!/.gitignore
# C++ objects and libs
*.slo
......
1. Install the following libraries (source: wolhsoft.ru/pgewiki/Building_static_Qt_5)
* sudo apt-get install "^libxcb.*" libx11-dev libx11-xcb-dev libxcursor-dev libxrender-dev libxrandr-dev libxext-dev libxi-dev libxss-dev libxt-dev libxv-dev libxxf86vm-dev libxinerama-dev libxkbcommon-dev libfontconfig1-dev libasound2-dev libpulse-dev libdbus-1-dev udev mtdev-tools webp libudev-dev libglm-dev libwayland-dev libegl1-mesa-dev mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libgles2-mesa libgles2-mesa-dev libmirclient-dev libproxy-dev libgtk2.0-dev
2. Download and unpack the Qt source code. Build and install a static version of Qt by running
* ./configure -prefix /home/s/Qt/Static/5.7.1 -static -release -platform linux-g++ -qt-xcb -qt-zlib -qt-pcre -qt-libpng -qt-libjpeg -qt-libjpeg -qt-freetype -qt-sql-sqlite -no-openssl -opensource -confirm-license -make libs -nomake tools -nomake examples -nomake tests
* make -j 4
* sudo make install
3. Setup Qt creator
- Go to "Tools"-"Options"-"Build & Run" tab "Qt Versions"
- Click "Add" and chose the static version's qmake at home/s/Qt/Static/5.7.1/bin/qmake
- Rename, for example "Qt 5.7.1 GCC Static 32bit"
- Click "Apply"
- Go to tab "Kits", click "Add" and set a name like "Desktip Qt 5.7.1 GCC Static 64bit"
- At "Qt Version" pick the previously defined static version
- Ok
4. Open the project file in Qt Creator, configure with the new static kit and make a release build
INCLUDEPATH += C:/Libraries/Eigen-3.2.10 \ # http://eigen.tuxfamily.org
C:/Libraries/Catch-1.5.8/include \ # https://github.com/philsquared/Catch
C:/Libraries/Jsoncons-0.99.4/src \ # https://github.com/danielaparker/jsoncons
C:/Libraries/Boost-1.62.0 \ # http://www.boost.org
INCLUDEPATH += /home/s/Libraries/Eigen-3.3.1 \ # http://eigen.tuxfamily.org
/home/s/Libraries/Catch-1.5.9/include \ # https://github.com/philsquared/Catch
/home/s/Libraries/Jsoncons-0.99.5/src \ # https://github.com/danielaparker/jsoncons
/home/s/Libraries/Boost-1.62.0 \ # http://www.boost.org
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment