0

Unknown CMake command "ogre_config_sample_lib"OGRE をインストールした後、OGRE Sample フォルダで cmake を使用しようとすると、エラーが発生します。このエラーが発生する前に、次の手順を実行しました。

cdフォルダーSample/Smoke、およびそこにmkdirという名前の新しいディレクトリに。その後実行し、エラーに遭遇します。buildcdcmake ..

これが私のエラーの詳細情報です:

-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/lib/ccache/gcc
-- Check for working C compiler: /usr/lib/ccache/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/lib/ccache/c++
-- Check for working CXX compiler: /usr/lib/ccache/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:10 (ogre_config_sample_lib):
  Unknown CMake command "ogre_config_sample_lib".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.8)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
4

3 に答える 3

2

そこからcmakeを実行することは想定されていないという点で、tiburは正しいです。あなたがしたことを行いますが、SDK dir のルートで行います。

于 2012-11-20T21:20:00.353 に答える
1

おそらく、そのディレクトリから CMake を実行することは想定されていません。Sampleディレクトリ全体に対して実行してみてください。どちらも機能しない場合は、そのogre_config_sample_libコマンドが定義されている場所を確認してください。

于 2011-07-14T12:04:10.473 に答える
0

ルート ogre ディレクトリには、サンプルをコンパイルする .bat ファイルがあります。また、src やその他のディレクトリから cmake を実行しようとしたところ、同じエラーが発生しましたが、.bat ファイルはすべてのサンプルを簡単にコンパイルしてくれました。

于 2013-01-12T02:54:43.027 に答える