在这里点击新手!
我正在尝试在https://github.com/Microsoft/malmo/blob/master/doc/build_linux.md之后在我的linux机器(Ubuntu 16.04)上构建Malmo项目
但是我坚持使用cmake命令: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".
我得到的错误是找不到CSharp(缺少:CSHARP_TYPE CSHARP_VERSION CSHARP_COMPILER)。以下是完整的错误消息。
f3.txt
如何让cmake在这里找到Csharp?
答案 0 :(得分:0)
我遵循了@Beefster的建议。安装mono解决了这个问题。
将Mono存储库添加到您的系统 (Ubuntu 16.04)
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
回声" deb http://download.mono-project.com/repo/ubuntu xenial main" | sudo tee /etc/apt/sources.list.d/mono-official.listsudo apt-get update
安装Mono
sudo apt-get install mono-devel