-
Notifications
You must be signed in to change notification settings - Fork 22
Build for QNX 6.6
Konstantin Kolodii edited this page Mar 16, 2017
·
33 revisions
In order to update see Update QNX SDP 6.6
source <QNX_SDP>/qnx660-env.sh
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
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
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, for this save next diff to file and run git apply <file_name>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5749fef..9d84d4d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,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 +98,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 -DCMAKE_TOOLCHAIN_FILE=<path_franca-capi-someip-sample>/qnx_6.6.0_linux_x86.cmake -DCMAKE_INSTALL_PREFIX=. ..
make
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 -DCMAKE_TOOLCHAIN_FILE=<path_franca-capi-someip-sample>/qnx_6.6.0_linux_x86.cmake -DCMAKE_INSTALL_PREFIX=. ..
make
You don't need anything for this :)