looking for windows developer to test cmake buildsystem

Alexander Neundorf neundorf at kde.org
Wed Feb 1 22:40:02 CET 2006


On Wednesday 01 February 2006 00:20, Peter Kümmel wrote:
> Alexander Neundorf wrote:
...
> Here some fixes:
> - build libkdewin32.lib, because cmake is searching for lib...

If this happens, there must be something going wrong. I use cmake at work also 
under windows, and when I say
find_library(FOO_LIBRARY NAMES foo)
it *always* finds foo.dll, not libfoo.lib.
Are you using the visual studio generator or the nmake makefile generator ?

Brad, might there be a difference between those two ?
(see the corresponding find_library() and add_library() commands below)

> Index: cmake/modules/FindKDE4.cmake
> ===================================================================
> --- cmake/modules/FindKDE4.cmake	(Revision 504381)
> +++ cmake/modules/FindKDE4.cmake	(Arbeitskopie)
> @@ -53,7 +53,10 @@
>  ENDIF(MINGW)
>
>  IF(MSVC)
> -   FIND_LIBRARY(KDE4_KDEWIN32_LIBRARY NAMES kdewin32)
> +   FIND_LIBRARY(KDE4_KDEWIN32_LIBRARY NAMES kdewin32
> +     PATHS
> +  	 $(CMAKE_SOURCE_DIR)/win
> +  )
>     IF (NOT KDE4_WIN32_LIBRARY)
>        MESSAGE(FATAL_ERROR "Could not find kdewin32 library, make sure to
> build and install kdelibs/win/ first" ) ENDIF (NOT KDE4_WIN32_LIBRARY)
> Index: win/CMakeLists.txt
> ===================================================================
> --- win/CMakeLists.txt	(Revision 504378)
> +++ win/CMakeLists.txt	(Arbeitskopie)
> @@ -40,10 +40,10 @@
>  bootstrap.cpp)
>
>
> -add_library(kdewin32 SHARED ${win_LIB_SRCS} )
> +add_library(libkdewin32 SHARED ${win_LIB_SRCS} )

I think for the beginning it should be the most simple option to first compile 
and install kdelibs/win/ and then kdelibs/. And in this case it is absolutely 
required that the configure step of kdelibs/ finds the kdewin32.dll and their 
headers correctly.

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list