KDE_EXPORT in kdelibs and winposix

Ralf Habacker ralf.habacker at freenet.de
Fri Feb 10 09:10:44 CET 2006


Brad King schrieb:
> Ralf Habacker wrote:
>   
>> William A. Hoffman schrieb:
>>     
>>> It must not be finding all the required libraries.  You can edit the CMakeCache.txt
>>> file and tell it where the libraries are that it did not find. 
>>>  
>>>       
>> CMake Error: Could not find LibXml2
>> Could not find LibXslt
>> It is possible to skip this check temporary ?
>>     
>
> I think this is a required library for kdelibs which is why it 
> complains.  You can download binaries for such libs from
>
> http://sourceforge.net/project/showfiles.php?group_id=23617
>
> After extracting the binaries put the include directory in 
> CMAKE_INCLUDE_PATH and the lib directory in CMAKE_LIBRARY_PATH (either 
> in your environment or as CMake cache entries).  This should allow it to 
> be found automatically.
>
> I use this command line to build kdelibs since the gnuwin32 and kdewin32 
> libraries are not in a system location:
>
> cmake ../kdelibs -G"MSYS Makefiles" 
> -DCMAKE_INCLUDE_PATH:STRING=c:/home/kingb/Programs/KDE/Utilities/include\;c:/home/kingb/Programs/KDE/Utilities/include/libxml2\;c:/home/kingb/Programs/KDE/kdewin32-gcc-msys-install/include 
> -DCMAKE_LIBRARY_PATH:STRING=c:/home/kingb/Programs/KDE/Utilities/lib\;c:/home/kingb/Programs/KDE/kdewin32-gcc-msys-install/bin
>
> Note that libxml2 put its headers under .../include/libxml2 not .../include.
>   
I have tried
C:\Daten\kde4\kdelibs>cmake -G "MinGW Makefiles" 
-DCMAKE_INCLUDE_PATH:STRING=c:/_KDE4/include\;c:/_KDE4/include/libxml2 
-DCMAKE_LIBRARY_PATH
:STRING=c:/_KDE4/lib

but this does not work also with latest cvs version. As search path 
c:/_KDE4/include\;c:/_KDE4/include/libxml2  is used as one path. The 
directory delimiter does not work.

I think specific include directorys of a package should be setup in the 
related cmake find module as the unix part does. I suggest the following 
patch

Index: FindLibXml2.cmake
===================================================================
--- FindLibXml2.cmake    (revision 507814)
+++ FindLibXml2.cmake    (working copy)
@@ -17,6 +17,7 @@
 SET(LIBXML2_DEFINITIONS ${_LibXml2Cflags})
 
 FIND_PATH(LIBXML2_INCLUDE_DIR libxml/xpath.h
+  ${CMAKE_INCLUDE_PATH}/libxml2
   ${_LibXml2IncDir}/libxml2
   /usr/include/libxml2
   /usr/local/include/libxml2

Ralf




More information about the Kde-buildsystem mailing list