========================================= KRITA WINDOWS (x86) BUILDING INSTRUCTIONS ========================================= OS: Windows 8 Professional x64 Installed: - Python 3.3.0 x86 Windows Installer - Microsoft Visual Studio Express 2010 - Git version 1.8.1.2-preview20130201 - TortoiseGit 1.8.1.0 (64 bit) - Make sure that Python has been installed with the environment variable option enabled - To avoid program conflicts (especially with local mingw and git installations), strip the system path setting to the bare minimum necessary for the building process to work and your system to properly function. Mine looked like this: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ - IMPORTANT: make sure that the system locale is set to English (US) or English (UK), or any other latin multilingual setting. By using any east asian system locale setting it is highly likely to encounter random issues during the building process due to improper system codepage settings which cannot be solved by forcing it in the command prompt window with the CHCP command. 1) Create C:\kderoot\ 2) Open C:\kderoot\ directory in Windows Explorer 3) Right click in the empty space -> Git Clone... 3.1) URL: git://anongit.kde.org/emerge.git 3.2) Directory: C:\kderoot\emerge 4) Right click C:\kderoot\emerge directory -> TortoiseGit -> Switch/Checkout... 4.1) Branch: click "..." 4.2) select Refs -> remotes -> origin -> kde-4.9 4.3) click OK, close 5) Create C:\kderoot\etc\ 6) Copy C:\kderoot\emerge\kdesettings-example.bat to D:\kderoot\etc\ 7) Rename C:\kderoot\etc\kdesettings-example.bat to D:\kderoot\etc\kdesettings.bat 8) Open C:\kderoot\etc\kdesettings.bat in text editor 9) Now perform some changes to this file. Read comments carefully and set other options according to your preference/configuration, but make sure that these are properly set or enabled: set KDEROOT=C:\kderoot preferably on your main drive, but not required set KDECOMPILER=msvc2010 set EMERGE_ARCHITECTURE=x86 msvc 2010 supports only x86 architecture set PYTHONPATH="c:\python33" set if you forgot to install python with the pythonpath environment variable set EMERGE_USE_SHORT_PATH=1 necessary for qt to correctly compile set EMERGE_ROOT_DRIVE=m: make sure that the 4 drives aren't set to drive letters already in use! set EMERGE_SOURCEONLY=True set EMERGE_ENABLE_SQLITEDB=TRUE set EMERGE_MAKE_PROGRAM=%KDEROOT%\dev-utils\bin\jom.exe will speed things up, but it's optional 10) Open C:\kderoot\emerge\portage\dev-util\cmake\cmake-2.8.4.2011622.py 10.1) Change self.defaultTarget occurrence to '2.8.3-2' instead of 'v2.8.8' or similar ones 11) Open C:\kderoot\emerge\portage\kdeapps\calligra\calligra-20120805.py 11.1) Comment out the kdepimlibs dependency by adding a # symbol like at the start of the line this (WARNING: this might be unnecessary under en-US or similar system locale configurations): # self.dependencies['virtual/kdepimlibs'] = 'default' 11.2) Edit the .py file to add "-DCREATIVEONLY=ON " "-DPACKAGERS_BUILD=ON " to the list of options. WARNING: Pay attention to the trailing spaces after each option, they are important. Please keep mind of identation consistency of the python language ie make sure that tabs aren't used instead of spaces here. For clarity, the list of options should look like this: defines = "" defines += "-DCREATIVEONLY=ON " defines += "-DPACKAGERS_BUILD=ON " defines += "-DBUILD_kexi=OFF " defines += "-DBUILD_plan=OFF " defines += "-DBUILD_doc=OFF " defines += "-DHAVE_MEMORY_LEAK_TRACKER=OFF" 12) To command line again. Change directory to c:\kderoot\emerge\ 13) kdeenv 13.1) Output should look like this: kdesettings.bat executed KDEROOT : m:\ KDECOMPILER : msvc2010 KDESVNDIR : n:\ KDEGITDIR : o:\ PYTHONPATH : c:\python33 DOWNLOADDIR : p:\ Setting environment for using Microsoft Visual Studio 2010 x86 tools. 14) emerge 7zip 14.1) This command is done in advance to avoid possible issues where emerge can't find '7za' 15) Perform the following commands in sequence. The entire building process will take a few hours to complete. WARNING: even if the pre-configuration step was performed correctly, network or connection problems may result in errors. In most cases, reentering the last performed command will resume the building process. 15.1) emerge qt 15.2) emerge kdelibs 15.3) emerge calligra 16) krita 17) ...enjoy! _______________________________________________ kimageshop mailing list kimageshop@kde.org https://mail.kde.org/mailman/listinfo/kimageshop