Installation of
systemc and SCV
on a Debian 3.2.46 wheezy.
-
In this site there many
systemc
and
SCV
examples. They all were tested on an old lenny machine with systemc 2.2.0.
In this page I describe the installation of the latest systemc 2.3.0 and SCV on
my new machine: Debian 3.2.46 wheezy 64 bits.
-
The installation of systemc is simple. There
were no problems and one just need
to follow the installation instructions.
-
The installation of SCV is a nightmare. First the configure fails in some of
its compilation tests. In most cases headers have
the suffix \.h where it
should not be or some headers
are simply missing.
Some of the changes, done on the configure file, are described below:
#include <string.h>
#include <string>
#include <stdlib.h>
#include <strstream>
#include <strstream.h>
#include <iostream>
#include <iostream.h>
-
The next bitter surprise was the scripts that were created for installation
use. Their first line contains -h, which upsets my debian machine:
#!/bin/sh -h
So I edited all files under scripts and modified the main make file not to
re do it.
-
Last I could not use the SCV include files, because they could be read only
by root user.
-
Last but not least, I wanted to run an example. So I switched to the TLM
directory examples:
systemc-2.3.0/examples/tlm/at_1_phase/build-unix
The doc says: make clean, make and make run are the commands, but one has to
set some variables that are installation specific:
- export SYSTEMC_HOME=/home/pini/Home_1/pini/systemc-2.3.0
- export LD_LIBRARY_PATH=/home/pini/Home_1/pini/systemc-2.3.0/lib-linux/
|