tigervnc e cmake no hpux: por que não consegue encontrar o zlib?

0

Eu uso este script para configurar o tigervnc no hpux cmake é o mais recente 3.4.3 O zlib é o mais recente 2.8 Mas o script falha, por quê?

export PATH=$PATH:/opt/cmake/bin/
export CC="/usr/local/bin/gcc"
export HPUXLDFLAGS='-L/usr/local/lib/hpux32'
export HPUXCFLAGS='-I/usr/local/include' 
export LDFLAGS="$HPUXLDFLAGS"
export CFLAGS="$HPUXCFLAGS"

cmake \
    -G "Unix Makefiles" \
    -DCMAKE_C_FLAGS:STRING="$HPUXCFLAGS" \
    -DCMAKE_LD_FLAGS:STRING="$HPUXLDFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$HPUXCFLAGS" \
    -Wno-dev \
    -DCMAKE_INSTALL_PREFIX=/opt/tigervnc \
    -DMAN_INSTALL_DIR=/opt/tigervnc/man \
    -DSYSCONF_INSTALL_DIR=/etc/opt/tigervnc \
    -DENABLE_PAM:BOOL=OFF \
    -DBUILD_JAVA:BOOL=ON \
    ..

Script falha com essas linhas

-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/hpux32/libX11.so
CMake Error at /opt/cmake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find ZLIB (missing: ZLIB_LIBRARY) (found version "1.2.8")
Call Stack (most recent call first):
  /opt/cmake/share/cmake-3.4/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  /opt/cmake/share/cmake-3.4/Modules/FindZLIB.cmake:124 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:125 (find_package)

O meu script está errado?

    
por elbarna 27.01.2016 / 21:35

1 resposta

0

Solução encontrada, deve usar isso em vez de exportar

cmake \
    -G "Unix Makefiles" \
    -DCMAKE_C_FLAGS:STRING="$HPUXCFLAGS" \
    -DCMAKE_LD_FLAGS:STRING="$HPUXLDFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$HPUXCFLAGS" \
    -DZLIB_LIBRARY="/usr/local/lib/hpux32" \
    -DZLIB_INCLUDE_DIR="/usr/local/include" \
    -Wno-dev \
    -DCMAKE_INSTALL_PREFIX=/opt/tigervnc \
    -DMAN_INSTALL_DIR=/opt/tigervnc/man \
    -DSYSCONF_INSTALL_DIR=/etc/opt/tigervnc \
    -DENABLE_PAM:BOOL=OFF \
    -DBUILD_JAVA:BOOL=ON \
    
por 27.01.2016 / 21:59

Tags