0
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 へのパスを書き直しました。しかし、エラーはまだ起こります。

4

1 に答える 1

0

コンパイラ C および C++ は、CMake クロス コンパイル ファイルに既に記述されています。私がこれをどのように行ったかは、ここで見ることができますhttp://robot-develop.org/archives/2952

Win Vista および 7 を搭載した別のマシンでは、すべて問題ありません。

C|C++ コンパイラ ファイル AVR-GCC および AVR-G++ を WINAVR ディレクトリから手動で選択しようとしましたが、それでもエラーが発生します。

于 2011-10-28T18:14:38.420 に答える