Commit 2d9a4029 authored by Martin Straka's avatar Martin Straka

Updated build instructions

parent 00aeb6ec
......@@ -3,70 +3,91 @@ How to build and deploy application to the device or app store?
Guide in Czech is available on address:
https://gitlab.labs.nic.cz/datovka/mobile-datovka/wikis/build-instructions
------------------------------------------------------------------------------
Main requirements for build:
------------------------------------------------------------------------------
==============================================================================
General requirements for build on Windows/Linux/OSX:
==============================================================================
- Qt5.6 or later
- QML 2.3 or later
- Application requires the Qt sqlite database driver.
- OpenSSL (use crypto a cms)
==============================================================================
------------------------------------------------------------------------------
Build for Linux like systems
------------------------------------------------------------------------------
Build for Unix/Linux-like systems
------------------------------------------------------------------------------
1. qmake mobile-datovka.pro
2. make
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Build and deployment for Android platform
------------------------------------------------------------------------------
You must install following tools (Windows/Linux):
------------------------------------------------------------------------------
First you must install following tools (Windows/Linux):
- The Android SDK Tools (https://developer.android.com/studio/index.html)
- The Android NDK (https://developer.android.com/ndk/index.html)
- Apache Ant v1.8 or later (http://ant.apache.org/bindownload.cgi)
- Java SE Development Kit (JDK) v6 or later (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
How to install these tools is described here: http://doc.qt.io/qt-5/androidgs.html
Note: How to install these tools is described here: http://doc.qt.io/qt-5/androidgs.html
- OpenSSL (use batch file in /adroid/openssl/ for build on Windows)
- On Windows, install SED for Windows (http://gnuwin32.sourceforge.net/packages/sed.htm)
- set path to SED binary (C:\Program Files (x86)\GnuWin32\bin\) to Windows PATH.
Note: Build OpenSSL for Android on Windows requiers Mingw and MSYS (read header in the batch file for more info)
On Linux
--------
1. qmake mobile-datovka.pro
2. make
Build under Linux
-----------------
1. Download latest openssl package from https://www.openssl.org/l to /android/openssl/ and build it.
2. qmake mobile-datovka.pro
3. make
On Windows
----------
1. Run QtCreator, open mobile-datovka.pro, set target to android and build it.
Build under Windows (recommended)
-------------------
1. Install SED for Windows (http://gnuwin32.sourceforge.net/packages/sed.htm) and set/add path to SED binary (C:\Program Files (x86)\GnuWin32\bin\) to Windows PATH.
2. Download latest openssl package from https://www.openssl.org/ to /android/openssl/ and build it with batch file.
3. Run QtCreator, open mobile-datovka.pro, set platform and target to Android and build it.
4. Then "Run" app and deploy to target device.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Build and deployment for iOS platform
------------------------------------------------------------------------------
------------------------------------------------------------------------------
You must install following tools on OSX:
- Qt5.6 or later (static build)
- Xcode 7 or later
- CommandLine tools for Xcode
- OpenSSL (use script file in /ios/openssl/ for build by Xcode)
Note: You must set/create "iOS developer certificate" and "provisioning profile" on the https://developer.apple.com/ and associate with target device.
1. Run QtCreator, open mobile-datovka.pro, set target to ios and run qmake.
2. Open generated project file in xcode.
3. Set provisioning profile and build it.
Build under OSX
---------------
1. Download package and build openssl with script in the /ios/openssl/.
2. Set "iOS developer certificate" and "provisioning profile" in Xcode preferences.
3. Run QtCreator, open mobile-datovka.pro, set target to ios and run qmake. It will generate Xcode project to target folder.
4. Open generated Xcode project file with Xcode.
5. In the project tab "General" must be fields "Launch Screen File" and "Main Intereface" empty.
6. Set provisioning profile in "General" tab and set target device.
7. Built it (Run -> deploy app to device).
8. Run Product->Archive to built AppStore packages.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Build for Windows Phone/WinRT
------------------------------------------------------------------------------
------------------------------------------------------------------------------
You must install following tools on Windows:
- Qt5.6
- Visual Studio 2015 or later
- Add "Windows Phone 8.1 SDK" during installation
1. Run batch file in the root of project.
2. Open generated project file in VS2015
3. Set target and build it.
- Add "Windows Phone 8.1 SDK" during installation of VS2015
1. Run batch file in the root of project and generate VS project.
2. Open project file in the VS2015.
3. Set target and device and build it.
------------------------------------------------------------------------------
NOTE: Instructions for deployment of application to device and app stores will be added later.
https://gitlab.labs.nic.cz/datovka/mobile-datovka/wikis/build-instructions
\ No newline at end of file
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