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 と Win 7 ではすべて問題ありませんが、XP SP2、SP3 ではこのエラーが発生します。これは、コントローラー用の AVR コンパイラーが正しくなく、CMake が WINAVR コンパイラーを使用したテスト プログラムを提供できないことを意味します。最初にこのエラーを実行したときは Win7 でも発生しましたが、2 回目の実行後には消えました。Windows regにパスを書きました。コンパイラ、sh、cmake へのパスを書き直しました。しかし、エラーはまだ起こります。