
Ubuntu 14.04 に cdec をインストールする方法を教えてください。新しいタイプの cdec インストール (CMake) が私のシステムでは動作しないからです。誰か知っていますか。Ubuntu 14.04 に新しいバージョンの cdec プラットフォームをインストールするためのステップバイステップのチュートリアルはありますか。
よろしくお願いします。
答え1
ソフトウェアをビルドするための手順は、ソースコードとともに配布されるファイルcmake
に記載されています。BUILDING
Instructions for building
-----------------------------------
1) Create a build directory and generate Makefiles using CMake
mkdir build
cd build
cmake ..
If the cmake command completes successfully, you can proceed. If you have
libraries (such as Boost) installed in nonstandard locations, you may need
to run cmake with special options like -DBOOST_ROOT=/path/to/boost.
2) Build
make -j 2
3) Test
make test
./tests/run-system-tests.pl
Everything should pass.
4) Enjoy!
しかし、ステップ3)のPerlスクリプトは、実際にはビルドが「ツリー外」ではなく「ツリー内」で行われたと想定しているようです。つまりcmake .
、make
親 cdec
別のサブディレクトリを使用する代わりに、ディレクトリを使用しますbuild
。
上記の推奨手順1)と2)に従った場合、おそらくテストを実行する最も簡単な方法は、ディレクトリをcdec/test
自分のディレクトリにコピーすることですbuild
。たとえば、内部からbuild
、次のように実行します。
cp -r ../tests/ ./
./tests/run-system-tests.pl
その後、ディレクトリ内からも実行できるようになりますbuild
。
あるいは、最初からやり直してツリー内ビルドを実行することもできます。