【发布时间】:2017-12-28 22:52:01
【问题描述】:
这里是 CMake 新手!
我正在尝试在我的 linux 机器 (Ubuntu 16.04) 上构建 Malmo 项目,遵循 https://github.com/Microsoft/malmo/blob/master/doc/build_linux.md
但是我被 cmake 命令卡住了:cmake -DCMAKE_BUILD_TYPE=Debug ..
我得到的错误是找不到 CSharp(缺少:CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER)。以下是完整的错误信息。
aerin@aerin-HP-Z230-Tower-Workstation:~/MalmoPlatform/build$ cmake -DCMAKE_BUILD_TYPE=Debug ..
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- chrono
-- date_time
-- filesystem
-- iostreams
-- program_options
-- python
-- regex
-- system
-- thread
-- atomic
CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find CSharp (missing: CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
cmake/FindCSharp.cmake:67 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:121 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/aerin/MalmoPlatform/build/CMakeFiles/CMakeOutput.log".
See also "/home/aerin/MalmoPlatform/build/CMakeFiles/CMakeError.log".
如何让 cmake 在这里找到 Csharp?
【问题讨论】:
-
也许你可以从安装 Mono 开始。
-
感谢@Beefster 安装 Mono 解决了这个问题。