Hi, I followed the instructions on http://www.kdelibs.com and tried to build the lateest qt-4.1.1, cmake and kdelibs. My experiences so far: - Building qt-4.1.1 with the supplied patch and msvc2005 was simple. - Compiling cmake: I downloaded cmake-2.2 and generated NMake Makefiles. Compiled and installed fine, but msvcp80.dll/msvcr80.dll were missing and not installed, so running cmake failed. As I wanted to have CMakeSetup.exe anyway I tried again with Visual Studio 8 as target. This worked as expected. If I tried to generate the Visual Studio Project files with the latest cmake CVS snapshot, the Install Project did not work. It looked for the binary cmake in bin/cmake while it was generated in bin/release/cmake. - Built kdewin32 with nmake, no problems. - Wanted to install all prerequisites listed on kdelibs.com, couldn't find libagg2 on gnuwin32.sf.net. So the doc should probably be updated - cmake -G"NMake Makefiles" ..\kdelibs failed. It couldn't find the kdewin32 lib. The problem was, that it looked for a lib called kdewin32.lib, while by default the debug version is built which is called kdewin32d.lib. - The libxml2 include path was not detected automatically (although I unpacked the libxml2 zipfile in gnuwin32). I had to manually specify LIBXML2_INCLUDE_DIR to C:\gnuwin32\include\libxml (I guess the libxml subdirectory is the culprit) - The png lib and include path were not detected. I set PNG_LIBRARY=C:\gnuwin32\lib\libpng.lib and PNG_PNG_INCLUDE_DIR=C:\gnuwin32\libpng13 manually. - Compilation failed: Build log is attached.
Hope this information is valuable to you. Cheers, Michael
C:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock2.h(2144) : error C2733: second C linkage of overloaded function 'gethostname' not allowed C:\Programme\Microsoft Visual Studio 8\VC\PlatformSDK\include\winsock2.h (2141) : see declaration of 'gethostname' C:\KDE\build2\config.h(350) : error C2733: second C linkage of overloaded functi on 'initgroups' not allowed C:\KDE\build2\config.h(350) : see declaration of 'initgroups' C:\KDE\build2\config.h(362) : warning C4273: 'mkdtemp' : inconsistent dll linkag e C:\Programme\kdewin32\include\msvc\unistd.h(139) : see previous definiti on of 'mkdtemp' C:\KDE\build2\config.h(374) : warning C4273: 'mkstemps' : inconsistent dll linka ge C:\Programme\kdewin32\include\msvc\unistd.h(129) : see previous definiti on of 'mkstemps' C:\KDE\build2\config.h(386) : warning C4273: 'mkstemp' : inconsistent dll linkag e C:\Programme\kdewin32\include\msvc\unistd.h(137) : see previous definiti on of 'mkstemp' C:\KDE\build2\config.h(446) : warning C4273: 'strlcat' : inconsistent dll linkag e C:\Programme\kdewin32\include\msvc\string.h(46) : see previous definitio n of 'strlcat' C:\KDE\build2\config.h(458) : warning C4273: 'strlcpy' : inconsistent dll linkag e C:\Programme\kdewin32\include\msvc\string.h(44) : see previous definitio n of 'strlcpy' C:\KDE\build2\config.h(482) : error C2556: 'int usleep(unsigned int)' : overload ed function differs only by return type from 'void usleep(useconds_t)' C:\Programme\kdewin32\include\msvc\unistd.h(123) : see declaration of 'u sleep' C:\KDE\build2\config.h(482) : error C2371: 'usleep' : redefinition; different ba sic types C:\Programme\kdewin32\include\msvc\unistd.h(123) : see declaration of 'u sleep' C:\KDE\build2\config.h(337) : warning C4273: 'kde_gethostname' : inconsistent dl l linkage C:\Programme\kdewin32\include\msvc\unistd.h(115) : see previous definiti on of 'kde_gethostname' C:\KDE\build2\config.h(482) : error C2556: 'int usleep(unsigned int)' : overload ed function differs only by return type from 'void usleep(useconds_t)' C:\Programme\kdewin32\include\msvc\unistd.h(123) : see declaration of 'u sleep' C:\Programme\kdewin32\include\msvc\stdlib.h(41) : error C2375: 'random' : redefi nition; different linkage C:\KDE\build2\config.h(398) : see declaration of 'random' C:\Programme\kdewin32\include\msvc\stdlib.h(43) : error C2375: 'srandom' : redef inition; different linkage C:\KDE\build2\config.h(434) : see declaration of 'srandom' C:\Programme\kdewin32\include\msvc\stdlib.h(49) : error C2375: 'setenv' : redefi nition; different linkage C:\KDE\build2\config.h(422) : see declaration of 'setenv' C:\Programme\kdewin32\include\msvc\stdlib.h(51) : error C2556: 'void unsetenv(co nst char *)' : overloaded function differs only by return type from 'int unseten v(const char *)' C:\KDE\build2\config.h(470) : see declaration of 'unsetenv' C:\Programme\kdewin32\include\msvc\stdlib.h(51) : error C2371: 'unsetenv' : rede finition; different basic types C:\KDE\build2\config.h(470) : see declaration of 'unsetenv' C:\KDE\build2\config.h(482) : error C2556: 'int usleep(unsigned int)' : overload ed function differs only by return type from 'void usleep(useconds_t)' C:\Programme\kdewin32\include\msvc\unistd.h(123) : see declaration of 'u sleep' C:\KDE\build2\config.h(482) : error C2556: 'int usleep(unsigned int)' : overload ed function differs only by return type from 'void usleep(useconds_t)' C:\Programme\kdewin32\include\msvc\unistd.h(123) : see declaration of 'u sleep' NMAKE : fatal error U1077: 'C:\PROGRA~1\MICROS~3\VC\bin\cl.exe' : return code '0 x2' Stop. NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake .exe"' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake .exe"' : return code '0x2' Stop.
_______________________________________________ Kde-buildsystem mailing list Kde-buildsystem@kde.org https://mail.kde.org/mailman/listinfo/kde-buildsystem