簡體   English   中英

Cmake錯誤:項目中使用了以下變量,但將其設置為NOTFOUND試圖在archlinux中編譯Rods Rigs

[英]Cmake Error: The following variables are used in the project, but they are set to NOTFOUND trying to compile Rigs of Rods in archlinux

我一直在嘗試使用4.2.6內核在archlinux下編譯Rods Rigs。 我已遵循http://www.rigsofrods.com/wiki/pages/Compiling_Sources_under_Linux中提供的官方編譯說明,我已經成功編譯了ogredeps,並且CMake沒有給我錯誤,我什至為它啟用了多線程(在運行make的同時使用make) CMake。),但是當我嘗試編譯Ogre時(在編譯說明的“ Ogre本身”一節中提到),CMake會給我以下信息:

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
OIS_INCLUDE_DIR (ADVANCED)
   used as include directory in directory /root/ror-deps/ogre/Samples
   used as include directory in directory /root/ror-deps/ogre/Samples
   used as include directory in directory /root/ror-deps/ogre/Samples
   used as include directory in directory /root/ror-deps/ogre/Samples
   used as include directory in directory /root/ror-deps/ogre/Samples
   used as include directory in directory /root/ror-deps/ogre/Samples
   used as include directory in directory /root/ror-deps/ogre/Samples
   used as include directory in directory /root/ror-deps/ogre/Samples

這也是/root/ror-deps/ogre/CMakeFiles/CMakeError.log的輸出:

Determining if the system is big endian passed with the following output:
Change Dir: /root/ror-deps/ogre/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_4b356/fast"
/usr/bin/make -f CMakeFiles/cmTC_4b356.dir/build.make CMakeFiles/cmTC_4b356.dir/build
make[1]: se entra en el directorio '/root/ror-deps/ogre/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_4b356.dir/TestEndianess.c.o
/usr/bin/cc     -o CMakeFiles/cmTC_4b356.dir/TestEndianess.c.o   -c /root/ror-deps/ogre/CMakeFiles/CMakeTmp/TestEndianess.c
Linking C executable cmTC_4b356
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4b356.dir/link.txt  --verbose=1
/usr/bin/cc       CMakeFiles/cmTC_4b356.dir/TestEndianess.c.o  -o cmTC_4b356 -rdynamic 
 make[1]: se sale del directorio '/root/ror-deps/ogre/CMakeFiles/CMakeTmp'

TestEndianess.c:
/* A 16 bit integer is required. */
typedef unsigned short cmakeint16;

/* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
   On a big endian machine the characters will be exchanged pairwise. */
 const cmakeint16 info_little[] =  {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};

/* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
   On a little endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_big[] =     {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_little[argc];
  require += info_big[argc];
  (void)argv;
  return require;
}

我研究了一下,看了以下問題:

-CMake錯誤:此項目中使用了以下變量,但將它們設置為NOTFOUND - CMake錯誤:此項目中使用了以下變量,但將它們設置為NOTFOUND - CMake錯誤:此項目中使用了以下變量,但是將它們設置為NOTFOUND嗎? 在羅斯

但是他們提到了不同的問題,或者我根本無法理解答案

OIS_INCLUDE_DIR表示未找到OIS的包含文件(頭文件)。 您的發行版具有必須安裝的軟件包,或者必須將OIS安裝目錄添加到CMAKE_PREFIX_PATH

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM