Ciao a tutti...ho da poco installato ubuntu.Ho problemi a installare il systemc; seguendo le istruzioni seguenti:
Basic SystemC Installation
==========================
To install SystemC on a UNIX system, do the following steps:
1. Change to the top level directory (systemc-2.0.1)
2. Create a temporary directory, e.g.,
> mkdir objdir
3. Change to the temporary directory, e.g.,
> cd objdir
4. Set the following environment variable(s):
For gcc-2.95.2 or gcc-2.95.3 on Solaris:
> setenv CXX g++
For SC6.1 or SC6.2 on Solaris:
> setenv CXX CC
For gcc-2.95.3 on Linux:
> setenv CXX g++
For aCC on HP-UX:
> setenv CXX aCC
You can also specify an absolute path to the compiler of your choice.
5. Configure the package for your system, e.g.,
(The configure script is explained below.)
> ../configure
While the 'configure' script is running, which takes a few moments,
it prints messages to inform you of the features it is checking.
It also detects the platform.
Note for System V users:
If you are using `csh' on an older version of System V, you might
need to use the `sh ../configure' command instead of '../configure'.
Otherwise, `csh' will attempt to `configure' itself.
SystemC 2.0.1 includes a fixed-point package that is always built.
When compiling your applications with fixed-point types, you still have
to use compiler flag -DSC_INCLUDE_FX. Note that compile times increase
significantly when using this compiler flag.
In case you want to install the package in another place than the
top level directory (systemc-2.0.1), configure the package e.g. as
follows:
> ../configure --prefix=/usr/local/systemc-2.0.1
Note: make sure you have created the target directory before installing
the package. Do _not_ use /usr/local as a prefix.
6. Compile the package.
For an optimized SystemC library, enter:
> gmake
For a debug SystemC library, enter:
> gmake debug
7. Install the package.
> gmake install
8. You can now remove the temporary directory, .e.g,
> cd ..
> rm -rf objdir
Alternatively, you can keep the temporary directory to later uninstall
the package. To clean up the temporary directory, enter:
> gmake clean
To uninstall the package, enter:
> gmake uninstall
i miei problemi sorgono da make in poi.ottengo queste righe:
Making all in src
make[1]: Entering directory `/home/depecherev/Desktop/systemc-2.0.1/src'
Making all in systemc
make[2]: Entering directory `/home/depecherev/Desktop/systemc-2.0.1/src/systemc'Making all in kernel
make[3]: Entering directory `/home/depecherev/Desktop/systemc-2.0.1/src/systemc/kernel'
c++ -I. -I../../../src -Wall -DSC_INCLUDE_FX -O3 -c sc_module_name.cpp
In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward/strstream:51,
from ../../../src/systemc/utils/sc_iostream.h:43,
from ../../../src/systemc/datatypes/bit/sc_logic.h:43,
from ../../../src/systemc/kernel/sc_lambda.h:45,
from ../../../src/systemc/kernel/sc_module.h:53,
from sc_module_name.cpp:41:
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../../../src/systemc/datatypes/bit/sc_logic.h: In static member function ‘static sc_dt::sc_logic_value_t sc_dt::sc_logic::to_value(char)’:
../../../src/systemc/datatypes/bit/sc_logic.h:102: warning: array subscript has type ‘char’
../../../src/systemc/kernel/sc_module_name.h: At global scope:
../../../src/systemc/kernel/sc_module_name.h:67: error: ISO C++ forbids declaration of ‘sc_module’ with no type
../../../src/systemc/kernel/sc_module_name.h:67: error: expected ‘;’ before ‘*’ token
sc_module_name.cpp: In constructor ‘sc_module_name::sc_module_name(const char*)’:
sc_module_name.cpp:50: error: class ‘sc_module_name’ does not have any field named ‘m_module’
sc_module_name.cpp: In copy constructor ‘sc_module_name::sc_module_name(const sc_module_name&)’:
sc_module_name.cpp:60: error: class ‘sc_module_name’ does not have any field named ‘m_module’
sc_module_name.cpp: In destructor ‘sc_module_name::~sc_module_name()’:
sc_module_name.cpp:70: error: ‘m_module’ was not declared in this scope
sc_module_name.cpp:73: error: ‘m_module’ was not declared in this scope
make[3]: *** [sc_module_name.o] Error 1
make[3]: Leaving directory `/home/depecherev/Desktop/systemc-2.0.1/src/systemc/kernel'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/depecherev/Desktop/systemc-2.0.1/src/systemc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/depecherev/Desktop/systemc-2.0.1/src'
make: *** [all-recursive] Error 1
aiutatemi vi prego non so proprio che pesci prendere.
Basic SystemC Installation
==========================
To install SystemC on a UNIX system, do the following steps:
1. Change to the top level directory (systemc-2.0.1)
2. Create a temporary directory, e.g.,
> mkdir objdir
3. Change to the temporary directory, e.g.,
> cd objdir
4. Set the following environment variable(s):
For gcc-2.95.2 or gcc-2.95.3 on Solaris:
> setenv CXX g++
For SC6.1 or SC6.2 on Solaris:
> setenv CXX CC
For gcc-2.95.3 on Linux:
> setenv CXX g++
For aCC on HP-UX:
> setenv CXX aCC
You can also specify an absolute path to the compiler of your choice.
5. Configure the package for your system, e.g.,
(The configure script is explained below.)
> ../configure
While the 'configure' script is running, which takes a few moments,
it prints messages to inform you of the features it is checking.
It also detects the platform.
Note for System V users:
If you are using `csh' on an older version of System V, you might
need to use the `sh ../configure' command instead of '../configure'.
Otherwise, `csh' will attempt to `configure' itself.
SystemC 2.0.1 includes a fixed-point package that is always built.
When compiling your applications with fixed-point types, you still have
to use compiler flag -DSC_INCLUDE_FX. Note that compile times increase
significantly when using this compiler flag.
In case you want to install the package in another place than the
top level directory (systemc-2.0.1), configure the package e.g. as
follows:
> ../configure --prefix=/usr/local/systemc-2.0.1
Note: make sure you have created the target directory before installing
the package. Do _not_ use /usr/local as a prefix.
6. Compile the package.
For an optimized SystemC library, enter:
> gmake
For a debug SystemC library, enter:
> gmake debug
7. Install the package.
> gmake install
8. You can now remove the temporary directory, .e.g,
> cd ..
> rm -rf objdir
Alternatively, you can keep the temporary directory to later uninstall
the package. To clean up the temporary directory, enter:
> gmake clean
To uninstall the package, enter:
> gmake uninstall
i miei problemi sorgono da make in poi.ottengo queste righe:
Making all in src
make[1]: Entering directory `/home/depecherev/Desktop/systemc-2.0.1/src'
Making all in systemc
make[2]: Entering directory `/home/depecherev/Desktop/systemc-2.0.1/src/systemc'Making all in kernel
make[3]: Entering directory `/home/depecherev/Desktop/systemc-2.0.1/src/systemc/kernel'
c++ -I. -I../../../src -Wall -DSC_INCLUDE_FX -O3 -c sc_module_name.cpp
In file included from /usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward/strstream:51,
from ../../../src/systemc/utils/sc_iostream.h:43,
from ../../../src/systemc/datatypes/bit/sc_logic.h:43,
from ../../../src/systemc/kernel/sc_lambda.h:45,
from ../../../src/systemc/kernel/sc_module.h:53,
from sc_module_name.cpp:41:
/usr/lib/gcc/i486-linux-gnu/4.0.3/../../../../include/c++/4.0.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated.
../../../src/systemc/datatypes/bit/sc_logic.h: In static member function ‘static sc_dt::sc_logic_value_t sc_dt::sc_logic::to_value(char)’:
../../../src/systemc/datatypes/bit/sc_logic.h:102: warning: array subscript has type ‘char’
../../../src/systemc/kernel/sc_module_name.h: At global scope:
../../../src/systemc/kernel/sc_module_name.h:67: error: ISO C++ forbids declaration of ‘sc_module’ with no type
../../../src/systemc/kernel/sc_module_name.h:67: error: expected ‘;’ before ‘*’ token
sc_module_name.cpp: In constructor ‘sc_module_name::sc_module_name(const char*)’:
sc_module_name.cpp:50: error: class ‘sc_module_name’ does not have any field named ‘m_module’
sc_module_name.cpp: In copy constructor ‘sc_module_name::sc_module_name(const sc_module_name&)’:
sc_module_name.cpp:60: error: class ‘sc_module_name’ does not have any field named ‘m_module’
sc_module_name.cpp: In destructor ‘sc_module_name::~sc_module_name()’:
sc_module_name.cpp:70: error: ‘m_module’ was not declared in this scope
sc_module_name.cpp:73: error: ‘m_module’ was not declared in this scope
make[3]: *** [sc_module_name.o] Error 1
make[3]: Leaving directory `/home/depecherev/Desktop/systemc-2.0.1/src/systemc/kernel'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/depecherev/Desktop/systemc-2.0.1/src/systemc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/depecherev/Desktop/systemc-2.0.1/src'
make: *** [all-recursive] Error 1
aiutatemi vi prego non so proprio che pesci prendere.