現在、Mac にコードをインストールしています。
コードはこちらから。このページで「ベンチマークと境界検出コード」を探します。
readme ファイルには、次のように書かれています。
(1) Dataset ディレクトリ内の画像とセグメンテーションの読み取りルーチンを機能させるには、Dataset/bsdsRoot.m を編集して、BSDS データセットのローカル コピーを指すようにしてください。
(2) このディレクトリから「gmake install」を実行して、すべてをビルドします。その後、lib/matlab ディレクトリを MATLAB パスに配置する必要があります。
(3) Benchmark/README ファイルを読みます。
最初のステップでは、提案どおりに行いました。2番目のステップについては、かなり混乱しています。gmake install
MATLAB でコマンドを実行しましたが、次のようになりました。
gmake
Undefined function or variable 'gmake'.
実は、MATLAB を実行する前に、macports から gmake ポートをインストールしました。
ターミナルでやっただけですが、これが得られたものです...
hou229:segbench yaozhongsong$ cd /Users/yaozhongsong/Documents/MATLAB/segbench
hou229:segbench yaozhongsong$ sudo gmake install
gmake[1]: execvp: ../Util/gethosttype: Permission denied
gmake[1]: Entering directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
GNUmakefile-library:26: *** mexSuffix not defined. Stop.
gmake[1]: Leaving directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
hou229:segbench yaozhongsong$
MATLAB では、次のようにもしました。
!gmake install
/bin/bash: gmake: command not found
readme ファイルの 2 番目のステップを実行するにはどうすればよいですか?
前もって感謝します!
@アムロ
hou229:segbench yaozhongsong$ cd /Users/yaozhongsong/Documents/MATLAB/segbench
hou229:segbench yaozhongsong$ sudo gmake install
Password:
gmake[1]: execvp: ../Util/gethosttype: Permission denied
gmake[1]: Entering directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'
mkdir -p ../lib/matlab
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Exception.cc -o build//Exception.o
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c String.cc -o build//String.o
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Random.cc -o build//Random.o
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Timer.cc -o build//Timer.o
g++ -g -Wall -fPIC -I../include -O3 -DNOBLAS -c Matrix.cc -o build//Matrix.o
Matrix.cc:13:21: error: ieee754.h: No such file or directory
Matrix.cc: In function ‘double nextpow2(double)’:
Matrix.cc:86: error: ‘ieee754_double’ was not declared in this scope
Matrix.cc:86: error: expected `;' before ‘val’
Matrix.cc:87: error: ‘val’ was not declared in this scope
Matrix.cc:88: error: ‘IEEE754_DOUBLE_BIAS’ was not declared in this scope
Matrix.cc: At global scope:
Matrix.cc:48: warning: ‘snan’ defined but not used
Matrix.cc:49: warning: ‘inf’ defined but not used
gmake[1]: *** [build//Matrix.o] Error 1
gmake[1]: Leaving directory `/Users/yaozhongsong/Documents/MATLAB/segbench/Util'