Re: [GRASS-user] problem in grass70 compilation
here are the errors in grass70 compilation Errors in: /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/general/g.cairocomp /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/imagery/i.atcorr -- In case of errors please change into the directory with error and run 'make'. If you get multiple errors, you need to deal with them in the order they appear in the error log. If you get an error building a library, you will also get errors from anything which uses the library. -- Finished compilation: Sat Jan 31 12:14:53 EET 2009 make: *** [default] Error 1 ~~ * cd /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/general/g.cairocomp or...@orkun-desktop:/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/general/g.cairocomp$ make gcc -L/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/lib -Wl,--export-dynamic -Wl,-rpath-link,/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/lib -o /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/bin/g.cairocomp OBJ.i686-pc-linux-gnu/main.o -lgrass_gis -lgrass_datetime -lz -lXrender -lcairo -lX11 -lm -lz OBJ.i686-pc-linux-gnu/main.o: In function `init_xlib': /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/general/g.cairocomp/main.c:118: undefined reference to `cairo_xlib_surface_get_xrender_format' collect2: ld returned 1 exit status ~~~ * or...@orkun-desktop:cd /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/imagery/i.atcorr$ make I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/6s.o -c 6s.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found make: [OBJ.i686-pc-linux-gnu/6s.o] Error 127 (ignored) I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/Abstra.o -c Abstra.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found make: [OBJ.i686-pc-linux-gnu/Abstra.o] Error 127 (ignored) I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/AerosolConcentration.o -c AerosolConcentration.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found make: [OBJ.i686-pc-linux-gnu/AerosolConcentration.o] Error 127 (ignored) I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/AerosolModel.o -c AerosolModel.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found make: [OBJ.i686-pc-linux-gnu/AerosolModel.o] Error 127 (ignored) I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/Altitude.o -c Altitude.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found make: [OBJ.i686-pc-linux-gnu/Altitude.o] Error 127 (ignored) I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/AtmosModel.o -c AtmosModel.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found make: [OBJ.i686-pc-linux-gnu/AtmosModel.o] Error 127 (ignored) I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/common.o -c common.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found make: [OBJ.i686-pc-linux-gnu/common.o] Error 127 (ignored) I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/computations.o -c computations.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found make: [OBJ.i686-pc-linux-gnu/computations.o] Error 127 (ignored) I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\
Re: [GRASS-user] compile grass gdal from svn
Hi to all Solved. Probably the problem came from: 1)an incorrect build of gdal-grass plugin (--with-ld-shared=g++ -shared seems necessary (but I haven't enough knowledge to evaluate this); anyways, thanks Markus for http://mpa.itc.it/markus/useful/conf_install_gdal_ogr_grass_plugin.sh). 2)No clean system (sudo updatedb...and clean! thanks Maris Nartiss); I post here my simple script-reminder, perhaps useful to others Ubuntu end-users in panic/paranoia. ciao -- Paolo C. Lat. 44° 39' 11.08'' N Long. 7° 23' 25.26'' E #! /usr/bin/env bash # # # BIBLIOGRAPHY # # # http://grass.osgeo.org/wiki/Compile_and_Install # # # http://grass.osgeo.org/grass64/source/REQUIREMENTS.html # # # http://casoilresource.lawr.ucdavis.edu/drupal/node/123 # # # http://mpa.itc.it/markus/useful/conf_install_gdal_ogr_grass_plugin.sh # # # http://trac.osgeo.org/gdal/wiki/GRASS # # # http://trac.osgeo.org/gdal/wiki/BuildingOnUnix PROGRAM=`basename $0` CURRENTDIR=`pwd` # # # gdal source directory DIR_SRC_GDAL=/usr/local/src/gdal # # # gdal install directory DIR_INST_GDAL=/usr/local # # # grass source directory DIR_SRC_GRASS=/usr/local/src/grass6_devel # # # grass install directory DIR_INST_GRASS=/usr/local/grass-6.5.svn # # # plugin grass-gdal source directory DIR_SRC_PLUGIN=/usr/local/src/gdal-grass-1.4.3 # # # plugin grass-gdal install directory DIR_INST_PLUGIN=/usr/local/lib/gdalplugins # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # ask_yes_no() { local yn= while [ $yn = ]; do echo $1 read yn case $yn in y|Y)yn=0 ;; n|N)yn=1 ;; e|E) # cd ${CURRENTDIR} exit 1 ;; *) yn= echo Invalid response - please answer y or n ;; esac done return $yn } if ask_yes_no Update/upgrade system [Y/N/(E)xit] ?; then sudo apt-get update sudo apt-get upgrade fi # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # GDAL - Geospatial Data Abstraction Library # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # cleaning if ask_yes_no Clean GDAL source [Y/N/(E)xit] ?; then cd ${DIR_SRC_GDAL} make distclean fi # # # upgrade from svn if ask_yes_no Upgrade GDAL source from svn [Y/N/(E)xit] ?; then # # # # # # FIRST INSTALL: # # # sudo mkdir /usr/local/src # # # sudo chown my_user_name:my_user_group /usr/local/src/ # # # cd /usr/local/src # # # current development version: # # # svn checkout https://svn.osgeo.org/gdal/trunk/gdal gdal # # # current stable version: # # # svn checkout https://svn.osgeo.org/gdal/branches/1.5/gdal gdal # # # # # # AFTER FIRST INSTALL: cd ${DIR_SRC_GDAL} svn up cd ${CURRENTDIR} fi # # # configure ***WITHOUT GRASS*** if ask_yes_no Configure GDAL [Y/N/(E)xit] ?; then cd ${DIR_SRC_GDAL} ./configure \ --with-pg=/usr/bin/pg_config \ --prefix=${DIR_INST_GDAL} \ --with-python \ --with-ogdi \ --with-sqlite \ --with-mysql=/usr/bin/mysql_config \ --with-libtiff=internal \ --without-grass \ -with-hide-internal-symbols cd ${CURRENTDIR} fi # # # make if ask_yes_no Make GDAL [Y/N/(E)xit] ?; then cd ${DIR_SRC_GDAL} make cd ${CURRENTDIR} fi # # # make install if ask_yes_no Install GDAL [Y/N/(E)xit] ?; then cd ${DIR_SRC_GDAL} sudo make install cd ${CURRENTDIR} fi # # # Is directory, where binary have been installed, in PATH variable? if ask_yes_no Check if PATH variable contains path to GDAL binaries [Y/N/(E)xit] ?; then echo GDAL binary are here ...${DIR_INST_GDAL}/bin echo cd ${DIR_INST_GDAL}/bin ls -l echo PATH variable: echo $PATH fi if ask_yes_no You can change PATH variable now...[Y/N/(E)xit] ?; then gedit $HOME/.bashrc fi # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # GRASS GIS (Geographic Resources Analysis Support System) # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # cleaning if ask_yes_no Clean GRASS source[Y/N/(E)xit] ?; then cd ${DIR_SRC_GRASS} make distclean cd ${CURRENTDIR} fi # # # upgrade from svn if ask_yes_no Upgrade GRASS from svn [Y/N/(E)xit] ?; then # # # # # # FIRST INSTALL: (6.5.0 development branch) # # # Note: development here is discouraged and # # # should take place in GRASS 7. # # # # # # svn checkout https://svn.osgeo.org/grass/grass/branches/develbranch_6 grass6_devel # # # To switch from SVN 'trunk' (now GRASS 7
Re: [GRASS-user] profile tools in GRASS GIS 6.4.ORC2
On Jan 31, 2009, at 3:51 AM, grass-user-requ...@lists.osgeo.org wrote: Date: Fri, 30 Jan 2009 20:30:12 +0100 From: Jhon Ortiz eljhonj...@hotmail.com Subject: [GRASS-user] profile tools in GRASS GIS 6.4.ORC2 To: User grass grass-user@lists.osgeo.org Message-ID: blu145-w118bf906490d11d23e954fc6...@phx.gbl Content-Type: text/plain; charset=iso-8859-1 Hi to all, Im working with grass 6.4.0RC2 in Ubuntu 8.04. I tried Interactively create profile of a raster map. I drew Profile transect with the mouse in map display, but when I make click in the profile button to create the profile, don't display anything and gave me this error: Traceback (most recent call last): File /usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p rofile.py, line 449, in OnCreateProfile self.DrawPlot() File /usr/local/grass-6.4.0RC2/etc/wxpython/gui_modules/p rofile.py, line 474, in DrawPlot legend=r['plegend']) File /usr/lib/python2.5/site- packages/wx-2.8-gtk2-unicode/wx/lib/plot.py, line 224, in __init__ PolyPoints.__init__(self, points, attr) File /usr/lib/python2.5/site- packages/wx-2.8-gtk2-unicode/wx/lib/plot.py, line 124, in __init__ self._points = _Numeric.array(points).astype(_Numeric.Float64) ValueError : matrices are not aligned for copy Some advice? You need to have numpy or numarray installed for profiling to work in the wxPython gui. Have you installed one of these? Michael ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] some problems in grass622 (ubuntu binaries)
On Thu, 2009-01-29 at 13:00 +0100, Nikos Alexandris wrote: On Thu, 2009-01-29 at 13:31 +0200, orkun wrote: thank you As far as I see from the url address you have given there is similar problem with GRASS 6.4.0RC2. regards Orkun, give it a try to get latest stuff. You'll see it probably will work. BTW, which version of gdal do you have installed currently? Nikos Orkun, my apologies for returning in this post. I see (in another thread) that you try to compile grass70 (=grass_trunk). I was not very clear when I wrote try to get latest stuff. If you want a workable+safe grass installation then you should probably get latest grass64 or grass65(=grass6_devel). I think that developers will agree that grass7 is still under heavy development. (Or maybe I am wrong... ?) I have no problems compiling grass63, grass64 and grass65 under Ubuntu (64-bit). However, grass70 is changing quite fast and some times there are problems. Kind regards, Nikos ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] problem in grass70 compilation
orkun wrote: here are the errors in grass70 compilation Errors in: /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/general/g.cairocomp /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/imagery/i.atcorr cd /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/general/g.cairocomp or...@orkun-desktop:/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/general/g.cairocomp$ make /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/general/g.cairocomp/main.c:118: undefined reference to `cairo_xlib_surface_get_xrender_format' This is a known issue. It isn't particularly important, as nothing uses g.cairocomp yet. or...@orkun-desktop:cd /usr/local/grass-7.0.svn_src_snapshot_2009_01_24/imagery/i.atcorr$ make I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -DPACKAGE=\grassmods\ -I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/6s.o -c 6s.cpp /bin/sh: I/usr/local/grass-7.0.svn_src_snapshot_2009_01_24/dist.i686-pc-linux-gnu/include: not found Right. You need to use --with-cxx to get i.atcorr. I'll commit a fix to i.atcorr/Makefile to skip compilation if $(CXX) isn't defined. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user