当我尝试从MinGW MSYS2系统上的源代码编译cmake2.8.12.2时,运行sh bootstrap后出现以下错误:
make:没有规则制作目标'/cygdrive/e/software/pkg/cmake-2.8.12.2/Source / cmStandardIncludes.cxx','cmStandardIncludes.o'需要。停止。
我已检查过源目录,发现cmStandardIncludes.cxx.Kindly在这方面提供帮助。谢谢。
输出:
E:\software\pkg\cmake-2.8.12.2>sh bootstrap
---------------------------------------------
CMake 2.8.12.2, Copyright 2000-2012 Kitware, Inc.
C compiler on this system is: gcc
C++ compiler on this system is: g++
Makefile processor on this system is: make
g++ is GNU compiler
g++ does not have setenv
g++ does not have unsetenv
g++ has environ in stdlib.h
g++ has STL in std:: namespace
g++ has ANSI streams
g++ has streams in std:: namespace
g++ has sstream
g++ has operator!=(string, char*)
g++ has stl iterator_traits
g++ has standard template allocator
g++ has allocator<>::rebind<>
g++ does not have non-standard allocator<>::max_size argument
g++ has stl containers supporting allocator objects
g++ has header cstddef
g++ requires template friends to use <>
g++ supports member templates
g++ has standard template specialization syntax
g++ has argument dependent lookup
g++ does not have struct stat with st_mtim member
g++ has ios::binary openmode
g++ has ANSI for scoping
---------------------------------------------
make: *** No rule to make target '/cygdrive/e/software/pkg/cmake-2.8.12.2/Source
/cmStandardIncludes.cxx', needed by 'cmStandardIncludes.o'. Stop.
---------------------------------------------
Error when bootstrapping CMake:
Problem while running make
---------------------------------------------
Log of errors: /cygdrive/e/software/pkg/cmake-2.8.12.2/Bootstrap.cmk/cmake_boots
trap.log
---------------------------------------------
答案 0 :(得分:1)
如果你想使用MinGW编译器,我建议你使用MinGW shell提示符而不是cygwin。这可确保正确设置几个MinGW编译器特定的环境变量。
注意,如果你使用MSYS,你必须使用&#34; MSYS Makefiles&#34;生成器和make
程序应该只调用make
(如果你已经正确安装),如果你使用&#34; MinGW Makefiles&#34;作为生成器,您必须使用mingw32-make
作为make程序。
如果您生成&#34; MinGW Makefiles&#34;并调用make,调用错误的make程序。明确指定 mingw32-make 。