[Gdal-dev] build problems in ubuntu

Ken-ichi Ueda kueda at nature.berkeley.edu
Mon Jul 10 12:57:28 EDT 2006


Hi all,

I've been trying to get GDAL compiled in Ubuntu (Dapper) without much 
success.  Here's what I've been getting with the CVS version from 7.10.06:

./configure

[configures normally]

make

[compiles ok for a while, then a bunch of gdal_wrap.c errors, ending in]

gdal_wrap.c: In function 'init_gdal':
gdal_wrap.c:12040: error: 'PyObject' undeclared (first use in this function)
gdal_wrap.c:12040: error: 'm' undeclared (first use in this function)
gdal_wrap.c:12040: error: 'd' undeclared (first use in this function)
gdal_wrap.c:12040: warning: left-hand operand of comma expression has no 
effect
gdal_wrap.c:12040: warning: statement with no effect
gdal_wrap.c:12042: warning: implicit declaration of function 'Py_InitModule'
gdal_wrap.c:12043: warning: implicit declaration of function 
'PyModule_GetDict'
make[1]: *** [gdal_wrap.o] Error 1
make[1]: Leaving directory `/usr/local/src/gdal-cvs-2006.07.10/pymod'
make: *** [py-module] Error 2




./configure --without-python

[configure normally]

make

[compiles ok]

make install

[installs ok]




./configure --without-python --with-ruby

[configures normally]

make

[compiles ok with recent patch by Sylvain]

make install

[does alright, then tons of errors with gdal_wrap.cpp, ending in]

gdal_wrap.cpp:8726: error: expected primary-expression before ')' token
gdal_wrap.cpp:8726: error: expected `)' before '_wrap_get_driver'
gdal_wrap.cpp:8727: error: expected primary-expression before ')' token
gdal_wrap.cpp:8727: error: expected `)' before '_wrap_open'
gdal_wrap.cpp:8728: error: expected primary-expression before ')' token
gdal_wrap.cpp:8728: error: expected `)' before '_wrap_open_shared'
gdal_wrap.cpp:8729: error: expected primary-expression before ')' token
gdal_wrap.cpp:8729: error: expected `)' before 
'_wrap_auto_create_warped_vrt'
gdal_wrap.cpp: At global scope:
gdal_wrap.cpp:1488: warning: 'RubyArrayToXMLTree' defined but not used
make[3]: *** [gdal_wrap.o] Error 1
make[3]: Leaving directory `/usr/local/src/gdal-cvs-2006.07.10/swig/ruby'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/usr/local/src/gdal-cvs-2006.07.10/swig/ruby'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/usr/local/src/gdal-cvs-2006.07.10/swig'
make: *** [install-actions] Error 2



I'm not really sure what's going on here, especially with Python not 
working.  I have Python 2.4.3 and Ruby 1.8.4 installed.  I don't know if 
anyone can explain what's going on, but I figured I'd document these issues.

-- 
Ken-ichi Ueda
Kelly Research and Outreach Lab (http://kellylab.berkeley.edu)
University of California, Berkeley
Environmental Science, Policy, and Management
Berkeley, CA 94720
tel: 510.642.8322
fax: 510.642.1477
e-mail: kueda at nature.berkeley.edu



More information about the Gdal-dev mailing list