Installing additional software

After installing Vision Extension Package for S32V2xx 1.0.0, you need to install additional third-party software packages. These packages are required for building projects and for debugging. The following table groups additional software packages by activity where they are required:

Table 1. Additional installations required on CentOS 7
Activity Required software
Project build
  • Compatibility libraries to run a 32-bit toolchain on a 64-bit Linux: lib32z1, lib32ncurses5, glibc, libstdc++6, libX11, libxpm4
    sudo yum install zlib.i686 ncurses-devel.i686 glibc.i686 libstdc++.i686 libX11.i686 libXpm.i686
  • GCC 4.9 or higher

    Find the details in Installing GCC 5.x

  • TCL 8.6

    Find the details in Installing TCL

  • The MAKE utility:
    sudo yum install make
  • The dos2unix utility:
    sudo yum install dos2unix
Debugging
  • Python 2.7 32-bit (to use the GDB Python build arm-none-eabi-gdb-py):
    sudo yum install python-libs.i686

Installing GCC 5.x

CentOS uses GCC 4.8.5 by default. To be able to build projects, raise the GCC version to 5.x.

To install GCC, run these commands:

sudo yum install centos-release-scl
sudo yum install devtoolset-4-gcc*
scl enable devtoolset-4 bash

The last line applies the new GCC version to the current bash session. To use this GCC version, you need to run S32 Design Studio from the command line in the same session.

Note: To run S32 Design Studio from the user interface with the required GCC version, specify the following command in the .profile file:
source /opt/rh/devtoolset-4/enable

When done, verify the version of the installed GCC using this command:

g++ --version

You will get the actual GCC version in the response similar to this one:

[af@vm-co7] $ g++ --version
g++ (GCC) 5.3.1 20160406 (Red Hat 5.3.1-6)

Installing TCL

CentOS uses TCL 8.5 by default. To be able to build projects in S32 Design Studio on CentOS 7, install TCL 8.6.

To install TCL 8.6, run these commands:

rpm --import http://wiki.psychotic.ninja/RPM-GPG-KEY-psychotic
wget http://packages.psychotic.ninja/7/base/x86_64/RPMS/psychotic-release-1.0.0-1.el7.psychotic.noarch.rpm
sudo rpm -Uvh psychotic-release*rpm
sudo yum --enablerepo=psychotic-plus install tcl

When done, verify the version of the installed TCL using these commands:

[af@localhost ~]$ echo "puts \$tcl_version" | tclsh

The expected response should be:

8.6