COVESA / vsomeip

An implementation of Scalable service-Oriented MiddlewarE over IP
Mozilla Public License 2.0
1.09k stars 678 forks source link

Building vsomeip for 32 bit architechture #17

Closed iot7272 closed 6 years ago

iot7272 commented 6 years ago

Can you provide the procedure for building it for 32 bit architecture in Ubuntu 16. I tried adding CXX flags as -m32, but I am facing issues with boost libraries

GenivivSOMEIPmaintainer commented 6 years ago

Do you build on Ubuntu 32-bit or 64-bit?

iot7272 commented 6 years ago

Ubuntu 64-bit

GenivivSOMEIPmaintainer commented 6 years ago

Build procedure (32-bit on 64-bit host)

This first two steps weren't neccessary on my machine, so first try without them

  1. sudo dpkg --add-architecture i386
  2. sudo apt-get update
  3. sudo apt-get install libboost-system1.58-dev:i386 libboost-thread1.58-dev:i386 libboost-log1.58-dev:i386 libsystemd-dev:i386 mkdir build32bit cd build32bit cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS_RELEASE='-O2 -g -Wall -Wextra -Wpedantic -Wconversion -m32' \ -DBOOST_LIBRARYDIR=/usr/lib/i386-linux-gnu \ ..

Before starting a 32-bit application, please ensure that /dev/shm/vsomeip does not exist.

iot7272 commented 6 years ago

Able to build it with the above procedure. Thanks