[Qgis-developer] 0.8 svn branch build in OS X

Tom Elwertowski telwertowski at comcast.net
Wed Apr 18 15:57:33 EDT 2007


John C. Tull wrote:
> I tried building the 0.8 svn branch today with cmake on OS X. Building 
> works fine from the 0.9 trunk using the newest unix frameworks supplied 
> at www.kyngchaos.com, but you can only get things to work in the 0.8 
> branch using the older GEOS 2.2.3 and GDAL 1.3.2 frameworks. The newer 
> 3.0 and 1.4 frameworks, respectively, should be installed if you want 
> the GRASS.app binary from CVS to work, but you will need to manually 
> redirect the 'Current' symbolic link under 'Versions' in the GEOS 
> framework to 2.2 rather than 3.0.

The Release-0_8_0 branch compiles for me as is. I am not using geos and 
gdal frameworks however. My geos and gdal are installed into 
/usr/local/geos-3.0.0rc4 and /usr/local/gdal-1.4.1-geos3. geos 2.2.3 and 
gdal 1.4.1 are also installed in /usr/local since I build with both 
versions of geos.

> The Mapserver plugin is failing with the following errors. This appears similar to the GRASS issue discussed 
> earlier today. Any suggestions for getting around this problem?
> 
> [100%] Building CXX object 
> tools/mapserver_export/CMakeFiles/msexport.dir/msexport_wrap.o
> /Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/msexport_wrap.cxx: 
> In function 'int SWIG_Python_ConvertPtr(PyObject*, void**, 
> swig_type_info*, int)':
> /Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/msexport_wrap.cxx:1180: 
> error: invalid conversion from 'const char*' to 'char*'
> /Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/msexport_wrap.cxx: 
> In function 'void SWIG_Python_FixMethods(PyMethodDef*, swig_const_info*, 
> swig_type_info**, swig_type_info**)':
> /Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/msexport_wrap.cxx:2071: 
> error: invalid conversion from 'const char*' to 'char*'

These errors may be caused by a different version of Python or SWIG (I 
have 2.3 and 1.3.31).

Try copying msexport_wrap.cxx from trunk to Release-0_8_0. The only 
differences between the files appear to address the errors above.

Tom



More information about the Qgis-developer mailing list