[GRASS-user] Re: r.stream.order problem making on mac os x

stephen sefick ssefick at gmail.com
Sun Sep 27 17:17:04 EDT 2009


OK,
I got a clean source 6.4RC05 directory and copied the r.stream.*
modules into the raster folder in the sources.

I issued this from CL:
./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-postgres --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-tcltk-includes="/Library/Frameworks/Tcl.framework/Headers
/Library/Frameworks/Tk.framework/Headers
/Library/Frameworks/Tk.framework/PrivateHeaders"
--with-tcltk-libs=/usr/local/lib --with-x --without-motif
--without-glw --with-python
--with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.10.1/bin/wx-config
--with-opengl=aqua --without-readline --prefix=/Applications
--enable-macosx-app
make
sudo make install

I am building a MacOSX .app and this works just fine.  I can use GRASS
and everything that I have tried has worked fine.  The
r.stream.extract function worked wonderfully and output raster maps
from r.terraflow flow accumulation and direction map.  I tried to feed
this into r.stream.order.  I got a bus error on the command line, and
in the GUI it just stops.  In both instances I get a ignore report mac
GUI message.  This is what I did with the previous ordering software -
r.stream, and everything worked fine.  If there is anymore information
that I can provide please tell me and I will be happy to provide this.
 Thanks for all of the help

Stephen Sefick

On Sun, Sep 27, 2009 at 2:38 PM, stephen sefick <ssefick at gmail.com> wrote:
> They have compiled after a
> make clean
> make
> make install
>
> but I am getting a bus error
>
> On Sun, Sep 27, 2009 at 1:31 PM, stephen sefick <ssefick at gmail.com> wrote:
>> I put the r.stream.order sources into my raster folder in the grass
>> sources.  I tried both the from Jarek's website and the svn
>> grass-addons both threw this error message.  The old version compiled
>> and worked fine on my mac 10.5.7.  Any help would be greatly
>> appreciated.
>>
>> Stephen Sefick
>>
>> test -d OBJ.i386-apple-darwin9.8.0 || mkdir -p OBJ.i386-apple-darwin9.8.0
>> gcc -I/Users/sefick/Grass_Source/grass-6.4.0RC5/dist.i386-apple-darwin9.8.0/include
>>  -g -O2       -DPACKAGE=\""grassmods"\"
>> -I/Users/sefick/Grass_Source/grass-6.4.0RC5/dist.i386-apple-darwin9.8.0/include
>> -o OBJ.i386-apple-darwin9.8.0/io.o -c io.c
>> io.c:1:27: error: grass/glocale.h: No such file or directory
>> In file included from io.c:2:
>> global.h:5:23: error: grass/gis.h: No such file or directory
>> In file included from io.c:2:
>> global.h:66: error: syntax error before ‘*’ token
>> global.h:67: error: syntax error before ‘*’ token
>> global.h:78: error: syntax error before ‘*’ token
>> global.h:78: warning: data definition has no type or storage class
>> global.h:79: error: syntax error before ‘*’ token
>> global.h:79: warning: data definition has no type or storage class
>> io.c: In function ‘open_raster’:
>> io.c:9: error: storage size of ‘cellhd’ isn’t known
>> io.c:11: warning: assignment makes pointer from integer without a cast
>> io.c:17: error: ‘CELL_TYPE’ undeclared (first use in this function)
>> io.c:17: error: (Each undeclared identifier is reported only once
>> io.c:17: error: for each function it appears in.)
>> io.c:27: error: invalid use of undefined type ‘struct Cell_head’
>> io.c:27: error: invalid use of undefined type ‘struct Cell_head’
>> io.c: In function ‘create_base_maps’:
>> io.c:38: error: ‘CELL’ undeclared (first use in this function)
>> io.c:38: error: ‘r_dirs’ undeclared (first use in this function)
>> io.c:38: error: ‘r_streams’ undeclared (first use in this function)
>> io.c:39: error: ‘DCELL’ undeclared (first use in this function)
>> io.c:39: error: ‘r_accum’ undeclared (first use in this function)
>> io.c:47: error: syntax error before ‘)’ token
>> io.c:48: error: syntax error before ‘)’ token
>> io.c:50: error: syntax error before ‘)’ token
>> io.c:52: error: syntax error before ‘)’ token
>> io.c:53: error: syntax error before ‘)’ token
>> io.c:55: error: syntax error before ‘)’ token
>> io.c:62: warning: assignment makes pointer from integer without a cast
>> io.c:63: warning: assignment makes pointer from integer without a cast
>> io.c:73: error: syntax error before ‘)’ token
>> io.c: In function ‘stream_number’:
>> io.c:120: error: ‘CELL’ undeclared (first use in this function)
>> io.c:120: error: syntax error before ‘c_min’
>> io.c:123: warning: assignment makes pointer from integer without a cast
>> io.c:125: error: ‘c_min’ undeclared (first use in this function)
>> io.c:125: error: ‘c_max’ undeclared (first use in this function)
>> io.c: In function ‘write_maps’:
>> io.c:132: error: ‘CELL’ undeclared (first use in this function)
>> io.c:132: error: ‘strahler_buf’ undeclared (first use in this function)
>> io.c:132: error: ‘shreeve_buf’ undeclared (first use in this function)
>> io.c:132: error: ‘hack_buf’ undeclared (first use in this function)
>> io.c:132: error: ‘horton_buf’ undeclared (first use in this function)
>> io.c:134: error: storage size of ‘history’ isn’t known
>> io.c:138: error: ‘CELL_TYPE’ undeclared (first use in this function)
>> make: *** [OBJ.i386-apple-darwin9.8.0/io.o] Error 1
>>
>>
>> --
>> Stephen Sefick
>>
>> Let's not spend our time and resources thinking about things that are
>> so little or so large that all they really do for us is puff us up and
>> make us feel like gods.  We are mammals, and have not exhausted the
>> annoying little problems of being mammals.
>>
>>                                                                -K. Mullis
>>
>
>
>
> --
> Stephen Sefick
>
> Let's not spend our time and resources thinking about things that are
> so little or so large that all they really do for us is puff us up and
> make us feel like gods.  We are mammals, and have not exhausted the
> annoying little problems of being mammals.
>
>                                                                -K. Mullis
>



-- 
Stephen Sefick

Let's not spend our time and resources thinking about things that are
so little or so large that all they really do for us is puff us up and
make us feel like gods.  We are mammals, and have not exhausted the
annoying little problems of being mammals.

								-K. Mullis


More information about the grass-user mailing list