FreeBSDで、SystemcのSCVをコンパイルする
Portsでは上手く動かなかった(同じ所でエラー)ので、自力でコンパイルしてみました。
INSTALLドキュメントは読んでいる前提で、手順を整理
(1)configureファイルの編集
../configure 3652行目に追加
target_os="linux-gnu"
ついでにここも修正しておく。
//#define _USE_HASH_MAP
objdirから
../configure --with-systemc=/usr/home/natu/systemc/systemc-2.1.v1 --disable-compiler-check
を実行。systemcのPATHは自分の環境に合わせる。
(2)../configureが通ったら
tgzを展開したフォルダーにあるscriptsの中のcopyFiles.shと、CopyExamples.shの一行目 #!/bin/sh -h を#!/bin/sh に変更(-h オプションを取る)
objdirのscriptsじゃないので注意する。
最後にscv_init_seed.cppの先頭を修正
#ifdef __linux__
#include < sys/time.h>
#else
#include < time.h>
#endif
#include < sys/time.h> ←追加
あとは、
gmake
gmake install
でOK。
« SDカードと風船 | Main | GWの成果 »
The comments to this entry are closed.


Comments