Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
At the moment there is no automake or configure process yet. The code comes with old fashioned 'make' files. It assumes you have
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
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
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: Entering directory `/disk2/kees/canboat/analyzer' cc -o ../rel/linux-i586/analyzer -I../common analyzer.c ../common/common.c make: Leaving directory `/disk2/kees/canboat/analyzer' make: Entering directory `/disk2/kees/canboat/n2kd' cc -o ../rel/linux-i586/n2kd -I../common main.c ../common/common.c make: Leaving directory `/disk2/kees/canboat/n2kd' make: 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: 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