[GRASS-user] Problems compiling Grass 6.4 and Grass addons under MacOS

David Montoya jdmonto0 at gmail.com
Thu May 31 20:59:39 PDT 2012


I'm trying to install r.stream.extract, r.stream.basin, r.stream.order and
r.fuzzy but I get always the same error line at the end:

lipo: can't figure out the architecture type of:
/var/folders/5j/jb8xwzg57kbcpw6sq69_s_gc0000gn/T//cce8ZQSk.out
make: *** [OBJ.i386-apple-darwin11.3.0/close.o] Error 1

I was working as well with the compilation of Grass and I've make some
changes to the configuration file, I've erased these lines:

--with-fftw-includes=/Library/Frameworks/FFTW3.framework/unix/include \
--with-fftw-libs=/Library/Frameworks/FFTW3.framework/unix/lib \
--with-cxx \
--with-ffmpeg \
--with-ffmpeg-includes="/usr/local/include /usr/local/include/libavcodec
/usr/local/include/libavdevice /usr/local/include/libavformat
/usr/local/include/libavutil /usr/local/include/libswscale" \
--with-ffmpeg-libs=/usr/local/lib \

And as result I get less errors:

GRASS GIS compilation log
-------------------------
Started compilation: Thu May 31 22:22:07 COT 2012
--
Errors in:
/Users/jdmonto0/Downloads/grass/grass64_release/gui/wxpython
/Users/jdmonto0/Downloads/grass/grass64_release/visualization/nviz
--
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.
--

I ran make into both directories. The first one ran without problem, the
second one has this result:

Undefined symbols for architecture x86_64:
  "_GetPortBounds", referenced from:
      _SetMacBufRect in togl.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[1]: *** [nvwish] Error 1
make: *** [default] Error 2

The version of Xcode that I have is the 4.3.2 with the CLI tools. I tried
to follow the recommendations of William, but I don't get it, Where should
I paste the folder MacOSX10.6.sdk?

Thanks

On Wed, May 30, 2012 at 4:23 AM, Markus Neteler <neteler at osgeo.org> wrote:

> On Wed, May 30, 2012 at 5:52 AM, David Montoya <jdmonto0 at gmail.com> wrote:
> > I installed Grass using the files from kyngchaos and I need to compile
> some
> > addons.
>
> Please tell us which.
>
> > I tried to install them by two ways, using g.extensions but it
> > doesn't work, and through modbuild following the instruction but I get
> the
> > following error:
> > My Os is MacOS Lion 10.7
> >
> > MacBook-Pro-de-Jose:r.stream.extract jdmonto0$ make
> GRASS_HOME='~/modbuild'
> >  GRASS_APP='/Applications/GRASS-6.4.app'
> > ../../include/Make/Module.make:25: warning: overriding commands for
> target
> > `install'
> > ../../include/Make/Rules.make:90: warning: ignoring old commands for
> target
> > `install'
> > gcc -I~/modbuild/dist.i386-apple-darwin11.3.0/include
> > -I/Applications/GRASS-6.4.app/Contents/MacOS/include  -Os -fexceptions
> > -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk
> > -I/Library/Frameworks/GDAL.framework/Versions/1.9/Headers
> > -I/Library/Frameworks/GEOS.framework/Versions/3/unix/include
> > -DPACKAGE=\""grassmods"\"
>  -I~/modbuild/dist.i386-apple-darwin11.3.0/include
> > -I/Applications/GRASS-6.4.app/Contents/MacOS/include -o
> > OBJ.i386-apple-darwin11.3.0/close.o -c close.c
> > In file included from close.c:1:
> > /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/gis.h:24:19:
> error:
> > stdio.h: No such file or directory
>
> This is a fundamental system file. On my Linux box, it is in a
> package called "glibc-headers". No idea how that's called on MacOSX.
> The lack of this file causes all subsequent errors.
>
> ...
> > I tried also to compile Grass by my own, but I get some errors when I run
> > the command make. The configuration that I use is as follow:
> >
> > ./configure \
>
> ...
> > At this point, everything seems to be ok, but when I run make, I get this
> > error:
> ...
> > Errors in:
> > /Users/jdmonto0/Downloads/grass/grass64_release/lib/iostream
> > /Users/jdmonto0/Downloads/grass/grass64_release/gui/wxpython
> > /Users/jdmonto0/Downloads/grass/grass64_release/raster/r.terraflow
> > /Users/jdmonto0/Downloads/grass/grass64_release/visualization/nviz
> > --
> > In case of errors please change into the directory with error and run
> > 'make'.
>
> --> please do this and report the errors.
>
> Markus
>



-- 
David Montoya González
Ing. Forestal, Universidad Nacional de Colombia
Laboratorio de Sistemas Complejos, UNAL Medellin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20120531/887a8808/attachment.html>


More information about the grass-user mailing list