From dfb93250570aec583f5aa8dcc1f23d3ba0a76f12 Mon Sep 17 00:00:00 2001 From: Sudarsana Babu Nagineni Date: Fri, 3 Aug 2018 10:44:57 +0300 Subject: [Qt] Add CMake toolchain for QNX platform This adds CMake toolchain for QNX platform. By using this toolchain, we can compile Mapbox GL Plugin for Qt on QNX platform. --- platform/qt/README.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'platform/qt/README.md') diff --git a/platform/qt/README.md b/platform/qt/README.md index 42906ec3cd..3cb49c2ff3 100644 --- a/platform/qt/README.md +++ b/platform/qt/README.md @@ -51,6 +51,28 @@ At runtime, you will also need installed: - [OpenSSL 1.0.2+](https://slproweb.com/products/Win32OpenSSL.html) - DirectX +#### QNX 7.0 + +To build for QNX 7.0, you need to install the QNX Software Development Platform (SDP) on a Linux host. + +http://www.qnx.com/developers/docs/7.0.0/#com.qnx.doc.qnxsdp.nav/topic/bookset.html + +After installing the SDP, you need to source the QNX environment script: + +``` +source /qnxsdp-env.sh +``` + +You also need to Build Qt for QNX. + +http://wiki.qt.io/Building_Qt_for_QNX_Neutrino_OS + +After building Qt for QNX, you need to add Qt installation's bin directory to the path. + +``` +export PATH=/bin:$PATH +``` + ### Build instructions Public API headers can be found in the [platform/qt/include](include) directory. @@ -79,3 +101,11 @@ $ cd build $ cmake -G "Visual Studio 14 2015 Win64" -T LLVM-vs2014 -DMBGL_PLATFORM=qt -DWITH_QT_DECODERS=ON -DWITH_QT_I18N=ON -DWITH_NODEJS=OFF .. $ cmake --build . --config Release --target qmapboxgl -- /m ``` + +#### QNX 7.0 + +Building the repository for QNX 7.0 is very similar to other platforms (e.g. Linux and macOS). + +``` +$ make qnx-qt-lib # Will build libqmapboxgl.so +``` -- cgit v1.2.1