可參考
http://stenlyho.blogspot.com/2008/10/systemc-linux.html
將systemc從官網下載回來後,找個地方把你的systemc-2.2.0.tgz解開
tar xvf systemc-2.2.0.tgz
然後cd systemc-2.2.0
然後mkdir /usr/systemc
然後./configure --prefix=/usr/systemc
最後make
make install
CentOS4會有example error
可以不予理會
CetnOS5就不會有問題
但是在安裝TLM2時
CentOS4不會有問題
但是CentOS5會有問題
問題如下
/home/systemc-2.2.0/include/sysc/packages/boost/bind/placeholders.hpp:54: warning: ‘<unnamed>::_1’ defined but not used
/home/systemc-2.2.0/include/sysc/packages/boost/bind/placeholders.hpp:55: warning: ‘<unnamed>::_2’ defined but not used
/home/systemc-2.2.0/include/sysc/packages/boost/bind/placeholders.hpp:56: warning: ‘<unnamed>::_3’ defined but not used
/home/systemc-2.2.0/include/sysc/packages/boost/bind/placeholders.hpp:57: warning: ‘<unnamed>::_4’ defined but not used
問題解決之法在修改
/home/systemc-2.2.0/include/sysc/packages/boost/bind/placeholders.hpp中的line 28
將
#if defined(__BORLANDC__)
改成
#if defined(__BORLANDC__) || defined(__GNUC__)
就可以過了
systemC如果make在64bits環境
記得將
/usr/systemc下的
lib-linux64作一個link到lib-linux
沒有留言:
張貼留言