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

John C. Tull jctull at gmail.com
Tue Apr 17 19:24:17 EDT 2007


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.

Additionally, I had to modify the CMakeLists.txt file with cmake to  
reflect the postgresql and gdal libs as dynamic libraries (*.dylib)  
rather than static (*.so).

Alas, so close yet so far... 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?

Cheers,
John

[ 99%] Generating ui_qgsmapserverexportbase.h
[ 99%] Generating moc_qgsmapserverexport.cxx
[ 99%] Generating moc_ui_qgsmapserverexportbase.cxx
/Users/jctull/sources/qgis-8/Release-0_8_0/build/tools/ 
mapserver_export/ui_qgsmapserverexportbase.h:0: Warning: No relevant  
classes found. No output generated.
Scanning dependencies of target msexport
[ 99%] Building CXX object tools/mapserver_export/CMakeFiles/ 
msexport.dir/qgsmapserverexport.o
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
qgsmapserverexport.cpp: In member function 'QString  
QgsMapserverExport::fullPathName()':
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
qgsmapserverexport.cpp:214: warning: control reaches end of non-void  
function
[ 99%] Building CXX object tools/mapserver_export/CMakeFiles/ 
msexport.dir/ms_main.o
[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*'
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx: At global scope:
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx:231: warning: 'swig_type_info* SWIG_TypeDynamicCast 
(swig_type_info*, void**)' defined but not used
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx:419: warning: 'const char* SWIG_UnpackDataName 
(const char*, void*, size_t, const char*)' defined but not used
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx:483: warning: 'swig_type_info* SWIG_TypeQuery(const  
char*)' defined but not used
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx:499: warning: 'void SWIG_PropagateClientData 
(swig_type_info*)' defined but not used
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx:1202: warning: 'void* SWIG_Python_MustGetPtr 
(PyObject*, swig_type_info*, int, int)' defined but not used
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx:1216: warning: 'int SWIG_Python_ConvertPacked 
(PyObject*, void*, size_t, swig_type_info*, int)' defined but not used
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx:1389: warning: 'int SWIG_CheckLongInRange(long int,  
long int, long int, const char*)' defined but not used
/Users/jctull/sources/qgis-8/Release-0_8_0/tools/mapserver_export/ 
msexport_wrap.cxx:2002: warning: 'void SWIG_Python_addvarlink 
(PyObject*, char*, PyObject* (*)(), int (*)(PyObject*))' defined but  
not used
make[2]: *** [tools/mapserver_export/CMakeFiles/msexport.dir/ 
msexport_wrap.o] Error 1
make[1]: *** [tools/mapserver_export/CMakeFiles/msexport.dir/all]  
Error 2
make: *** [all] Error 2




More information about the Qgis-developer mailing list