Building

Kees Verruijt edited this page Mar 1, 2017 · 5 revisions

At the moment there is no automake or configure process yet. The code comes with old fashioned 'make' files. It assumes you have make, gcc and xsltproc installed.

It is built regularly on Linux (x86), Linux (armv7), Darwin (Mac OS X) and Windows x86 (under Cygwin).

Windows support is limited to Cygwin + GCC. This is easy to install, and fully free. Go to cygwin.com, download setup.exe and then install gmake and gcc. There is no support for Visual Studio builds anymore.

To build just run 'make' in the top level directory. It will build binaries in rel/${platform} .

e.g.

git clone git://github.com/canboat/canboat
cd canboat
make

should produce output like this:

$ git clone git://github.com/canboat/canboat
Cloning into canboat...
remote: Counting objects: 32, done.
remote: Compressing objects: 100% (25/25), done.
remote: Total 32 (delta 6), reused 31 (delta 5)
Receiving objects: 100% (32/32), 58.33 KiB, done.
Resolving deltas: 100% (6/6), done.
$ cd canboat
$ make
mkdir -p rel/linux-i586
for dir in analyzer n2kd nmea0183; do make -C $dir; done
make[1]: Entering directory `/disk2/kees/canboat/analyzer'
cc -o ../rel/linux-i586/analyzer -I../common analyzer.c ../common/common.c 
make[1]: Leaving directory `/disk2/kees/canboat/analyzer'
make[1]: Entering directory `/disk2/kees/canboat/n2kd'
cc -o ../rel/linux-i586/n2kd -I../common main.c ../common/common.c 
make[1]: Leaving directory `/disk2/kees/canboat/n2kd'
make[1]: Entering directory `/disk2/kees/canboat/nmea0183'
cc -o ../rel/linux-i586/nmea0183-serial -O3 -I../common nmeareader.c ../common/common.c
cc -o ../rel/linux-i586/iptee -O3 -I../common iptee.c ../common/common.c
make[1]: Leaving directory `/disk2/kees/canboat/nmea0183' 

If the make complains about being unable to run xsltproc you can just ignore this, or install it. For example for Debian/Ubuntu:

sudo apt-get install xsltproc

Once the compilation succeeds you can install the executables into the /usr/local/bin directory using

sudo make install

Then, to get a running server you should create /etc/default/n2kd and adapt it to your use. See n2kd_monitor configuration. Then start n2kd by starting /usr/local/bin/n2kd_monitor.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.