The C compiler identification is GNU
The CXX compiler identification is GNU
Check for working C compiler: C:/WinAVR-20100110/bin/avr-gcc.exe
Check for working C compiler: C:/WinAVR-20100110/bin/avr-gcc.exe -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
The C compiler "C:/WinAVR-20100110/bin/avr-gcc.exe" is not able to compile
a simple test program.它会失败,并显示以下输出:
Change Dir: F:/projects/UniRobot/code/navigation/build/CMakeFiles/CMakeTmp
Run Build Command:C:/PROGRA~1/CMAKE2~1.8/bin/cmake.exe
"cmTryCompileExec/fast"
CMake Error: The source directory
"F:/projects/UniRobot/code/navigation/build/CMakeFiles/CMakeTmp/cmTryCompileExec/fast"
does not exist.
Specify --help for usage, or press the help button on the CMake GUI.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:11 (PROJECT)所以,在Linux和win7下一切正常,但是在XP SP2,SP3下我有这个错误。这意味着我的控制器的AVR编译器是不正确的,CMake不能提供使用WINAVR编译器的测试程序。第一次运行时,这个错误也在Win7下,但在第二次运行后,它就消失了。我在windows reg中写了路径。我重写了指向编译器sh和cmake的路径。但是错误仍然存在。
发布于 2011-10-29 02:14:38
编译器C和C++已经写在CMake交叉编译文件中。你可以在这里看到我是如何做到这一点的http://robot-develop.org/archives/2952
在另一台安装了Win Vista和7的机器上,一切正常。
我尝试手动选择C|C++编译器文件AVR-GCC和AVR-G++从WINAVR目录,但错误仍然发生。
https://stackoverflow.com/questions/7928202
复制相似问题