2012-03-12 79 views
0

在編譯階段..即cmake部分,我得到這個錯誤,我無法解決 僅供參考:玩家和階段是最新版本。如何在編譯階段解決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! 

回答

0

你沒有安裝libtool,看來。奇怪的是,你沒有在Linux上使用它(許多應用程序依賴於它)。 因此,首先檢查您是否有libtool。如果你這樣做,那麼只需重新配置你的CMake並重試,如果沒有,安裝它,並重新配置CMake項目。

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 

你有沒有忘記configurate befor通過建設使用ccmake?

相關問題