profil のインストール
http://www.ti3.tu-harburg.de/english/index.html
old version は インストールしきれんかった.
エラーメッセージの意味がわからず.
v-2.0 はドキュメントの通りスラっといけた。
インストールの方法は以下の通り.
profil2.tgz をダウンロード
$ tar -xzvf Profil2.tgz
$ cd Profil-2.0
$ ./Configure
.
.
10. x86-Linux-compat-gcc
11. x86-Linux-fast-gcc
.
.
Enter the number of the configuration you want to use:どっちを選ぶべきか(compatって何か知らん..互換性のあるやつ?)で、10を選択
$ gmake install
$ cp -a include/ /home/hoge/
$ cp -a lib/ /home/hoge/
で、インストール完了.
コンパイルしてみると,
とエラー。
$ g++ sample.cpp -o sample -I /home/hoge/include/ -L /home/hoge/lib -lProfilPackages -lProfil -lBias -llr -lm/home/hoge/include/Configuration.h:55:25: Definitions.h: そのようなファイルやディレクトリはありません
In file included from /home/hoge/include/Vector.h:16,
.
.
Definitions.h を探してやると、Profil-2.0/src/Base/Definitions.h にある。
なんかしらんけれど、これをコピー
で、うまくいくようになった。
$ cp src/Base/Definitions.h /home/hoge/include/
毎回 g++ うんたらかんたら書くのは面倒なので,
などという内容のファイルを作り実行権限を与え、パスを通しておくと便利
#! /bin/sh
g++ $1 -o $2 -I /home/hoge/include/ -L /home/hoge/lib -lProfilPackages -lProfil -lBias -llr -lm