Building Calligra/Kexi on Windows - attica with CMake 2.8.12.2

Jörg Knobloch jorgk at jorgk.com
Wed Jul 23 12:54:51 UTC 2014


Hi all,

I am trying to build Kexi on Windows. I am following the (sadly very 
outdated) instructions at
https://community.kde.org/Calligra/Building_Calligra_on_Windows
which I am updating at the same time.

Currently I'm fighting with "emerge kdelibs".

I commented out making qca and soprano, but I can't comment out attica, 
since it seems to be required.

Sadly attica requires CMake 2.8.12, it can't be made with the CMake 
2.8.3 which is part of what the "emerge system" installed.

So I installed CMake 2.8.12.2. This now gives this error (see enclosed), 
something with ECM.

I'm stuck. Any comments?

Kind regards,
Jörg.

-------------- next part --------------
C:\kderoot\emerge>kdeenv
kdesettings.bat executed
KDEROOT     : r:\
KDECOMPILER : msvc2010
KDESVNDIR   : s:\
KDEGITDIR   : q:\
PYTHONPATH  : "C:\Python34"
DOWNLOADDIR : t:\
Setting environment for using Microsoft Visual Studio 2010 x86 tools.

R:\>cmake -version
cmake version 2.8.12.2

R:\>emerge kdelibs
emerge debug: buildAction: all
emerge debug: packageName: kdelibs
emerge debug: buildType: RelWithDebInfo
emerge debug: buildTests: False
________________________________________________________________________________

>From git://anongit.kde.org/attica
 * branch            master     -> FETCH_HEAD
Already up-to-date.
Already on 'master'
entering: r:\build\kdesupport\attica-0.2.0-20101204\work\msvc2010-RelWithDebInfo
-gitHEAD
cleaning r:\build\kdesupport\attica-0.2.0-20101204\work\msvc2010-RelWithDebInfo-
gitHEAD
entering: r:\build\kdesupport\attica-0.2.0-20101204\work\msvc2010-RelWithDebInfo
-gitHEAD
emerge debug: cmake -G "NMake Makefiles"  -DQT_QMAKE_EXECUTABLE:FILEPATH=r:/bin/
qmake.exe  -DCMAKE_INSTALL_PREFIX="r:/" -DCMAKE_INCLUDE_PATH="r:/include" -DCMAK
E_LIBRARY_PATH="r:/lib" -DCMAKE_PREFIX_PATH="r:/" -DCMAKE_BUILD_TYPE=RelWithDebI
nfo "q:\attica"
-- The C compiler identification is MSVC 16.0.40219.1
-- The CXX compiler identification is MSVC 16.0.40219.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio
10.0/VC/bin/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi
o 10.0/VC/bin/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studi
o 10.0/VC/bin/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Error at CMakeLists.txt:6 (find_package):
  Could not find a package configuration file provided by "ECM" (requested
  version 1.0.0) with any of the following names:

    ECMConfig.cmake
    ecm-config.cmake

  Add the installation prefix of "ECM" to CMAKE_PREFIX_PATH or set "ECM_DIR"
  to a directory containing one of the above files.  If "ECM" provides a
  separate development package or SDK, be sure it has been installed.


-- Configuring incomplete, errors occurred!
See also "R:/build/kdesupport/attica-0.2.0-20101204/work/msvc2010-RelWithDebInfo
-gitHEAD/CMakeFiles/CMakeOutput.log".
emerge fatal error: while running configure cmd: cmake -G "NMake Makefiles"  -DQ
T_QMAKE_EXECUTABLE:FILEPATH=r:/bin/qmake.exe  -DCMAKE_INSTALL_PREFIX="r:/" -DCMA
KE_INCLUDE_PATH="r:/include" -DCMAKE_LIBRARY_PATH="r:/lib" -DCMAKE_PREFIX_PATH="
r:/" -DCMAKE_BUILD_TYPE=RelWithDebInfo "q:\attica"
emerge fatal error: running python r:\emerge\portage\kdesupport\attica\attica-0.
2.0-20101204.py compile
emerge debug: Task: Emerge stopped after: 0:00:06.400009
R:\>





























































































































-------------- next part --------------
# -*- coding: utf-8 -*-
import info

class subinfo(info.infoclass):
    def setTargets( self ):
        self.svnTargets['gitHEAD'] = '[git]kde:kdelibs|KDE/4.8|'
        for ver in ['0', '1', '2', '3', '4']:
            self.targets['4.8.' + ver] = "ftp://ftp.kde.org/pub/kde/stable/4.8." + ver + "/src/kdelibs-4.8." + ver + ".tar.xz"
            self.targetInstSrc['4.8.' + ver] = 'kdelibs-4.8.' + ver
        self.patchToApply['4.8.0'] = [("kdelibs-4.8.0-20120219.diff", 1),
                                      ("kdecore-add-kdeconf.diff", 1),
                                      ("fix-plasma-crash.diff", 1)]
        self.patchToApply['4.8.4'] = [("0001-fixed-crash-for-unknow-property-added-icon-support-f.patch",1),
                                      ("0001-fixed-two-issues-and-implemented-basic-battery-suppo.patch",1)]
        self.shortDescription = "The KDE Library"
        self.defaultTarget = 'gitHEAD'


    def setDependencies( self ):
        self.buildDependencies['virtual/base'] = 'default'
        self.buildDependencies['dev-util/perl'] = 'default'
        self.buildDependencies['win32libs-bin/automoc'] = 'default'
        self.dependencies['kdesupport/hupnp'] = 'default'
        self.dependencies['kdesupport/kdewin'] = 'default'
        self.dependencies['kdesupport/phonon'] = 'default'
        self.dependencies['kdesupport/attica'] = 'default'
        self.dependencies['kdesupport/dbusmenu-qt'] = 'default'
        # self.dependencies['kdesupport/qca'] = 'default'
        self.dependencies['kdesupport/qimageblitz'] = 'default'
        # self.dependencies['kdesupport/soprano'] = 'default'
        self.dependencies['kdesupport/strigi'] = 'default'
        self.dependencies['virtual/kdelibs-base'] = 'default'
        self.dependencies['data/docbook-dtd'] = 'default'
        self.dependencies['data/docbook-xsl'] = 'default'
        self.dependencies['data/shared-desktop-ontologies'] = 'default'
        self.runtimeDependencies['kdesupport/phonon-vlc'] = 'default'

from Package.CMakePackageBase import *

class Package(CMakePackageBase):
    def __init__( self ):
        self.subinfo = subinfo()
        CMakePackageBase.__init__( self )
        self.subinfo.options.configure.defines = ""
        if compiler.isMinGW():
          self.subinfo.options.configure.defines += " -DKDE_DISTRIBUTION_TEXT=\"MinGW %s\" " % compiler.getMinGWVersion()
        elif compiler.isMSVC():
          self.subinfo.options.configure.defines = " -DKDE_DISTRIBUTION_TEXT=\"%s\" " % compiler.getVersion()

    def install( self ):
        if not CMakePackageBase.install( self ):
            return False
        if compiler.isMinGW():
            manifest = os.path.join( self.packageDir(), "kconf_update.exe.manifest" )
            executable = os.path.join( self.installDir(), "bin", "kconf_update.exe" )
            utils.embedManifest( executable, manifest )
        return True

if __name__ == '__main__':
    Package().execute()


More information about the Kde-windows mailing list