Giter VIP home page Giter VIP logo

rtos_vehicule_monitoring's Introduction

qnx qt

Real Time Application of Vehicule Monitoring System

This project involves all or part of the design, implementation, testing, and analysis of a simplified real-time system for monitoring of vehicle’s health conditions.

Overview

  • The application consist of two parts, a producer which gathers information a dataset and a consumer that displays those information to the user
  • The project is divided into two sections: src and gui both implemented separately
  • The producer is built with CMake and makes usage of the QNX SDP 7.0
  • The consumer is build with qmake and uses QNX SDP 7.0 and Qt 5.12.2 framework
  • A toolchain file is provided so the code can be either compiled to any Unix system or cross-compiled to any supported QNX x64 system
  • Note that in order to built the GUI using GCC, the proper qmake tool needs to be generated from the Qt source files.

Requirements

  • Linux x86_x64 OS
  • C/C++ std libraries
  • QNX SDP 7.0
  • Qt 5.12.2 (at least its libraries)
  • CMake 3.X

Build on Linux

You may compile this application for a Linux host machine:

Build with CMake:
cmake -B $PREFIX_DIR -S . -G Ninja -DCMAKE_BUILD_TYPE=Release

Build for QNX

This application can be cross compiled using one of the two ways below:

Run the shell script:
sh built_to_qnx.sh $IP_ADDR_REMOTE

Build with CMake:
cmake -B $PREFIX_DIR -S . -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=qnx.nto.toolchain2.cmake

Build GUI

The user interface is built with Qt. Therefore, it can be compiled directly from Qt Creator using the following kit settings:

  • sysroot: $QNX_HOST/target/qnx7/x86_64
  • C: qcc compiler path
  • C++: q++ compiler path
  • Debugger: ntox86_64-gdb
  • Qt version: 5.12.2

Running on QNX VM

Before execution, all required libraries must be loaded and linked on the target machine

  • All built Qt libraries must be deployed to the target machine
  • Export all required envrionment variables (refer to Qt for QNX on Qt website)
  • Upload required shared libraries (see lib/rtos_common/CmakeLists.txt)
  • Initiate the Screen graphics subsystem on the target machine

With the target machine properly set, the application can be deployed and executed. It is recommended to use the default VM image provided by the QNX Software Center, as it comes with all the required utilities and services. If you are building an image from a BSP file, ensure that all services required by Qt are running before executing this application.

For more information on how to build a QNX OS image, access QNX user's guide

rtos_vehicule_monitoring's People

Contributors

kdeoliveira avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.