
您能否告訴我,如何在 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
目錄中運行。
或者,您可以重新開始並進行樹內建置。