beautypg.com

Usage of can library, 1 installation, 2 link – Hatteland Display HT B22 (Fanless) User Manual

Page 5: Hd can module programmer’s guide (linux)

background image

DOC101356-1_ - rev 2 – 2013-09-24 - Created by:6644

Page 5 of 24

Hatteland Display AS, Åmsosen, N-5578 Nedre Vats, Norway

Tel: (+47) 4814 2200 - [email protected] - www.hatteland-display.com

HD CAN Module Programmer’s Guide (Linux)

All intellectual properties belongs to Hatteland Display AS

2. Usage of CAN Library

2.1 Installation

2.1.1

Installation Instruction for Binary DEB packages

DEB packages should be installed on Ubuntu systems. API installation package consists from
three binary packages:

hdj2534 (basic package that contains hdj2534.so library and header files for development),

hdj2534-swdl (basic package that contains Software Download application),

hdj2534-apps (additional package that contains testApp utility).

Before installation older packages have to be removed. In order to do this following
commands should be executed:

sudo dpkg -r hdj2534-swdl

sudo dpkg -r hdj2534-apps

sudo dpkg -r hdj2534

In order to install new hdj2534 packages following general command should be used:

sudo dpkg -i package_name_version_platform.deb

Package_name should be replaced with proper package name (e.g. hdj2534, hdj2534-apps or
hdj2354-swdl). Version should be replaced with proper package version (e.g. 1.0.207-9).
Platform should be replaced with proper platform name (e.g. i386).

2.1.2

Installation Instruction for Binary RPM packages

RPM packages should be installed on Fedora and openSUSE systems. API installation package
consists from three binary packages:

hdj2534 (basic package that contains hdj2534.so library and header files for development),

hdj2534-swdl (basic package that contains Software Download application),

hdj2534-apps (additional package that contains testApp utility).

Before installation older packages have to be removed. In order to do this following
commands should be executed:

sudo rpm -e hdj2534-swdl

sudo rpm -e hdj2534-apps

sudo rpm -e hdj2534

In order to install new hdj2534 packages following general command should be used:

sudo rpm -i package_name-version-platform.rpm

Package_name should be replaced with proper package name (e.g. hdj2534, hdj2534-apps or

hdj2354-swdl). Version should be replaced with proper package version (e.g. 1.0.207-13).
Platform should be replaced with proper platform name (e.g. i586).

2.2 Link

The Library for HD CAN module is provided in the form of dynamic library under Linux. After the

programmer follows the installation instruction as above, the file should be correctly linked into the
developing project.

If the developing project is including makefile, the “-lhdj2534” command should be added.

If it is under Eclipse, the setting as the screenshot below should be performed.