[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 12:35:16 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 vince):

 Replying to [comment:10 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
 > }}}

 I'll try that. On the other hand, similarly to what I did with Grass, I
 can use install_name_tool to change the reference inside the library.

 Anyway, thanks for the help. Now, I'm trying to figure out why the Grass
 plugin won't open any mapset but just tells me they are already in use,
 even if they are new...

 Cheers !

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