CMake can't find GIF

Matt Broadstone mbroadst at gmail.com
Tue Aug 15 09:04:26 CEST 2006


kde4 at lappy:~/kdesvn/kdelibs/build$ cmake ..
-DCMAKE_INSTALL_PREFIX=/home/kde4/kde -DKDE4_BUILD_TESTS=1
-- Found Qt-Version 4.2.0-snapshot-20060701
-- Building kdelibs...
-- have_visibility: 1 version>=4.1: FALSE bad alloctor: FALSE
-- Found KDE4 kconfig_compiler preprocessor:
/home/kde4/kdesvn/kdelibs/build/bin/./kconfig_compiler.sh
-- Skipped kdecore/kconfig_compiler example
-- Skipped kdecore/kconfig_compiler autotest
-- Found JPEG: /usr/lib/libjpeg.so
-- Looked for GIF libraries named gif;libgif;ungif;libungif;giflib.
-- Found no acceptable GIF library. This is fatal.
CMake Error: Error in cmake code at
/home/kde4/kdesvn/kdelibs/cmake/modules/FindGIF.cmake:40:
MESSAGE Could NOT find GIF
Current CMake stack:
/home/kde4/kdesvn/kdelibs/khtml/CMakeLists.txt;/home/kde4/kdesvn/kdelibs/cmake/modules/FindGIF.cmake
-- Configuring done


kde4 at lappy:~/kdesvn/kdelibs$ cat
/home/kde4/kdesvn/kdelibs/cmake/modules/FindGIF.cmake

--- SNIP --

FIND_PATH(GIF_INCLUDE_DIR gif_lib.h
  /usr/include
  /usr/local/include
)

set(POTENTIAL_GIF_LIBS gif libgif ungif libungif giflib)
FIND_LIBRARY(GIF_LIBRARIES NAMES ${POTENTIAL_GIF_LIBS}
  PATHS
  /usr/lib
  /usr/local/lib
)

-- SNIP --




kde4 at lappy:~/kdesvn/kdelibs$ ls /usr/lib | grep gif
libgif.a
libgif.so
libgif.so.4
libgif.so.4.1.4
libungif.a
libungif.so
libungif.so.4
libungif.so.4.1.4
kde4 at lappy:~/kdesvn/kdelibs$ ls /usr/include | grep gif
gif_lib.h





What's going on?

Cheers,
    Matt


More information about the Kde-buildsystem mailing list