[QGIS-trac] Re: [Quantum GIS] #2845: QGIS won't compile with python
Quantum GIS
qgis at qgis.org
Tue Jun 29 07:05:07 EDT 2010
#2845: QGIS won't compile with python
-----------------------------------------------------+----------------------
Reporter: Alexbit | Owner: borysiasty
Type: bug | Status: closed
Priority: major: does not work as expected | Milestone:
Component: Python plugins and bindings | Version:
Resolution: duplicate | Keywords: python bindings
Platform_version: Linux | Platform: Linux
Must_fix: No | Status_info: 1
-----------------------------------------------------+----------------------
Changes (by jef):
* status: new => closed
* resolution: => duplicate
Comment:
Replying to [comment:5 Alexbit]:
> I'm sorry but, probably, I was not clear in the exposition of the
problem.
Ah ok, I didn't get it. So this is a duplicate of #2678.
Try this patch:
{{{
--- qgis-1.4.0.orig/cmake/Python.cmake
+++ qgis-1.4.0/cmake/Python.cmake
@@ -148,12 +148,12 @@
IF (HAVE_SIP_MODULE AND SIP_BINARY_PATH AND SIP_INCLUDE_DIR)
# check for SIP version
# minimal version is 4.7 (to support universal builds)
- SET (SIP_MIN_VERSION 040700)
- TRY_RUN_PYTHON (RES "import sip\nprint '%x' % sip.SIP_VERSION"
SIP_VERSION)
+ SET (SIP_MIN_VERSION 263936) # 0x40700
+ TRY_RUN_PYTHON (RES "import sip\nprint '%d' % sip.SIP_VERSION"
SIP_VERSION)
IF (SIP_VERSION EQUAL "${SIP_MIN_VERSION}" OR SIP_VERSION GREATER
"${SIP_MIN_VERSION}")
SET (SIP_IS_GOOD TRUE)
ENDIF (SIP_VERSION EQUAL "${SIP_MIN_VERSION}" OR SIP_VERSION
GREATER "${SIP_MIN_VERSION}")
-
+
IF (NOT SIP_IS_GOOD)
MESSAGE (STATUS "SIP is required in version 4.7 or later!")
ENDIF (NOT SIP_IS_GOOD)
}}}
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2845#comment:6>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list