[QGIS-trac] Re: [Quantum GIS] #1950: Python binary choice on OS X
 (10.6) / Building bug
    Quantum GIS 
    qgis at qgis.org
       
    Fri Sep 25 09:59:49 EDT 2009
    
    
  
#1950: Python binary choice on OS X (10.6) / Building bug
--------------------------------------------------------------+-------------
        Reporter:  vince                                      |         Owner:  nobody             
            Type:  bug                                        |        Status:  new                
        Priority:  critical: causes crash or data corruption  |     Milestone:                     
       Component:  Build/Install                              |       Version:  1.3.0              
      Resolution:                                             |      Keywords:  spatialite.c python
Platform_version:  10.6 (Snow Leopard)                        |      Platform:  OS X               
        Must_fix:  No                                         |   Status_info:  0                  
--------------------------------------------------------------+-------------
Comment (by kyngchaos):
 I looked into the cmake python detection, and it's two separate steps -
 the library and the executable.  The executable is simple, and it should
 easily find your python.  The library is different in that for OSX, it
 ''always'' looks for the python framework in the standard locations, and
 there is no way to tell it to look elsewhere.
 So while cmake may report finding your python executable, it finds a
 different framework and ''that'' is what is linked into Qgis (Qgis only
 uses the executable during compilation to run the setup.py).
 It's a cmake problem, nothing that can be fixed in Qgis.
 ... maybe you can short-circuit cmake - add some cmake vars to your
 configuration:
 {{{
 -D Python_FRAMEWORKS="/path/to/your/Python.framework"
 -D CMAKE_FIND_FRAMEWORKS_INCLUDED=1
 }}}
-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1950#comment:10>
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