Cmake não consegue encontrar bibliotecas X11

0

Estou tentando compilar um pacote baseado em GUI no meu RHEL 7.2 (ambiente XFCE). Mas toda vez que eu executo cmake .. , ele falha com o relatório:

[user@localhost build]$ cmake ..
-- BUILD TYPE set to the default type:  'Release'
-- Setting fallback CUDA_ARCH=35
-- Setting cpu precision to double
-- Setting gpu precision to single
-- Using cuda wrapper to compile....
-- Cuda version is >= 7.5 and single-precision build, enable double usage warning.
-- MPI_INCLUDE_PATH : /usr/local/openmpi-3.0/include
-- MPI_LIBRARIES : /usr/local/openmpi-3.0/lib/libmpi.so
-- MPI_CXX_INCLUDE_PATH : /usr/local/openmpi-3.0/include
-- MPI_CXX_LIBRARIES : /usr/local/openmpi-3.0/lib/libmpi.so
-- 
-- ------------------ YOU HAVE NO X11-LIBS ------------------
-- CCmake found no X11-libs on your system, which are required for the GUI.
--  You CAN add the flag -DGUI=OFF to avoid using X11
CMake Error at CMakeLists.txt:200 (message):
  X11 is required for GUI.

Também verifiquei as bibliotecas X11 instaladas no meu sistema:

[root@localhost build]# rpm -qa | grep libX11
libX11-devel-1.6.5-1.el7.x86_64
libX11-common-1.6.5-1.el7.noarch
libX11-1.6.5-1.el7.x86_64

Apesar dos outros programas GUI estarem funcionando bem. Como posso resolver este problema?

    
por diffracteD 09.04.2018 / 07:58

1 resposta

1

Exemplo do CentOS 7, construindo o Relion.

# yum install openmpi-devel fftw-devel fltk-devel
# cp /usr/lib64/openmpi/bin/* /usr/bin/

git clone https://github.com/3dem/relion.git
cd relion/
mkdir -p external/fltk/lib      // 'make install' fails if no (empty) lib/ folder
mkdir build
cd build/
cmake ..
make
.
[100%] Built target tiltpair_plot

# make install

Resultado: Relion-git.040918-1.el7.x86_64.rpm (2.0MB) link → Fornece / usr / local / bin / {45 arquivos}, / usr / local / lib / {gui_background.xpm, librelion_gui_lib.so, librelion_lib.so }

Faça o download e instale: cd Downloads/ && yum install ./Relion-git.040918-1.el7.x86_64.rpm

$ relion : a GUI do Relion abre em OK.

$ ldd relion | grep Xlib
        libXrender.so.1 => /lib64/libXrender.so.1 (0x00007f2cf841c000)
        libXcursor.so.1 => /lib64/libXcursor.so.1 (0x00007f2cf8211000)
        libXfixes.so.3 => /lib64/libXfixes.so.3 (0x00007f2cf800b000)
        libXext.so.6 => /lib64/libXext.so.6 (0x00007f2cf7df8000)
        libXft.so.2 => /lib64/libXft.so.2 (0x00007f2cf7be2000)
        libXinerama.so.1 => /lib64/libXinerama.so.1 (0x00007f2cf77a1000)
        libX11.so.6 => /lib64/libX11.so.6 (0x00007f2cf7463000)
        libXau.so.6 => /lib64/libXau.so.6 (0x00007f2cf60b7000)

# yum provides */libXcursor.so.1 ,
Etc. etc. para decidir os nomes da sua "falta de libX ** - devel".

    
por 09.04.2018 / 22:39