如何在编译阶段时解决cmake错误

时间:2012-03-12 05:28:55

标签: fltk player-stage

在编译阶段..即cmake部分,我收到此错误,我无法解决 仅供参考:玩家和舞台是最新版本。

-- Stage version 3.2.2
-- Operating system is Linux
-- Build type RELEASE
-- Checking for libtool
-- Checking for required libraries...
--   * FLTK version 1.3.0 detected via /usr/bin/fltk-config
-- Checking for optional libraries...
--   * Player version 3.0.2 detected at /usr/local
-- checking for one of the modules 'websim'
  * WebSim not detected.
-- Installation path CMAKE_INSTALL_PREFIX=/usr/local
-- Configuring libstage
-- Configuring libstageplugin
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:
LTDL_INCLUDE_DIR
   used as include directory in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source
   used as include directory in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source/libstage
   used as include directory in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source/examples
   used as include directory in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source/examples/ctrl
   used as include directory in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source/assets
   used as include directory in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source/worlds
   used as include directory in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source/worlds/benchmark
   used as include directory in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source/libstageplugin
LTDL_LIB
    linked by target "stage" in directory /home/ravi/Desktop/AI/Stage-3.2.2-Source/libstage

-- Configuring incomplete, errors occurred!

2 个答案:

答案 0 :(得分:1)

对于播放器/舞台,您需要以下图书馆,这些图书馆可在一般资料库中找到:

播放器:

cmake (2.6.4-1ubuntu2)
cmake-curses-gui (2.6.4-1ubuntu2)
libtool (2.2.6a-4)
libfltk1.1-dev (1.1.9-6ubuntu2)
libglu1-mesa-dev (7.6.0-1ubuntu4)
libboost-thread1.40-dev
libboost-signals1.40-dev
libcv1 libcv-dev (for supporting opencv)
libgnomecanvasmm-2.6-dev (for playernav)
libgsl0-dev (scientific library)
libxmu-dev (for X11)
swig

阶段:

freeglut3-dev (OpenGL)
libgtk2.0-dev
libltdl7-dev
libpng12-0-dev

您是否忘记使用ccmake配置构建?

答案 1 :(得分:0)

您似乎没有安装libtool。奇怪的是,你没有在Linux上拥有它(许多应用程序依赖它)。 因此,首先检查您是否有libtool。如果你这样做,那么只需重新配置你的CMake并重试,如果没有,安装它,并重新配置CMake项目。