Building DoIP under Linux

Currently, DoIP can be built under Linux; although it supports both ARM and x86/x64, the currently included build scripts can only build for ARM. With minor modifications, it should be possible to build for x86/x64 too. The build configuration is tested under Debian, but other Linux flavours should work too.

Dependencies

  • BlueZ (>= 2.0)
  • Scons

Building

To build the DoIP libraries under Linux, do the following:

  • Install the regular Linux build tools (apt-get install build-essential)
  • Install the BlueZ Bluetooth libraries (apt-get install libbluetooth-dev)
  • Install the scons build tool (apt-get install scons)
  • Go to the root directory of the source code and type 'scons' to build; binaries will end up in the 'build' directory
  • If you want to build Debian packages, cd to Installers/Debian and type 'scons' again.

To use the DoIP libraries with your own application, make sure that the EP/, Core/ and Libraries/ directories are all included in the include path when compiling. Also, take a look at the SConstruct files in each directory to find out which ifdefs to turn on for your platform (i.e. make sure to define TJ_OS_LINUX).

Cross-compiling for ARM

You may want to take a look at this.

 
building_doip_on_linux.txt · Last modified: 2010/06/14 10:04 by tommy
 
© Pixelspark, 2009-2012