Attached is a second draft of the instructions for building kdelibs with MSVC 8.

Feel free to do whatever you’d like with them.

 

Thanks for the great work!

                                        Building KDELibs with MSVC 8 and CMake

Prerequisites: Visual Studio 2005 (Express Edition?)
           GNUWin32: 
              bzip2, pcre, giflib, jpeg, openssl, zlib, libpng, libxml, libxslt
           An implementation of perl: Cygwin, MinGW, or ActivePerl. I use 
ActivePerl.
           A CVS client. I use WinCVS.
           A Subversion client. I use TortoiseSVN.

TODO: Screenshots! Fix any errors... someone mentioned missing dependencies? I 
couldn't find AGG or FAM for win32. 
                                
                                                Preparing your build environment
IMPORTANT: Remember to use the Visual Studio 2005 Command Prompt, not cmd.exe!
                                                
Step 1.) Install all prerequisites
        
Step 2.) Download qt-win-opensource-4.1.1.zip and Qt/4.1.x patch 

Step 3.) Apply patch to Qt; qconfigure msvc2005

Step 4.) Acquire the latest stable release of CMake (for bootstrapping) 
        (href to latest release?) 

Step 5.) Acquire the latest sources of CMake from their CVS repository.

Step 6.) Run CMakeSetup.exe; 
                 Select the source directory and desired build directory for 
CMake.
                 Click 'configure' - select nmake output. 
                 Verify the correctness of the build variables (highlighted in 
red)
                 Click 'configure' again, then click okay

Step 7.) Run the VS Command Prompt
             Execute 'nmake install' in the CMake build directory.

Step 8.) Edit build_env.bat to match the paths you're using, and execute it.

@echo off
set OLDPATH=%PATH%
set QTDIR=D:\kde-src\qt-win-opensource-src-4.1.1
set CMAKE_DIR=C:\Program Files\CMake
set PATH=%OLDPATH%;%QTDIR%\bin;%CMAKE_DIR%\bin\

                                                                Building KDELibs

Step 1.) Acquire latest SVN of KDELibs

Step 2.) Open VS Command prompt and execute build_env.bat

Step 3.) Execute 'cmakesetup' or 'cmake .'
                 Select the kdelibs source directory and the desired build 
directory. I suggest 
                 using separate directories, to maintain a clean source tree. 
Select either Visual Studio 2005 or NMake output. If you intend to debug the 
build system, I would suggest using nmake, and if you intend to debug kdelibs, 
I would suggest using Visual Studio 2005. 

Step 4.) Begin the compilation
                With nmake: 'nmake' 
                With Visual Studio 2005: devenv ALL_BUILD.vcproj /build "Debug" 
(or whichever
                target you prefer)
                OR: 
                Launch visual studio 2005, open ALL_BUILD.vcproj and select 
build from the
                'Build' menu.
                 

_______________________________________________
Kde-buildsystem mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kde-buildsystem

Reply via email to