CMake não consegue encontrar o X11

5

Estou tentando compilar o Minetest 0.4.10 no Ubuntu 12.04.3 LTS com o CMake, mas recebo este erro:

andrew@rasts-tv:~$ cmake \Minetest-0.4.10
-- *** Will build version 0.4.10 ***
-- IRRLICHT_SOURCE_DIR = 
-- IRRLICHT_INCLUDE_DIR = IRRLICHT_INCLUDE_DIR-NOTFOUND
-- IRRLICHT_LIBRARY = IRRLICHT_LIBRARY-NOTFOUND
-- Could NOT find IRRLICHT (missing:  IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR) 
-- CURL_INCLUDE_DIR = CURL_INCLUDE_DIR-NOTFOUND
-- CURL_LIBRARY = CURL_LIBRARY-NOTFOUND
-- CURL_DLL = 
-- GetText disabled
CMake Error at /usr/share/cmake-2.8/Modules/FindX11.cmake:411 (MESSAGE):
  Could not find X11
Call Stack (most recent call first):
  src/CMakeLists.txt:147 (find_package)


-- Configuring incomplete, errors occurred!

Eu instalei o LXDE (Lightweight X11 Desktop Environment), mas ele ainda mostra o mesmo erro. O que devo fazer?

Esta é a mensagem de erro que recebi depois de instalar os arquivos de cabeçalho x11:

andrew@rasts-tv:~$ cmake \Minetest-0.4.10
-- *** Will build version 0.4.10 ***
-- IRRLICHT_SOURCE_DIR = 
-- IRRLICHT_INCLUDE_DIR = IRRLICHT_INCLUDE_DIR-NOTFOUND
-- IRRLICHT_LIBRARY = IRRLICHT_LIBRARY-NOTFOUND
-- Could NOT find IRRLICHT (missing:  IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR) 
-- CURL_INCLUDE_DIR = CURL_INCLUDE_DIR-NOTFOUND
-- CURL_LIBRARY = CURL_LIBRARY-NOTFOUND
-- CURL_DLL = 
-- GetText disabled
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91(MESSAGE):
Could NOT find OpenGL (missing: OPENGL_gl_LIBRARY)
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:252(_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindOpenGL.cmake:153 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
src/CMakeLists.txt:148 (find_package)


-- Configuring incomplete, errors occurred!
    
por user249312 21.09.2014 / 22:36

1 resposta

9

LXDE e X11 não são exatamente a mesma coisa. Você provavelmente precisará dos arquivos de cabeçalho X11. Tente instalar o libx11-dev :

sudo apt-get install libx11-dev
    
por muru 21.09.2014 / 23:00

Tags