Skip to content

Setting Up Development Environment

This section provides step-by-step instructions for setting up your development environment for MConn development. Please follow each section carefully.

Before proceeding, ensure that your system meets the following requirements:

ComponentRequirement
Operating SystemVirtual machine capable of running Windows or a modern Linux distribution (e.g., Ubuntu 22.04)
ProcessorDual-core
Memory8 GB of RAM
Disk Space20 GB of free disk space

The following hardware components are required for development:

ComponentPurposeLink
MConn DisplayMain embedded platform for developmentLink
AMPSEAL 776164 ConnectorMating connector for Power, GPIOs, and CAN busLink
AMPSEAL 776273 Connector (optional)Mating connector for Analog Cameras, Audio Out, and Mic InLink
RJ45 Ethernet CableSoftware/Application deployment and debugging-
12V Power Supply (min 2A)Powering the MConn unit-
Programming Cable (optional)Premade cable from AMPSEAL Connector - Used to power the MConn Display and for CAN communication-

Desktop Environment Setup for Cross-Compilation

Section titled “Desktop Environment Setup for Cross-Compilation”

You can either set up the environment yourself or use a pre-configured virtual machine provided by MRS Electronic.

Download the latest version of VirtualBox according to your device’s architecture.

If you are using a pre-configured virtual machine from MRS, simply install it and proceed to the Setting Up MConn section. The virtual machine is already set up for development and cross-compiling.

Additionally, in the VM at ~/QT_SETUP/ you will find Qt 5.12.9 for desktop development. You can install this on your host machine as well. This allows you to view the UI on your host machine and, when satisfied, flash it to the MConn display.

If you are working with native Linux, you need to configure your machine manually. Proceed with the installation steps below:

Note: You require admin (sudo) privileges to perform the installation steps.

Installing Dependencies Using Provided Script

Section titled “Installing Dependencies Using Provided Script”

To simplify the installation of required packages, you can use the provided install_dependencies script. Download it from here (relative to the project root) and run the following commands in your terminal (from the project root directory):

Terminal window
$ chmod +x install_dependencies
$ sudo ./install_dependencies
Software TypeUbuntu 22.04
Build Essential Toolsbuild-essential
Qt 5.12.9 Dependencieslibxcb1 libxcb1-dev libxcb-keysyms1-dev libxcb-image0 libxcb-image0-dev
Development Librarieslibgl1-mesa-dev libglu1-mesa-dev libxrender-dev libfontconfig1-dev
Other Useful Toolspkg-config git cmake
  1. Install the latest version of Ubuntu.
  2. Follow this tutorial to configure your machine.
  3. Setup Qt development environment by downloading the latest version of Qt. At the time of writing this document, the MRS Display has Qt 5.12.9 installed. Navigate to this link to find the steps to install Qt5 in Ubuntu.
  4. Run the installer to begin the installation process.
  • If you encounter permission errors, ensure you are running commands with sudo where required.
  • If a package is missing, check your .pro file. Remove the dependency if the package is not needed. If the package is important and missing, please contact MRS Electronic for assistance.
  • For Windows users, contact MRS Electronic for specific setup instructions.
  • System meets hardware and software requirements
  • Required hardware is available and connected
  • Virtual machine or native Linux is ready
  • All dependencies installed (via script or manually)
  • Qt development environment installed
  • Able to build and deploy a sample application

If you have completed all the above steps, your development environment is ready!