[GRASS-dev] osx : grass7 build (python problems)
massimo di stefano
massimodisasha at yahoo.it
Thu Jun 4 10:15:17 EDT 2009
Hi All,
looking at the grass track log i see some substantial python-grass
update
so i tried to update grass_trunk, unlucky the build fails :-/
this some log deatails, maybe usefool to debug :
svn up
make clean
make dist clean
export CXXFLAGS="-arch ppc -arch i386 -Os" ; export CFLAGS="-arch ppc -
arch i386 -Os" ; export LDFLAGS="-arch ppc -arch i386 -Os" ; export
GDAL_BIN=/Library/Frameworks/gdal.framework/unix/bin/ ; export
NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
./configure --with-freetype --with-freetype-includes="/Library/
Frameworks/FreeType.framework/unix/include/freetype2 /Library/
Frameworks/FreeType.framework/unix/include" --with-freetype-libs=/
Library/Frameworks/FreeType.framework/unix/lib --with-gdal=/Library/
Frameworks/gdal.framework/Programs/gdal-config --with-proj --with-proj-
includes=/Library/Frameworks/PROJ.framework/unix/include --with-proj-
libs=/Library/Frameworks/PROJ.framework/unix/lib --with-proj-share=/
Library/Frameworks/PROJ.framework/Resources/proj --with-jpeg-includes=/
Library/Frameworks/UnixImageIO.framework/unix/include --with-jpeg-
libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-png-
includes=/Library/Frameworks/UnixImageIO.framework/unix/include --with-
png-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --with-
tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include --
with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib --
without-mysql --with-odbc --with-sqlite --with-sqlite-libs=/Library/
Frameworks/SQLite3.framework/unix/lib --with-sqlite-includes=/Library/
Frameworks/SQLite3.framework/unix/include --with-fftw-includes=/
Library/Frameworks/FFTW3.framework/unix/include --with-fftw-libs=/
Library/Frameworks/FFTW3.framework/unix/lib --with-cxx --with-
opengl=aqua --with-x --without-glw --with-tcltk-includes="/Library/
Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/
Headers /Library/Frameworks/Tk.framework/PrivateHeaders" --with-python
--with-wxwidgets=/usr/bin/wx-config --with-postgres --with-postgres-
includes=/usr/local/pgsql/include/ --with-postgres-libs=/usr/local/
pgsql/lib/ --with-geos=/Library/Frameworks/GEOS.framework/Versions/3/
Programs/geos-config --with-pthread --enable-largefile --with-ffmpeg --
with-ffmpeg-includes=/Users/Shared/Development/ossim_dependencies/
include/ffmpeg/ --with-cairo --with-cairo-includes=/usr/local/include/
cairo --with-cairo-libs=/usr/local/lib --with-cairo-ldflags=-lcairo --
prefix=/Applications/grass7-SVN --enable-macosx-app
but it fails with this errors :
Errors in:
/Users/Shared/source/grass_trunk/display/d.barscale
/Users/Shared/source/grass_trunk/display/d.colorlist
/Users/Shared/source/grass_trunk/display/d.colortable
/Users/Shared/source/grass_trunk/display/d.erase
/Users/Shared/source/grass_trunk/display/d.font
/Users/Shared/source/grass_trunk/display/d.fontlist
/Users/Shared/source/grass_trunk/display/d.geodesic
/Users/Shared/source/grass_trunk/display/d.graph
/Users/Shared/source/grass_trunk/display/d.grid
/Users/Shared/source/grass_trunk/display/d.his
/Users/Shared/source/grass_trunk/display/d.histogram
/Users/Shared/source/grass_trunk/display/d.info
/Users/Shared/source/grass_trunk/display/d.labels
/Users/Shared/source/grass_trunk/display/d.legend
/Users/Shared/source/grass_trunk/display/d.linegraph
/Users/Shared/source/grass_trunk/display/d.nviz
/Users/Shared/source/grass_trunk/display/d.path
/Users/Shared/source/grass_trunk/display/d.profile
/Users/Shared/source/grass_trunk/display/d.rast
/Users/Shared/source/grass_trunk/display/d.rast.arrow
/Users/Shared/source/grass_trunk/display/d.rast.num
/Users/Shared/source/grass_trunk/display/d.rgb
/Users/Shared/source/grass_trunk/display/d.rhumbline
/Users/Shared/source/grass_trunk/display/d.text
/Users/Shared/source/grass_trunk/display/d.title
/Users/Shared/source/grass_trunk/display/d.vect
/Users/Shared/source/grass_trunk/display/d.vect.chart
/Users/Shared/source/grass_trunk/display/d.thematic.area
/Users/Shared/source/grass_trunk/display/d.where
/Users/Shared/source/grass_trunk/vector/v.label
/Users/Shared/source/grass_trunk/swig/python
however, i tried to install it (without overwriting my existing
installation), at start-up i get :
GRASS 7.0.svn (spearfish60):~ > g.gui wxpython
Traceback (most recent call last):
File "/Applications/grass7-SVN/GRASS-7.0.app/Contents/MacOS/etc/
wxpython/wxgui.py", line 69, in <module>
from grass.script import core as grass
File "/Applications/grass7-SVN/GRASS-7.0.app/Contents/MacOS/etc/
python/grass/__init__.py", line 2, in <module>
import lib
ImportError: No module named lib
GRASS 7.0.svn (spearfish60):~ > python
Python 2.5.1 (r251:54863, Feb 6 2009, 19:02:12)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import grass
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Applications/grass7-SVN/GRASS-7.0.app/Contents/MacOS/etc/
python/grass/__init__.py", line 2, in <module>
import lib
ImportError: No module named lib
>>>
as the error says :
error in :
...
/Users/Shared/source/grass_trunk/swig/python
so i tried to see what the log says :
GRASS 7.0.svn (spearfish60):~ > cd /Users/Shared/source/grass_trunk/
swig/python
GRASS 7.0.svn (spearfish60):/Users/Shared/source/grass_trunk/swig/
python > make
make /Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/
python/grass/lib
make[1]: `/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib' is up to date.
make /Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/
python/grass/lib/_utils.so /Users/Shared/source/grass_trunk/dist.i386-
apple-darwin9.7.0/etc/python/grass/lib/_date.so /Users/Shared/source/
grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/
_grass.so /Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib/_math.so /Users/Shared/source/grass_trunk/
dist.i386-apple-darwin9.7.0/etc/python/grass/lib/_proj.so /Users/
Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/
lib/_imagery.so /Users/Shared/source/grass_trunk/dist.i386-apple-
darwin9.7.0/etc/python/grass/lib/_vector.so /Users/Shared/source/
grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/
_raster.so /Users/Shared/source/grass_trunk/dist.i386-apple-
darwin9.7.0/etc/python/grass/lib/_display.so /Users/Shared/source/
grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/
_stats.so /Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib/_dbmi.so /Users/Shared/source/grass_trunk/
dist.i386-apple-darwin9.7.0/etc/python/grass/lib/_g3d.so /Users/Shared/
source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/
_arraystats.so /Users/Shared/source/grass_trunk/dist.i386-apple-
darwin9.7.0/etc/python/grass/lib/_cluster.so /Users/Shared/source/
grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/
_trans.so /Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib/_vedit.so /Users/Shared/source/grass_trunk/
dist.i386-apple-darwin9.7.0/etc/python/grass/lib/utils.py /Users/
Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/
lib/date.py /Users/Shared/source/grass_trunk/dist.i386-apple-
darwin9.7.0/etc/python/grass/lib/grass.py /Users/Shared/source/
grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/math.py /
Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/
grass/lib/proj.py /Users/Shared/source/grass_trunk/dist.i386-apple-
darwin9.7.0/etc/python/grass/lib/imagery.py /Users/Shared/source/
grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/
vector.py /Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib/raster.py /Users/Shared/source/grass_trunk/
dist.i386-apple-darwin9.7.0/etc/python/grass/lib/display.py /Users/
Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/
lib/stats.py /Users/Shared/source/grass_trunk/dist.i386-apple-
darwin9.7.0/etc/python/grass/lib/dbmi.py /Users/Shared/source/
grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/g3d.py /
Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/
grass/lib/arraystats.py /Users/Shared/source/grass_trunk/dist.i386-
apple-darwin9.7.0/etc/python/grass/lib/cluster.py /Users/Shared/source/
grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/grass/lib/trans.py /
Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/etc/python/
grass/lib/vedit.py /Users/Shared/source/grass_trunk/dist.i386-apple-
darwin9.7.0/etc/python/grass/lib/__init__.py
make[1]: `/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib/_utils.so' is up to date.
make[1]: `/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib/_date.so' is up to date.
make[1]: `/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib/_grass.so' is up to date.
make[1]: `/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
etc/python/grass/lib/_math.so' is up to date.
gcc -I/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
include -I/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/
include -arch ppc -arch i386 -Os -fno-common -I/System/Library/
Frameworks/Python.framework/Versions/2.5/include/python2.5 -I/System/
Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -
DPACKAGE=\""grasslibs"\" -I/Users/Shared/source/grass_trunk/
dist.i386-apple-darwin9.7.0/include -I/Users/Shared/source/grass_trunk/
dist.i386-apple-darwin9.7.0/include -o OBJ.i386-apple-darwin9.7.0/
proj_wrap.o -c proj_wrap.c
In file included from proj_wrap.c:2597:
/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/include/
grass/gprojects.h:23:29: error: ogr_srs_api.h: No such file or directory
In file included from proj_wrap.c:2597:
/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/include/
grass/gprojects.h:84: error: syntax error before ‘GPJ_grass_to_osr’
/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/include/
grass/gprojects.h:84: warning: data definition has no type or storage
class
/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/include/
grass/gprojects.h:88: error: syntax error before ‘OGRSpatialReferenceH’
In file included from proj_wrap.c:2597:
/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/include/
grass/gprojects.h:23:29: error: ogr_srs_api.h: No such file or directory
In file included from proj_wrap.c:2597:
/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/include/
grass/gprojects.h:84: error: syntax error before ‘GPJ_grass_to_osr’
/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/include/
grass/gprojects.h:84: warning: data definition has no type or storage
class
/Users/Shared/source/grass_trunk/dist.i386-apple-darwin9.7.0/include/
grass/gprojects.h:88: error: syntax error before ‘OGRSpatialReferenceH’
lipo: can't figure out the architecture type of: /var/folders/6+/
6+DsK0o5ElaVySZK3VoNS++++TI/-Tmp-//ccipCX2V.out
make[1]: *** [OBJ.i386-apple-darwin9.7.0/proj_wrap.o] Error 1
make: *** [default] Error 2
thanks for any help
please let me know if can i provide you any sort of logs, debug, testing
thanks to All,
Massimo Di Stefano
massimodisasha a yahoo.it
epifanio on irc.freenode.net /join gfoss
Chiacchiera con i tuoi amici in tempo reale!
http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
More information about the grass-dev
mailing list