CMake can't find GIF

2006-08-15 Thread Matt Broadstone
[EMAIL PROTECTED]:~/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


[EMAIL PROTECTED]:~/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 --




[EMAIL PROTECTED]:~/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
[EMAIL PROTECTED]:~/kdesvn/kdelibs$ ls /usr/include | grep gif
gif_lib.h





What's going on?

Cheers,
Matt
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: CMake can't find GIF

2006-08-15 Thread Matt Broadstone
I have no idea how I did it, but I ran cmake a few times, deleting the
build directory each time and about the 3rd or 4th time it just
worked.. go figure :)

Cheers,
   Matt

On 8/15/06, Matt Broadstone [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED]:~/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


 [EMAIL PROTECTED]:~/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 --




 [EMAIL PROTECTED]:~/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
 [EMAIL PROTECTED]:~/kdesvn/kdelibs$ ls /usr/include | grep gif
 gif_lib.h





 What's going on?

 Cheers,
 Matt

___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: Exiting CMake

2006-08-15 Thread Brad King
Allen Winter wrote:
 Is there a little more graceful way of exiting other than message(FATAL_ERROR 
 message) ??
 
 For example, in the MACRO_DISPLAY_FEATURE_LOG() macro I want to exit if there
 are missing required features.  I want to display the messages that some 
 requirements
 are missing and then exit.
 
 But I don't want to panic the user with messages like:
 
   CMake Error: Error in cmake code at
   /data/kde/trunk/KDE/kdepimlibs/CMakeLists.txt:1:
   MESSAGE some message
   Current CMake stack: /data/kde/trunk/KDE/kdepimlibs/CMakeLists.txt
 
 I don't see a simple Quit() or Exit() type of cmake commands.

There is currently no such command but you can submit a feature request:

http://www.cmake.org/Bug

-Brad
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: X11_Xss_LIB

2006-08-15 Thread Allen Winter
On Tuesday 15 August 2006 14:52, David Faure wrote:
 On Monday 31 July 2006 01:34, Allen Winter wrote:
  Howdy,
  
  If FindX11.cmake run during the kdepim CMake process doesn't find the
  /usr/X11R6/lib/libXss.so library, then later on you get the message
  Please set the following variables: X11_Xss_LIB (ADVANCED)
 
 This is usually when some code is using X11_Xss_LIB unconditionally instead 
 of testing whether it's available
 (assuming this library is optional; otherwise a macro_log_feature call is 
 needed, of course).
 
This is exactly what I did in kdepim/CMakeLists.txt, if I understand you 
correctly.

-- 
KDE: Same Thing We Do Everyday... Try to Conquer the World

___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: koffice/karbon

2006-08-15 Thread Tim Beaulen

On 8/4/06, David Faure [EMAIL PROTECTED] wrote:
On Thursday 03 August 2006 19:43, Tim Beaulen wrote: SVN commit 569387 by beaulen: -fPIC is needed on AMD64 it seems
Well, amd64 detects it, but isn't -fPIC needed always?


I have no idea.
Someone on IRC told me he had problems compiling Karbon on his AMD64 computer.

I looked around on the internet and saw that ia64 computers also had problems with -fPIC.

(Browsing through the CMake code I saw that -fPIC is only added to the c-flags and not the cxx-flags.)

Since it looks like this is a problem on 64 bit computers, I added this temporary hack.




The correct solution is, like BCoppens told me on IRC, to add a check to see if -fPIC can be used and if it needs to be used.
So compiling a little test program to see if it fails, and if it does, add -fPIC to the cxx flags.

___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem


Re: CMake 2.4.3 available for download

2006-08-15 Thread André Wöbbeking
On Tuesday 15 August 2006 20:54, David Faure wrote:
 On Monday 31 July 2006 22:09, Bill Hoffman wrote:
  * Added FindBoose.cmake

 It locates the nearest bar? :-))

Ah, and I thougt it was a typo and wondered why it didn't find my boost 
installation :-)
___
Kde-buildsystem mailing list
Kde-buildsystem@kde.org
https://mail.kde.org/mailman/listinfo/kde-buildsystem