looking for windows developer to test cmake buildsystem
Peter Kümmel
syntheticpp at gmx.net
Wed Feb 1 23:40:52 CET 2006
Alexander Neundorf wrote:
> Hi,
>
> I committed some changes to svn based on your patches.
>
> Please check how it works for you.
> Step by step guide:
> 1) delete kdelibs/win/CMakeCache.txt
> 2) run cmake on kdelibs/win/CMakeLists.txt
> 3) build kdelibs/win/
> 4) install kdelibs/win/
> 5) add the directory where the headers were installed to to the environment
> variable for the include directories of your compiler
> 6) do the same for the installed kdewin32 library
>
> 7) delete kdelibs/CMakeCache.txt
> 8) run cmake on kdelibs/CMakeLists.txt
> 9) have a look at config.h, e.g. HAVE_STDLIB_H must be defined to 1
> 10) if this is the case, continue with 14)
> 11) if this is not the case, have a look at kdelibs/CMakeFiles/CMakeError.log
> and check why it failed,
> 12) fix the cause and/or post the error to this mailing list
> 13) go back to 7)
>
> 14) run make <------- if you come this far, you are quite good :-)
> 15) if it succeeds, dance around the table ;-)
> 16) if not try to fix it and/or post the error here
>
> Bye
> Alex
I'm now between 14) and 15) at least DCOP.dll was build. But I have do the
changes already posted:
1. config.h has to much forward declarations, which can be disabled by:
(HAVE_STDLIB_H is 1)
#define HAVE_GETHOSTNAME_PROTO
#define HAVE_SRANDOM_PROTO
#define HAVE_USLEEP_PROTO
#define HAVE_S_ISSOCK
2. remove KDE_DEPRECATED in dcopclient.h
3. some experimental linker fixes.
Index: dcop/CMakeLists.txt
===================================================================
--- dcop/CMakeLists.txt (Revision 504508)
+++ dcop/CMakeLists.txt (Arbeitskopie)
@@ -10,8 +10,17 @@
include_directories( ${KDE4_INCLUDE_DIR} ${QT_INCLUDES} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR} )
-add_definitions(-DICE_t -DTRANS_SERVER -DTRANS_CLIENT -DUNIXCONN -DANSICPP)
+add_definitions(-DICE_t -DTRANS_SERVER -DTRANS_CLIENT -DANSICPP)
+if(UNIX)
+ add_definitions(-DUNIXCONN)
+endif(UNIX)
+
+if(WIN32)
+ add_definitions(-DWIN32_LEAN_AND_MEAN -DDCOP_EXPORT="" -DSOCKCONN -DTCPCONN -FIkdelibs_global_win.h)
+endif(WIN32)
+
# dcop/KDE-ICE/Makefile.am: kICE
set(kICE_STAT_SRCS
@@ -100,6 +109,10 @@
target_link_libraries(DCOP ${QT_QTCORE_LIBRARY})
+if(WIN32)
+ target_link_libraries(DCOP kdewin32 ws2_32 )
+endif(WIN32)
+
More information about the Kde-buildsystem
mailing list