[QGIS-trac] Re: [Quantum GIS] #1950: Python binary choice on OS X
(10.6) / Building bug
Quantum GIS
qgis at qgis.org
Thu Sep 24 14:35:53 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):
> First, the build fails in spatialite.c. It appears that OS X 10.6, or my
configuration, does not like the call to "locale_charset ()", which
results in an undefined symbol at link time. However, bypassing the #ifdef
APPLE, thus doing the same as LINUX/UNIX, works fine.
Works fine in the Xcode project build. locale_charset() is a part of the
iconv in OS X. Maybe there are variations of libiconv (OSX uses GNU
iconv) and you're using a different one than provided by Apple that uses
the linux method? In any case, this is really an issue with spatialite,
and is not something that can be fixed in Qgis.
> Next, I would like to know how to override PYTHON_LIBRARY; I've tried to
force it with a suitable Cmake define, but it results as a mess, and I
don't understand exactly with what I should set it (a path? a flag?). This
relates to the next inquiry: how can I force Qgis to use a specific Python
binary?
Qgis detects Python from your PATH, so add your prefered python bin folder
to the front of your PATH before configuring. Also, Qgis uses an internal
python interpreter and links directly to the python framework, so it
happens at linking and you can't change it at runtime.
> Otherwise, I don't get the Grass plugin, but maybe it's because I lack
gdal-grass.
Qgis uses the GRASS libraries directly, not thru GDAL. Maybe it's not
autodetecting GRASS? On OSX, cmake defaults to looking for an application
build of GRASS in a default install path, so if you have a Unix build or
have customized the install location, you must specify the
GRASS_INCLUDE_DIR and GRASS_PREFIX when configuring Qgis.
--
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1950#comment:1>
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