Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何修复cmGLobalNInjaGenerator.cxx.o“;cmake的错误?_Cmake_Ubuntu 16.04_Failed Installation_Cmake Modules - Fatal编程技术网

如何修复cmGLobalNInjaGenerator.cxx.o“;cmake的错误?

如何修复cmGLobalNInjaGenerator.cxx.o“;cmake的错误?,cmake,ubuntu-16.04,failed-installation,cmake-modules,Cmake,Ubuntu 16.04,Failed Installation,Cmake Modules,我正在安装较新版本的cmake,即cmake 3.10.1,在构建CXX对象源时,make命令给了我错误 我已经安装了忍者1.5.1,但仍然得到相同的错误 用于安装cmake: wget <link of the cmake3.10.1> ./configure make # (at this stage getting error) wget /配置 make#(在此阶段出现错误) 错误是: [ 83%] Building CXX object Source/CMakeFile

我正在安装较新版本的cmake,即cmake 3.10.1,在构建CXX对象源时,make命令给了我错误

我已经安装了忍者1.5.1,但仍然得到相同的错误

用于安装cmake:

wget <link of the cmake3.10.1>
./configure
make # (at this stage getting error)
wget
/配置
make#(在此阶段出现错误)
错误是:

[ 83%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmGlobalNinjaGenerator.cxx.o
/media/nadia/967E9B477E9B1F55/data/cmake-3.10.1/Source/cmGlobalNinjaGenerator.cxx: In member function ‘void cmGlobalNinjaGenerator::AppendTargetDependsClosure(const cmGeneratorTarget*, cmNinjaOuts&, bool)’:
/media/nadia/967E9B477E9B1F55/data/cmake-3.10.1/Source/cmGlobalNinjaGenerator.cxx:1077:40: error: ‘class std::map<const cmGeneratorTarget*, std::set<std::basic_string<char> > >’ has no member named ‘emplace_hint’
Source/CMakeFiles/CMakeLib.dir/build.make:5942: recipe for target 'Source/CMakeFiles/CMakeLib.dir/cmGlobalNinjaGenerator.cxx.o' failed
make[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmGlobalNinjaGenerator.cxx.o] Error 1
CMakeFiles/Makefile2:2355: recipe for target 'Source/CMakeFiles/CMakeLib.dir/all' failed
make[1]: *** [Source/CMakeFiles/CMakeLib.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2
[83%]构建CXX对象源代码/CMakeFiles/CMakeLib.dir/cmGlobalNinjaGenerator.CXX.o
/media/nadia/967E9B477E9B1F55/data/cmake-3.10.1/Source/cmGlobalNinjaGenerator.cxx:在成员函数“void cmGlobalNinjaGenerator::AppendTargetDependsClosure(const cmgenerator target*,cmninjaout和,bool)”中:
/media/nadia/967E9B477E9B1F55/data/cmake-3.10.1/Source/cmGlobalNinjaGenerator.cxx:1077:40:错误:“class std::map”没有名为“emplace\u hint”的成员
Source/CMakeFiles/CMakeLib.dir/build.make:5942:目标'Source/CMakeFiles/CMakeLib.dir/cmGlobalNinjaGenerator.cxx.o'的配方失败
make[2]:***[Source/CMakeFiles/CMakeLib.dir/cmGlobalNinjaGenerator.cxx.o]错误1
CMakeFiles/Makefile2:2355:目标“Source/CMakeFiles/CMakeLib.dir/all”的配方失败
生成[1]:***[Source/CMakeFiles/CMakeLib.dir/all]错误2
Makefile:162:目标“全部”的配方失败
make:**[全部]错误2
请参阅更新C++编译器。请参阅此更新您的C++编译器。