This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[SOLVED] PyKDE4 Build Problem [KDE4.2.1 and Trunk]

Tags: None
(comma "," separated)
mankeke
Registered Member
Posts
2
Karma
0
OS
Hi my first post here, I'm trying to build KDE from source specifically version 4.2.1, not my first time building it, but it is my first experience with CMake.
My problem goes as follows, while trying to "cmakekde" pyKDE4 I get the following error:

Code: Select all
CMake Error at CMakeLists.txt:13 (FIND_PACKAGE):
  Could not find module FindPythonLibrary.cmake or a configuration file for
  package PythonLibrary.

  Adjust CMAKE_MODULE_PATH to find FindPythonLibrary.cmake or set
  PythonLibrary_DIR to the directory containing a CMake configuration file
  for PythonLibrary.  The file will have one of the following names:

    PythonLibraryConfig.cmake
    pythonlibrary-config.cmake



CMake Error at CMakeLists.txt:14 (INCLUDE):
  include could not find load file:

    PythonMacros


CMake Error at CMakeLists.txt:16 (FIND_PACKAGE):
  Could not find module FindSIP.cmake or a configuration file for package
  SIP.

  Adjust CMAKE_MODULE_PATH to find FindSIP.cmake or set SIP_DIR to the
  directory containing a CMake configuration file for SIP.  The file will
  have one of the following names:

    SIPConfig.cmake
    sip-config.cmake



CMake Error at CMakeLists.txt:20 (INCLUDE):
  include could not find load file:

    SIPMacros


CMake Error at CMakeLists.txt:22 (FIND_PACKAGE):
  Could not find module FindPyQt4.cmake or a configuration file for package
  PyQt4.

  Adjust CMAKE_MODULE_PATH to find FindPyQt4.cmake or set PyQt4_DIR to the
  directory containing a CMake configuration file for PyQt4.  The file will
  have one of the following names:

    PyQt4Config.cmake
    pyqt4-config.cmake



CMake Error at CMakeLists.txt:28 (MACRO_OPTIONAL_FIND_PACKAGE):
  Unknown CMake command "MACRO_OPTIONAL_FIND_PACKAGE".


CMake Warning (dev) in CMakeLists.txt:
  No cmake_minimum_required command is present.  A line of code such as

    cmake_minimum_required(VERSION 2.6)

  should be added at the top of the file.  The version specified may be lower
  if you wish to support older CMake versions for this project.  For more
  information run "cmake --help-policy CMP0000".
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Configuring incomplete, errors occurred!
Press  to continue...

This is the current Trunk in the SVN but the problem also appeared on the KDE4.2.1 tag, because I'm new with this CMake stuff, it got me a while but I finally found that the cmake/modules dir is empty and apparently I don't have the required checkers to build it, I wanted to know if this was a known bug, but my searches returned nothing. So I thought the next step would have to be asking here.

My system is a Debian Squeeze with Qt4.4.3 compiled from source from the KDE4.2.1 tag, kdelibs, kdebase, kdebase-runtime were built without issues, followed the installation guide quite close so I think I'm out of options.

Last edited by mankeke on Thu Mar 12, 2009 11:38 pm, edited 1 time in total.
mankeke
Registered Member
Posts
2
Karma
0
OS
Finally I solved it myself, there where two bugs in the pyKDE4 dist: the documentation was totally misleading and there was a header file missing. I'm attaching a patch that solved it for me. I'm sorry for all the fuss

Code: Select all
Index: INSTALL
===================================================================
--- INSTALL   (Revision: 938778)
+++ INSTALL   (working copy)
@@ -17,7 +17,7 @@
 that the Python interpreter that you want to use is the first one
 found on your $PATH.
 
-Use CMake to build and install like you would any other KDE module.
+Install Instructions in docs/install.html
 
 Once everything is built and installed, run the following in this
 current directory as a test:
Index: configure.py
===================================================================
--- configure.py   (Revision: 938778)
+++ configure.py   (working copy)
@@ -108,7 +108,7 @@
                   "kdecore":     ["QtCore", "QtGui", "QtNetwork", "sonnet"],
                   "solid":       ["QtCore", "QtGui", "solid"],
                   "kdeui":       ["QtCore", "QtGui", "QtXml", "QtSvg", "sonnet"],
-                  "kio":         ["QtCore", "QtGui", "QtXml", "QtSvg", "solid", "kio", "kfile", "kssl"],
+                  "kio":         ["QtCore", "QtGui", "QtXml", "QtSvg", "QtNetwork", "solid", "kio", "kfile", "kssl"],
                   "kutils":      ["QtCore", "QtGui", "QtXml", "QtSvg", "ksettings"],
                   "kparts":      ["QtCore", "QtGui", "QtXml", "QtSvg", "solid", "kio", "kfile", "kssl", "kparts"],
                   "ktexteditor": ["QtCore", "QtGui", "QtXml", "QtSvg", "ktexteditor", "kate", "solid", "kio", "kfile", "kssl", "kparts", "ktexteditor", "kate"],


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Evergrowing, Google [Bot], lockheed, mesutakcan, Sogou [Bot]