help with CMake on win32

Peter Kümmel syntheticpp at gmx.net
Tue Feb 7 00:44:11 CET 2006


Michael Drüing wrote:
> Hi,
>  
> I'm recently following the discussion about the buildsystems for KDE4. After
> I managed to successfully build some basic KDE-libs using bksys I'm now
> trying to do the same with the CMake projects. But I could use a few hints
> there.
> 
> I got cmake to configure everything, but what do I do afterwards? There's no
> Makefile generated for nmake. What am I missing?
> CMake prints this just before finishing[1]:
> 
> D:\kde4\src\kdelibs-build>cmake -G "NMake Makefiles" d:\kde4\src\kdelibs
> ....lots of output skipped....
> -- Found LibXml2: d:/Devel/local/lib/xml2.lib
> -- Found LibXslt: d:/Devel/local/lib/xslt.lib
> -- skipped kab2kabc, two moc files with the same name
> Could not find GIF
> -- Configuring done
> D:\kde4\src\kdelibs-build>
> 
This is a break of the configure process!

You could download the libraries here:
http://gnuwin32.sourceforge.net/packages.html
use the "Developer files".

When you've installed them some where on your system
(in future there will by a path where it will be
found automatically) then call

1. generate kdewin32 build files erzeugen:


2. build kdewin32.lib
nmake

3. generate kdelibs build files:
cmake -G"NMake Makefiles" ..\kdelibs
   or
cmakesetup

cmakesetup this starts a user interface for the paths.
You could also edit CMakeCache.txt.

To restart delete CMakeCache.txt.

to select a specific library edit /kdelibs/CMakeLists.txt
add the end. e.g.:
add_subdirectory( dcop )
#add_subdirectory( libltdl )

4. build kdelibs:
nmake



Good Luck,
Peter





> Could it have something to do with the GIF error? Is giflib a dependancy?
> 
> Also, how do I specify a different KDE root directory? The generated
> config.h has these:
> #define KDEDIR "C:/Program Files/kdelibs"
> #define KDESYSCONFDIR "C:/Program Files/kdelibs/etc"
> 
> however, I want them to be d:/kde4 and d:/kde4/etc, respectively (and so on
> for all the other directories). Setting KDEDIR prior to running CMake had no
> effect.
> 
> Thanks,
> --Michael


More information about the Kde-buildsystem mailing list