[GRASS-user] compiling Add-Ons in Mac OS X

Hello all,

on an unrelated topic to my issues with wxgui and wx2.9, I’m also facing some problems with add-ons.
Specifically, I need r.stream.order.

So I compile GRASS 7.0svn, and it goes fine. Here’s my config options:

export CFLAGS=“-O2”
export CXXFLAGS=“”
export LDFLAGS=“”

./configure
–enable-largefile
–prefix=/Applications
–enable-macosx-app
–enable-sysv
–without-glw
–without-motif
–without-cairo
–without-geos
–with-x
–with-x-includes=/usr/X11R6/include
–with-x-libraries=/usr/X11R6/lib
–with-opengl=aqua
–without-odbc
–with-cxx
–with-freetype
–with-freetype-includes=/Library/Frameworks/FreeType.framework/unix/include
–with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib
–with-gdal=/Library/Frameworks/GDAL.framework/Versions/1.8/Programs/gdal-config
–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/Versions/4.6/unix/share/proj
–with-jpeg
–with-jpeg-includes=/Library/Frameworks/UnixImageIO.framework/unix/include
–with-jpeg-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib
–with-tiff
–with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include
–with-tiff-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-sqlite
–with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib
–with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include
–without-fftw
–with-postgres-includes=/usr/local/pgsql/include
–with-postgres-libs=/usr/local/pgsql/lib
–with-freetype
–with-freetype-includes=/Library/Frameworks/FreeType.framework/unix/include
–with-freetype-libs=/Library/Frameworks/FreeType.framework/unix/lib
–with-python=/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
–with-wxwidgets=/usr/local/lib/wxPython-2.9.3.1/bin/wx-config
–without-readline
–without-tcltk
–with-blas
–with-lapack
–with-blas-includes=/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
–with-lapack-includes=/System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers \

I run make, make libs, and make install, which creates my GRASS-7.0.app in /Applications

Then I get the add-ons from svn as

svn checkout http://svn.osgeo.org/grass/grass-addons

I cd into r.stream.order and try this:

make MODULE_TOPDIR=/Users/guano/Documents/installs/grass/grass_trunk/

and get this:

GuanoMac:r.stream.order guano$ make MODULE_TOPDIR=/Users/guano/Documents/installs/grass/grass_trunk/
: && gcc -L/Users/guano/Documents/installs/grass/grass_trunk/dist.x86_64-apple-darwin11.3.0/lib -L/Users/guano/Documents/installs/grass/grass_trunk/dist.x86_64-apple-darwin11.3.0/lib -o /Users/guano/Documents/installs/grass/grass_trunk/dist.x86_64-apple-darwin11.3.0/bin/r.stream.order OBJ.x86_64-apple-darwin11.3.0/io.o OBJ.x86_64-apple-darwin11.3.0/main.o OBJ.x86_64-apple-darwin11.3.0/stream_init.o OBJ.x86_64-apple-darwin11.3.0/stream_order.o OBJ.x86_64-apple-darwin11.3.0/stream_raster_close.o OBJ.x86_64-apple-darwin11.3.0/stream_topology.o OBJ.x86_64-apple-darwin11.3.0/stream_vector.o -lgrass_gis.7.0.svn -lgrass_raster.7.0.svn -lgrass_segment.7.0.svn -lgrass_dbmiclient.7.0.svn -lgrass_dbmibase.7.0.svn
Undefined symbols for architecture x86_64:
“_Vect_new_line_struct”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_new_cats_struct”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_open_new”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_reset_line”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_reset_cats”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_cat_set”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_append_point”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_write_line”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_hist_command”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_build”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_close”, referenced from:
_ram_create_vector in stream_vector.o
_seg_create_vector in stream_vector.o
“_Vect_default_field_info”, referenced from:
_stream_add_table in stream_vector.o
“_Vect_subst_var”, referenced from:
_stream_add_table in stream_vector.o
“_Vect_map_add_dblink”, referenced from:
_stream_add_table in stream_vector.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [/Users/guano/Documents/installs/grass/grass_trunk/dist.x86_64-apple-darwin11.3.0/bin/r.stream.order] Error 1

So, now I’m having problems with 64bits?

thanks

Carlos


Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil

http://www.igc.usp.br/pessoais/guano
http://www.igc.usp.br/openstereo
http://lattes.cnpq.br/5846052449613692 (CV)

Twitter: @CarlosGrohmann
http://carlosgrohmann.tumblr.com/


Can’t stop the signal.

With versions 6.x of William Kynsburye
(*http://www.kyngchaos.com/software/grass*) or Michael Barton (
http://www.public.asu.edu/~cmbarton/files/grass_mac/OSX10.6-snowleopard/
http://www.public.asu.edu/~cmbarton/files/grass_mac/OSX10.6-snowleopard/ ),
I use the build template of William Kynsburye

see http://www.forumsig.org/showthread.php?t=33173 Mac OS X: comment
installer un module supplémentaire ("add-on") /Mac OS X: How to install an
additional module ("add-on")/, (in french but with many explanatory figures)

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/compiling-Add-Ons-in-Mac-OS-X-tp4574536p4574755.html
Sent from the Grass - Users mailing list archive at Nabble.com.

The problem with this is that in v7 I removed the "modbuild" part, assuming that the g.extension module would be working, but last I heard it still has issues.

It's been a while since I tried compiling any addons, either with g.extension or modbuild or copied to source.

On Mar 13, 2012, at 12:01 PM, gene wrote:

With versions 6.x of William Kynsburye
(*http://www.kyngchaos.com/software/grass*) or Michael Barton (
http://www.public.asu.edu/~cmbarton/files/grass_mac/OSX10.6-snowleopard/
http://www.public.asu.edu/~cmbarton/files/grass_mac/OSX10.6-snowleopard/ ),
I use the build template of William Kynsburye

see http://www.forumsig.org/showthread.php?t=33173 Mac OS X: comment
installer un module supplémentaire ("add-on") /Mac OS X: How to install an
additional module ("add-on")/, (in french but with many explanatory figures)

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/compiling-Add-Ons-in-Mac-OS-X-tp4574536p4574755.html
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe