Build - JamesBremner/Farmodbus GitHub Wiki

Building the test project requires the code in this repository, plus two other open source libraries:

The cSerial class code, used to communicate over a COM port, is part of the the raven::set tool kit, which you can get from the fossil repository here: http://speakertorobots.com/cgi-bin/ravenset.cgi/index1.

The boost library, used for threading, can be obtained from here: http://www.boost.org/

Here is the procedure:

Download the raven::set toolkit software to a folder somewhere. No build is required.

Create an environment variable RAVENROOT which points to the folder where you downloaded the raven::set toolkit

Download the boost libraries and build them

There is an issue about where the boost build process places the built libraries. Sometimes they are in $(BOOSTROOT0/lib and sometimes thay are in $(BOOSTROOT)/stage/lib. This depends on the exact build process you use. If the Farmodbus build fails with_ LINK : fatal error LNK1104: cannot open file 'libboost_thread-vc90-mt-gd-1_51.lib' then either modify the project properties ( additional library directories ) or move the built libraries.

Create an environment variable BOOSTROOT which points to the boost installation folder

The farmodbus_test project should now build