Não é possível instalar libsdl2-dev ou cmake glfw .. (problema libxinerama-dev)

5

Então eu continuaria aprendendo o Opengl depois de mudar para o Ubuntu, Eu tentei esta explicação para compilar o glfw e usá-lo, mas eu tenho isso:

-- Using X11 for window creation
-- Using GLX for context creation
CMake Error at CMakeLists.txt:268 (message):
  The Xinerama library and headers were not found


-- Configuring incomplete, errors occurred!

Este é o CMakeError.log e este é o CMakeOutput.log .

Ok, depois de falhar no glfw, mudei para a libsdl2:

sudo apt-get install libsdl2-dev

E o resultado (chocante ...):

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libsdl2-dev : Depends: libxinerama-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

O que posso fazer? Eu tentei isso:

sudo apt-get install libxinerama-dev

O resultado que obtenho é o seguinte:

Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libxinerama-dev : Depends: libxinerama1 (= 2:1.1.3-1) but 2:1.1.3-1+b1 is to be installed
E: Unable to correct problems, you have held broken packages.

Obrigado antecipadamente.

    
por Naor Hadar 07.05.2015 / 15:32

1 resposta

3

Espero que não seja tarde demais. Mas também corri para o mesmo problema ao instalar o glfw lib. Como eu resolvi isso:

  1. Navegue até meu diretório pai usando cd ~

  2. Em seguida, executou sudo apt-get install libxinerama-dev

  3. Navegue novamente para o diretório do glfw e execute cmake -G "Unix Makefiles"

  4. Desta vez, o erro foi xcursor lib não encontrado. Então, eu repeti as etapas acima e instalei xcursor lib com sudo apt-get install libxcursor-dev

  5. Depois disso, navegue de volta para o diretório glfw , e o comando cmake foi bem-sucedido.

por shane 30.06.2015 / 15:02