Skip to content

Build for QNX 6.6

Konstantin Kolodii edited this page Mar 16, 2017 · 33 revisions

Update QNX SDP 6.6

In order to update see Update QNX SDP 6.6

Prepare environment

source <QNX_SDP>/qnx660-env.sh

Boost

Download Boost

tar -xvf boost_1_55_0.tar.gz
cd boost_1_55_0
./bootstrap.sh
./b2 install link=shared toolset=qcc cxxflags="-Vgcc_ntox86_gpp" target-os=qnxnto --prefix=${QNX_TARGET}/usr

vsomeip

git clone https://github.com/bonewell/vsomeip.git
cd vsomeip
git checkout -b release/qnx660/2.5.2
mkdir build
cd build
cmake -DCMAKE_TOOLCHAIN_FILE=<path_franca-capi-someip-sample>/qnx_6.6.0_linux_x86.cmake -DCMAKE_INSTALL_PREFIX=. ..
make
make install

CommonAPI

git clone https://github.com/GENIVI/capicxx-core-runtime.git
cd capicxx-core-runtime
git checkout -b release/3.1.11 3.1.11

Apply patch:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5749fef..1627481 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,6 +7,7 @@ cmake_minimum_required (VERSION 2.8.12)
 
 PROJECT(libcommonapi)
 
+set( CMAKE_CXX_STANDARD 11)
 # version of CommonAPI
 SET( LIBCOMMONAPI_MAJOR_VERSION 3 )
 SET( LIBCOMMONAPI_MINOR_VERSION 1 )
@@ -98,7 +99,7 @@ IF(MSVC)
     add_definitions(-DCOMMONAPI_INTERNAL_COMPILATION -DCOMMONAPI_DLL_COMPILATION)
     add_compile_options(/EHsc /wd4996)
 ELSE ()
-    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector -fasynchronous-unwind-tables -fno-omit-frame-pointer -Werror -DCOMMONAPI_INTERNAL_COMPILATION")
+    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wformat -Wformat-security -Wconversion -fexceptions -fstrict-aliasing -fstack-protector -fasynchronous-unwind-tables -fno-omit-frame-pointer -Werror -DCOMMONAPI_INTERNAL_COMPILATION")
 ENDIF(MSVC)
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DCOMMONAPI_LOGLEVEL=COMMONAPI_LOGLEVEL_${MAX_LOG_LEVEL}")

mkdir build cd build cmake .. make


In order to build of documentation:
```Shell
make doc

Build of tools for generation C++ source code

sudo apt-get install maven
git clone https://github.com/GENIVI/capicxx-core-tools.git
cd capicxx-core-tools
git checkout -b release/3.1.11 3.1.11
cd org.genivi.commonapi.core.releng
mvn -Dtarget.id=org.genivi.commonapi.core.target clean verify

Generator is located in capicxx-core-tools/org.genivi.commonapi.core.cli.product/target/products

In order to build of documentation:

cd capicxx-core-tools/docx
make ug_html spec_html

The documentation is located in capicxx-core-tools/doc

CommonAPI-SomeIP

This is short manual to build CommonAPI-SomeIP on Ubuntu 14.04. For more details see CommonAPI-SomeIP documentations.

Build of C++ runtime labrary

git clone https://github.com/GENIVI/capicxx-someip-runtime.git
cd capicxx-someip-runtime
git checkout -b release/3.1.11 3.1.11.1
mkdir build
cd build
cmake ..
make

Build of tools for generation C++ source code

sudo apt-get install maven
git clone https://github.com/GENIVI/capicxx-someip-tools.git
cd capicxx-someip-tools
git checkout -b release/3.1.11 3.1.11
cd org.genivi.commonapi.someip.releng
mvn clean verify -DCOREPATH=</full/path/to>/capicxx-core-tools -Dtarget.id=org.genivi.commonapi.someip.target

Generator is located in capicxx-someip-tools/org.genivi.commonapi.someip.cli.product/target/products

In order to build of documentation:

cd capicxx-someip-tools/docx
make ug_html

The documentation is located in capicxx-someip-tools/doc

Franca IDL

You don't need anything for this :)

Clone this wiki locally