50
9.5.4 Windows Compilation
CanFestival can be compiled and run on Windows platform. It is possible to use both
Cygwin and win32 native runtime environment.
Minimal Cygwin installation is required at configuration time in order to create specific
header files (config.h and cancfg.h). Once these files created, Cygwin is not necessary
anymore. Project and solution files have been created and tested with Visual Studio
Express 2005. Be sure to have installed Microsoft Platform SDK, as recommended at
the end of Visual Studio installation.
Cygwin must be installed with those packages:
1. gcc
2. unzip
3. wget
4. make
Extract CanFestival source code into your Cygwin home. Then configure CanFestival.
cd CanFestival
./configure --can=titan
make
9.5.5 Compilation with Visual Studio
You can either load independent “*.vcproj” project’ files along your own pro jects in
your own solution or load the provided “CanFestival-3.vc8.sln” solution files directly.
Build CanFestival-3 project first.
The “examples” directory contains some test program you can use as example you’re
your own developments.
You'll find an example on the supplied CD showing the communication between
master and slave nodes. Following baudrates are supported: 20K, 50K, 100K, 125K,
250K, 500K and 1M.
• CanFestival_example_win_x86.zip For Windows 32 bit
• CanFestival_example_win_x64.zip For Windows 64 bit
• CanFestival_example_linux_x86.tar.gz For Linux 32 bit
• CanFestival_example_linux_x64.tar.gz For Linux 64 bit