[QGIS-trac] Re: [Quantum GIS] #2370: Native and faster compilation of Python bindings

Quantum GIS qgis at qgis.org
Fri Jan 15 08:37:37 EST 2010


#2370: Native and faster compilation of Python bindings
-----------------------------------------------------+----------------------
        Reporter:  wonder                            |         Owner:  wonder       
            Type:  patch                             |        Status:  new          
        Priority:  major: does not work as expected  |     Milestone:  Version 1.5.0
       Component:  Build/Install                     |       Version:  HEAD         
      Resolution:                                    |      Keywords:               
Platform_version:                                    |      Platform:  All          
        Must_fix:  No                                |   Status_info:  0            
-----------------------------------------------------+----------------------
Comment (by jef):

 Works with minor changes for the MSVC build:

 cmake/SIPMacros.cmake:
 {{{
 < FILE(APPEND filename "")
 > FILE(APPEND ${filename} "")
 }}}

 python/CMakeLists.txt:

 {{{
 > IF(MSVC)
 >  ADD_DEFINITIONS(-DNOMINMAX)
 > ENDIF(MSVC)
 }}}

 otherwise I get errors in {{{qgsrasterbands.h}}}.

 Also linking the {{{${QT_LIBS}}}} is not necessary ({{{qgis_core}}} and
 {{{qgis_gui}}} already are linked with them).

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/2370#comment:2>
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