[GRASS-user] help building GRASS 7 svn on MacOSX Lion

Hi all,

I’m trying to build GRASS 7 svn on my mac with OSX Lion, but I’m facing some issues.
I have the frameworks from Kyngschaos installed.
make runs fine and no errors are detected. Then I run make bindist to create the .pkg.
After intalling the pkg, I run it and get this:

GuanoMac:~ guano$ ‘/Applications/GRASS-7.0.app/Contents/MacOS/grass.sh’; exit
Rebuilding Addon HTML manual pages index…
Rebuilding Addon menu…
Python 2.7.2 found.
arch: posix_spawnp: /opt/local/bin/pythonw2.7: Bad CPU type in executable
logout

[Process completed]

This is my configure setup and its output:

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

./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
–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=/usr/bin/python2.7-config
–with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.0/bin/wx-config
–without-readline
–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-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 \

checking host system type… i386-apple-darwin11.1.0
checking for gcc… gcc
checking whether the C compiler (gcc -arch i386 -O2 -arch i386) works… yes
checking whether the C compiler (gcc -arch i386 -O2 -arch i386) is a cross-compiler… no
checking whether we are using GNU C… yes
checking whether gcc accepts -g… yes
checking for Cygwin environment… no
checking for mingw32 environment… no
checking for executable suffix… no
checking for full floating-point support… yes
checking for pwd… /bin/pwd
checking for source directory… /Users/guano/Documents/installs/grass/grass_trunk
checking for build directory… /Users/guano/Documents/installs/grass/grass_trunk
checking for svnversion… /usr/bin/svnversion
checking for MacOSX App… yes
checking for MacOSX architectures… no
checking for MacOSX SDK… no
checking how to build libraries… shared
checking for additional include dirs…
checking for additional library dirs…
checking for a BSD compatible install… /usr/bin/install -c
checking for flex… flex
checking for yywrap in -lfl… yes
checking for bison… bison -y
checking for ranlib… ranlib
checking for ar… ar
checking for env… env
checking for perl… /opt/local/bin/perl
checking how to run the C preprocessor… gcc -E
checking for ANSI C header files… yes
checking for limits.h… yes
checking for termio.h… no
checking for termios.h… yes
checking for unistd.h… yes
checking for values.h… no
checking for f2c.h… no
checking for g2c.h… no
checking for sys/ioctl.h… yes
checking for sys/mtio.h… no
checking for sys/resource.h… yes
checking for sys/time.h… yes
checking for sys/timeb.h… yes
checking for sys/types.h… yes
checking for sys/utsname.h… yes
checking for libintl.h… no
checking for iconv.h… yes
checking for langinfo.h… yes
checking whether time.h and sys/time.h may both be included… yes
checking for off_t… yes
checking for uid_t in sys/types.h… yes
checking return type of signal handlers… void
checking for Cygwin environment… no
checking for ftime… yes
checking for gethostname… yes
checking for gettimeofday… yes
checking for lseek… yes
checking for nice… yes
checking for time… yes
checking for uname… yes
checking for seteuid… yes
checking for setpriority… yes
checking for setreuid… yes
checking for setruid… yes

checking for drand48… yes
checking for putenv… yes
checking for setenv… yes
checking for nanosleep… yes
checking whether setpgrp takes no argument… yes
checking for long long int… yes
checking for W11… no
checking for X… no
checking for library containing cuserid… no
checking for xdrmem_create… yes
checking for asprintf… yes
checking for atan… yes
checking for dlsym… yes
checking for iconv… no
checking for iconv in -liconv… yes
checking for socket… yes
checking for location of zlib includes…
checking for zlib.h… yes
checking for location of zlib library…
checking for deflate in -lz… yes
checking for location of External PROJ.4 includes… /Library/Frameworks/PROJ.framework/unix/include
checking for proj_api.h… yes
checking External PROJ.4 version… 470
checking for location of External PROJ.4 library… /Library/Frameworks/PROJ.framework/unix/lib
checking for pj_get_def in -lproj… yes
checking for location of External PROJ.4 data files… /Library/Frameworks/PROJ.framework/Versions/4.6/unix/share
checking for /Library/Frameworks/PROJ.framework/Versions/4.6/unix/share/epsg… no
configure: warning: *** Unable to locate PROJ data files.
checking for nad2bin… /opt/local/bin/nad2bin
checking whether to use regex… yes
checking for location of regex includes…
checking for regex.h… yes
checking for location of regex library…
checking for regcomp… yes
checking whether to use Readline… no
checking whether to use JPEG… yes
checking for location of JPEG includes… /Library/Frameworks/UnixImageIO.framework/unix/include
checking for jpeglib.h… yes
checking for location of JPEG library… /Library/Frameworks/UnixImageIO.framework/unix/lib
checking for jpeg_start_compress in -ljpeg… yes
checking whether to use GDAL… yes
checking for gdal-config… /Library/Frameworks/GDAL.framework/Versions/1.8/Programs/gdal-config
checking whether to use libLAS… no
checking whether to use GEOS… no
checking whether to use TIFF… yes
checking for location of TIFF includes… /Library/Frameworks/UnixImageIO.framework/unix/include
checking for tiffio.h… yes
checking for location of TIFF library… /Library/Frameworks/UnixImageIO.framework/unix/lib
checking for TIFFOpen in -ltiff… yes
checking whether to use PNG… yes
checking for location of PNG includes… /Library/Frameworks/UnixImageIO.framework/unix/include
checking for png.h… yes
checking for location of PNG library… /Library/Frameworks/UnixImageIO.framework/unix/lib
checking for png_read_image in -lpng… yes
checking whether to use PostgreSQL… no
checking whether to use MySQL… no
checking whether to use SQLite… yes
checking for location of SQLite includes… /Library/Frameworks/SQLite3.framework/unix/include
checking for sqlite3.h… yes
checking for location of SQLite library… /Library/Frameworks/SQLite3.framework/unix/lib
checking for sqlite3_open in -lsqlite3… yes
checking whether to use FFMPEG… no
checking whether to use OpenGL… aqua
checking for location of OpenGL framework…
checking for OpenGL/gl.h… yes
checking for OpenGL/glu.h… yes
checking for glBegin… yes
checking for gluBeginCurve… yes
checking whether to use Tcl/Tk… yes
checking for location of Tcl/Tk includes… /Library/Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/PrivateHeaders
checking for tcl.h… yes
checking for tk.h… yes
checking Tcl version… 8.5
checking Tk version… 8.5
checking for location of Tcl/Tk library… /usr/local/lib
checking for Tcl_Init in -ltcl… yes
checking for Tk_MainWindow in -ltk… yes
checking whether to use ODBC… no
checking whether to use FFTW… no
checking whether to use BLAS… yes
checking for location of BLAS includes… /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
checking for location of BLAS library…
checking for cblas.h… yes
checking for dnrm2_ in -lblas… yes
checking for ATL_xerbla in -latlas… no
checking for sgemm in -framework vecLib… no
checking for sgemm_ in -lblas… yes
checking for dgemm_ in -ldgemm… no
checking for sgemm_ in -lblas… yes
checking whether to use LAPACK… yes
checking for location of LAPACK includes… /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
checking for location of LAPACK library…
checking for clapack.h… yes
checking for dsegv_… no
checking for desgv_ in -llapack… no
checking for dgesv_ in -llapack… yes
checking whether to use Cairo… no
checking whether to use FreeType… yes
checking for location of FreeType includes… /Library/Frameworks/FreeType.framework/unix/include
checking for ft2build.h… yes
checking for location of FreeType library… /Library/Frameworks/FreeType.framework/unix/lib
checking for FT_Init_FreeType in -lfreetype… yes
checking whether to use NLS… no
checking whether to use C++… yes
checking for c++… c++
checking whether the C++ compiler (c++ -arch i386 -arch i386 ) works… yes
checking whether the C++ compiler (c++ -arch i386 -arch i386 ) is a cross-compiler… no
checking whether we are using GNU C++… yes
checking whether c++ accepts -g… yes
checking whether to use openDWG… no
checking whether to use POSIX threads… no
checking for special C compiler options needed for large files… no
checking for _FILE_OFFSET_BITS value needed for large files… no
checking for _LARGE_FILES value needed for large files… no
checking for _LARGEFILE_SOURCE value needed for large files… no
checking for _LARGEFILE_SOURCE value needed for large files… no
checking for fseeko… yes
checking if system supports Large Files at all… yes
checking whether to use wxWidgets… yes
checking for wx-config… /usr/local/lib/wxPython-unicode-2.8.12.0/bin/wx-config
checking wxWidgets version… 2.8.12
checking for wx/wxprec.h… yes
creating ./config.status
creating include/Make/Platform.make
creating include/Make/Doxyfile_arch_html
creating include/Make/Doxyfile_arch_latex
creating include/version.h
creating grass.pc
creating include/config.h
include/config.h is unchanged
Copying config.status to config.status.i386-apple-darwin11.1.0

GRASS is now configured for: i386-apple-darwin11.1.0

Source directory: /Users/guano/Documents/installs/grass/grass_trunk
Build directory: /Users/guano/Documents/installs/grass/grass_trunk
Installation directory: ${prefix}/GRASS-7.0.app/Contents/MacOS
Startup script in directory: ${exec_prefix}/bin
C compiler: gcc -arch i386 -O2
C++ compiler: c++ -arch i386
Building shared libraries: yes
64bit support:
OpenGL platform: Aqua

MacOSX application: yes
MacOSX architectures:
MacOSX SDK:

Tcl/Tk NVIZ: yes

BLAS support: yes
C++ support: yes
Cairo support: no
DWG support: no
FFMPEG support: no
FFTW support: no
FreeType support: yes
GDAL support: yes
GEOS support: no
JPEG support: yes
LAPACK support: yes
Large File support (LFS): yes
libLAS support: no
MySQL support: no
NLS support: no
ODBC support: no
OGR support: yes
OpenGL support: yes
PNG support: yes
PostgreSQL support: no
Readline support: no
SQLite support: yes
Tcl/Tk support: yes
wxWidgets support: yes
TIFF support: yes
X11 support: no
Regex support: yes
POSIX thread support: no

GuanoMac:grass_trunk guano$

thanks,

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

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

Twitter: @CarlosGrohmann
http://carlosgrohmann.tumblr.com/
Linux User #89721


Can’t stop the signal.

It looks like a macports problem (maybe homebrew also uses /opt/local?) with their Python. My guess is that their python is 64bit-only, and Grass is trying to run python 32bit because it couldn't find a 64bit wxpython because 64bit wxpython isn't possible in the stable release.

Note that there is no reason to build Gasss itself 32bit when 64bit works just as well, if not better. GRASS and the wxpython GUI are separate processes and don't have to run the same bit mode. I have finally decided that maintaining 32+64bit packages is too much trouble and future frameworks will be 64bit-only.

On Sep 23, 2011, at 2:50 PM, Carlos Grohmann wrote:

Hi all,

I'm trying to build GRASS 7 svn on my mac with OSX Lion, but I'm facing some issues.
I have the frameworks from Kyngschaos installed.
make runs fine and no errors are detected. Then I run make bindist to create the .pkg.
After intalling the pkg, I run it and get this:

GuanoMac:~ guano$ '/Applications/GRASS-7.0.app/Contents/MacOS/grass.sh'; exit
Rebuilding Addon HTML manual pages index...
Rebuilding Addon menu...
Python 2.7.2 found.
arch: posix_spawnp: /opt/local/bin/pythonw2.7: Bad CPU type in executable
logout

[Process completed]

This is my configure setup and its output:

export CFLAGS="-arch i386 -O2"
export CXXFLAGS="-arch i386"
export LDFLAGS="-arch i386"

./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 \
--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=/usr/bin/python2.7-config \
--with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.0/bin/wx-config \
--without-readline \
--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-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 \

checking host system type... i386-apple-darwin11.1.0
checking for gcc... gcc
checking whether the C compiler (gcc -arch i386 -O2 -arch i386) works... yes
checking whether the C compiler (gcc -arch i386 -O2 -arch i386) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for executable suffix... no
checking for full floating-point support... yes
checking for pwd... /bin/pwd
checking for source directory... /Users/guano/Documents/installs/grass/grass_trunk
checking for build directory... /Users/guano/Documents/installs/grass/grass_trunk
checking for svnversion... /usr/bin/svnversion
checking for MacOSX App... yes
checking for MacOSX architectures... no
checking for MacOSX SDK... no
checking how to build libraries... shared
checking for additional include dirs...
checking for additional library dirs...
checking for a BSD compatible install... /usr/bin/install -c
checking for flex... flex
checking for yywrap in -lfl... yes
checking for bison... bison -y
checking for ranlib... ranlib
checking for ar... ar
checking for env... env
checking for perl... /opt/local/bin/perl
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for limits.h... yes
checking for termio.h... no
checking for termios.h... yes
checking for unistd.h... yes
checking for values.h... no
checking for f2c.h... no
checking for g2c.h... no
checking for sys/ioctl.h... yes
checking for sys/mtio.h... no
checking for sys/resource.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for sys/types.h... yes
checking for sys/utsname.h... yes
checking for libintl.h... no
checking for iconv.h... yes
checking for langinfo.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for off_t... yes
checking for uid_t in sys/types.h... yes
checking return type of signal handlers... void
checking for Cygwin environment... no
checking for ftime... yes
checking for gethostname... yes
checking for gettimeofday... yes
checking for lseek... yes
checking for nice... yes
checking for time... yes
checking for uname... yes
checking for seteuid... yes
checking for setpriority... yes
checking for setreuid... yes
checking for setruid... yes
checking for drand48... yes
checking for putenv... yes
checking for setenv... yes
checking for nanosleep... yes
checking whether setpgrp takes no argument... yes
checking for long long int... yes
checking for W11... no
checking for X... no
checking for library containing cuserid... no
checking for xdrmem_create... yes
checking for asprintf... yes
checking for atan... yes
checking for dlsym... yes
checking for iconv... no
checking for iconv in -liconv... yes
checking for socket... yes
checking for location of zlib includes...
checking for zlib.h... yes
checking for location of zlib library...
checking for deflate in -lz... yes
checking for location of External PROJ.4 includes... /Library/Frameworks/PROJ.framework/unix/include
checking for proj_api.h... yes
checking External PROJ.4 version... 470
checking for location of External PROJ.4 library... /Library/Frameworks/PROJ.framework/unix/lib
checking for pj_get_def in -lproj... yes
checking for location of External PROJ.4 data files... /Library/Frameworks/PROJ.framework/Versions/4.6/unix/share
checking for /Library/Frameworks/PROJ.framework/Versions/4.6/unix/share/epsg... no
configure: warning: *** Unable to locate PROJ data files.
checking for nad2bin... /opt/local/bin/nad2bin
checking whether to use regex... yes
checking for location of regex includes...
checking for regex.h... yes
checking for location of regex library...
checking for regcomp... yes
checking whether to use Readline... no
checking whether to use JPEG... yes
checking for location of JPEG includes... /Library/Frameworks/UnixImageIO.framework/unix/include
checking for jpeglib.h... yes
checking for location of JPEG library... /Library/Frameworks/UnixImageIO.framework/unix/lib
checking for jpeg_start_compress in -ljpeg... yes
checking whether to use GDAL... yes
checking for gdal-config... /Library/Frameworks/GDAL.framework/Versions/1.8/Programs/gdal-config
checking whether to use libLAS... no
checking whether to use GEOS... no
checking whether to use TIFF... yes
checking for location of TIFF includes... /Library/Frameworks/UnixImageIO.framework/unix/include
checking for tiffio.h... yes
checking for location of TIFF library... /Library/Frameworks/UnixImageIO.framework/unix/lib
checking for TIFFOpen in -ltiff... yes
checking whether to use PNG... yes
checking for location of PNG includes... /Library/Frameworks/UnixImageIO.framework/unix/include
checking for png.h... yes
checking for location of PNG library... /Library/Frameworks/UnixImageIO.framework/unix/lib
checking for png_read_image in -lpng... yes
checking whether to use PostgreSQL... no
checking whether to use MySQL... no
checking whether to use SQLite... yes
checking for location of SQLite includes... /Library/Frameworks/SQLite3.framework/unix/include
checking for sqlite3.h... yes
checking for location of SQLite library... /Library/Frameworks/SQLite3.framework/unix/lib
checking for sqlite3_open in -lsqlite3... yes
checking whether to use FFMPEG... no
checking whether to use OpenGL... aqua
checking for location of OpenGL framework...
checking for OpenGL/gl.h... yes
checking for OpenGL/glu.h... yes
checking for glBegin... yes
checking for gluBeginCurve... yes
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes... /Library/Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/PrivateHeaders
checking for tcl.h... yes
checking for tk.h... yes
checking Tcl version... 8.5
checking Tk version... 8.5
checking for location of Tcl/Tk library... /usr/local/lib
checking for Tcl_Init in -ltcl... yes
checking for Tk_MainWindow in -ltk... yes
checking whether to use ODBC... no
checking whether to use FFTW... no
checking whether to use BLAS... yes
checking for location of BLAS includes... /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
checking for location of BLAS library...
checking for cblas.h... yes
checking for dnrm2_ in -lblas... yes
checking for ATL_xerbla in -latlas... no
checking for sgemm in -framework vecLib... no
checking for sgemm_ in -lblas... yes
checking for dgemm_ in -ldgemm... no
checking for sgemm_ in -lblas... yes
checking whether to use LAPACK... yes
checking for location of LAPACK includes... /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
checking for location of LAPACK library...
checking for clapack.h... yes
checking for dsegv_... no
checking for desgv_ in -llapack... no
checking for dgesv_ in -llapack... yes
checking whether to use Cairo... no
checking whether to use FreeType... yes
checking for location of FreeType includes... /Library/Frameworks/FreeType.framework/unix/include
checking for ft2build.h... yes
checking for location of FreeType library... /Library/Frameworks/FreeType.framework/unix/lib
checking for FT_Init_FreeType in -lfreetype... yes
checking whether to use NLS... no
checking whether to use C++... yes
checking for c++... c++
checking whether the C++ compiler (c++ -arch i386 -arch i386 ) works... yes
checking whether the C++ compiler (c++ -arch i386 -arch i386 ) is a cross-compiler... no
checking whether we are using GNU C++... yes
checking whether c++ accepts -g... yes
checking whether to use openDWG... no
checking whether to use POSIX threads... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for _LARGE_FILES value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for _LARGEFILE_SOURCE value needed for large files... no
checking for fseeko... yes
checking if system supports Large Files at all... yes
checking whether to use wxWidgets... yes
checking for wx-config... /usr/local/lib/wxPython-unicode-2.8.12.0/bin/wx-config
checking wxWidgets version... 2.8.12
checking for wx/wxprec.h... yes
creating ./config.status
creating include/Make/Platform.make
creating include/Make/Doxyfile_arch_html
creating include/Make/Doxyfile_arch_latex
creating include/version.h
creating grass.pc
creating include/config.h
include/config.h is unchanged
Copying config.status to config.status.i386-apple-darwin11.1.0

GRASS is now configured for: i386-apple-darwin11.1.0

  Source directory: /Users/guano/Documents/installs/grass/grass_trunk
  Build directory: /Users/guano/Documents/installs/grass/grass_trunk
  Installation directory: ${prefix}/GRASS-7.0.app/Contents/MacOS
  Startup script in directory: ${exec_prefix}/bin
  C compiler: gcc -arch i386 -O2
  C++ compiler: c++ -arch i386
  Building shared libraries: yes
  64bit support:
  OpenGL platform: Aqua

  MacOSX application: yes
  MacOSX architectures:
  MacOSX SDK:

  Tcl/Tk NVIZ: yes

  BLAS support: yes
  C++ support: yes
  Cairo support: no
  DWG support: no
  FFMPEG support: no
  FFTW support: no
  FreeType support: yes
  GDAL support: yes
  GEOS support: no
  JPEG support: yes
  LAPACK support: yes
  Large File support (LFS): yes
  libLAS support: no
  MySQL support: no
  NLS support: no
  ODBC support: no
  OGR support: yes
  OpenGL support: yes
  PNG support: yes
  PostgreSQL support: no
  Readline support: no
  SQLite support: yes
  Tcl/Tk support: yes
  wxWidgets support: yes
  TIFF support: yes
  X11 support: no
  Regex support: yes
  POSIX thread support: no

GuanoMac:grass_trunk guano$

thanks,
--
Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil
---
http://www.igc.usp.br/pessoais/guano
http://digitalelevation.wordpress.com/
http://lattes.cnpq.br/5846052449613692 (CV)
---
Twitter: @CarlosGrohmann
http://carlosgrohmann.tumblr.com/
Linux User #89721
________________
Can’t stop the signal.

_______________________________________________
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/

All generalizations are dangerous, even this one.

Well, TclTk is only needed for the old NVIZ. The old TclTk GUI is gone. TclTk 64bit is another one of those that is a problem - it can be built 64bit, but it needs a newer TclTk that GRASS has problems with.

So, a decision here:

- 64bit-only GRASS: Skip the old NVIZ and make do with the still-in-progress wx nviz, or "3D view" (there was supposedly a lot of work done on this for GSOC?)

- 32+64bit GRASS: so you can have 32bit NVIZ and 64bit rest of GRASS.

On Sep 23, 2011, at 4:39 PM, Carlos Grohmann wrote:

Thanks, William.

I tried to build it as 64bit, but then it got stuck with tcltk:

checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes... /Library/Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/PrivateHeaders
checking for tcl.h... yes
checking for tk.h... yes
checking Tcl version... 8.5
checking Tk version... 8.5
checking for location of Tcl/Tk library... /usr/local/lib
checking for Tcl_Init in -ltcl... no
checking for Tcl_Init in -ltcl... no
checking for Tcl_Init in -ltcl8.5... no
checking for Tcl_Init in -ltcl8.5... no
checking for Tcl_Init in -ltcl85... no
checking for Tcl_Init in -ltcl85... no
configure: error: *** Unable to locate Tcl library.

best,

Carlos

On Fri, Sep 23, 2011 at 18:19, William Kyngesburye <woklist@kyngchaos.com> wrote:
It looks like a macports problem (maybe homebrew also uses /opt/local?) with their Python. My guess is that their python is 64bit-only, and Grass is trying to run python 32bit because it couldn't find a 64bit wxpython because 64bit wxpython isn't possible in the stable release.

Note that there is no reason to build Gasss itself 32bit when 64bit works just as well, if not better. GRASS and the wxpython GUI are separate processes and don't have to run the same bit mode. I have finally decided that maintaining 32+64bit packages is too much trouble and future frameworks will be 64bit-only.

On Sep 23, 2011, at 2:50 PM, Carlos Grohmann wrote:

> Hi all,
>
> I'm trying to build GRASS 7 svn on my mac with OSX Lion, but I'm facing some issues.
> I have the frameworks from Kyngschaos installed.
> make runs fine and no errors are detected. Then I run make bindist to create the .pkg.
> After intalling the pkg, I run it and get this:
>
> GuanoMac:~ guano$ '/Applications/GRASS-7.0.app/Contents/MacOS/grass.sh'; exit
> Rebuilding Addon HTML manual pages index...
> Rebuilding Addon menu...
> Python 2.7.2 found.
> arch: posix_spawnp: /opt/local/bin/pythonw2.7: Bad CPU type in executable
> logout
>
> [Process completed]
>
>
>
>
> This is my configure setup and its output:
>
> export CFLAGS="-arch i386 -O2"
> export CXXFLAGS="-arch i386"
> export LDFLAGS="-arch i386"
>
> ./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 \
> --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=/usr/bin/python2.7-config \
> --with-wxwidgets=/usr/local/lib/wxPython-unicode-2.8.12.0/bin/wx-config \
> --without-readline \
> --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-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 \
>
>
> checking host system type... i386-apple-darwin11.1.0
> checking for gcc... gcc
> checking whether the C compiler (gcc -arch i386 -O2 -arch i386) works... yes
> checking whether the C compiler (gcc -arch i386 -O2 -arch i386) is a cross-compiler... no
> checking whether we are using GNU C... yes
> checking whether gcc accepts -g... yes
> checking for Cygwin environment... no
> checking for mingw32 environment... no
> checking for executable suffix... no
> checking for full floating-point support... yes
> checking for pwd... /bin/pwd
> checking for source directory... /Users/guano/Documents/installs/grass/grass_trunk
> checking for build directory... /Users/guano/Documents/installs/grass/grass_trunk
> checking for svnversion... /usr/bin/svnversion
> checking for MacOSX App... yes
> checking for MacOSX architectures... no
> checking for MacOSX SDK... no
> checking how to build libraries... shared
> checking for additional include dirs...
> checking for additional library dirs...
> checking for a BSD compatible install... /usr/bin/install -c
> checking for flex... flex
> checking for yywrap in -lfl... yes
> checking for bison... bison -y
> checking for ranlib... ranlib
> checking for ar... ar
> checking for env... env
> checking for perl... /opt/local/bin/perl
> checking how to run the C preprocessor... gcc -E
> checking for ANSI C header files... yes
> checking for limits.h... yes
> checking for termio.h... no
> checking for termios.h... yes
> checking for unistd.h... yes
> checking for values.h... no
> checking for f2c.h... no
> checking for g2c.h... no
> checking for sys/ioctl.h... yes
> checking for sys/mtio.h... no
> checking for sys/resource.h... yes
> checking for sys/time.h... yes
> checking for sys/timeb.h... yes
> checking for sys/types.h... yes
> checking for sys/utsname.h... yes
> checking for libintl.h... no
> checking for iconv.h... yes
> checking for langinfo.h... yes
> checking whether time.h and sys/time.h may both be included... yes
> checking for off_t... yes
> checking for uid_t in sys/types.h... yes
> checking return type of signal handlers... void
> checking for Cygwin environment... no
> checking for ftime... yes
> checking for gethostname... yes
> checking for gettimeofday... yes
> checking for lseek... yes
> checking for nice... yes
> checking for time... yes
> checking for uname... yes
> checking for seteuid... yes
> checking for setpriority... yes
> checking for setreuid... yes
> checking for setruid... yes
> checking for drand48... yes
> checking for putenv... yes
> checking for setenv... yes
> checking for nanosleep... yes
> checking whether setpgrp takes no argument... yes
> checking for long long int... yes
> checking for W11... no
> checking for X... no
> checking for library containing cuserid... no
> checking for xdrmem_create... yes
> checking for asprintf... yes
> checking for atan... yes
> checking for dlsym... yes
> checking for iconv... no
> checking for iconv in -liconv... yes
> checking for socket... yes
> checking for location of zlib includes...
> checking for zlib.h... yes
> checking for location of zlib library...
> checking for deflate in -lz... yes
> checking for location of External PROJ.4 includes... /Library/Frameworks/PROJ.framework/unix/include
> checking for proj_api.h... yes
> checking External PROJ.4 version... 470
> checking for location of External PROJ.4 library... /Library/Frameworks/PROJ.framework/unix/lib
> checking for pj_get_def in -lproj... yes
> checking for location of External PROJ.4 data files... /Library/Frameworks/PROJ.framework/Versions/4.6/unix/share
> checking for /Library/Frameworks/PROJ.framework/Versions/4.6/unix/share/epsg... no
> configure: warning: *** Unable to locate PROJ data files.
> checking for nad2bin... /opt/local/bin/nad2bin
> checking whether to use regex... yes
> checking for location of regex includes...
> checking for regex.h... yes
> checking for location of regex library...
> checking for regcomp... yes
> checking whether to use Readline... no
> checking whether to use JPEG... yes
> checking for location of JPEG includes... /Library/Frameworks/UnixImageIO.framework/unix/include
> checking for jpeglib.h... yes
> checking for location of JPEG library... /Library/Frameworks/UnixImageIO.framework/unix/lib
> checking for jpeg_start_compress in -ljpeg... yes
> checking whether to use GDAL... yes
> checking for gdal-config... /Library/Frameworks/GDAL.framework/Versions/1.8/Programs/gdal-config
> checking whether to use libLAS... no
> checking whether to use GEOS... no
> checking whether to use TIFF... yes
> checking for location of TIFF includes... /Library/Frameworks/UnixImageIO.framework/unix/include
> checking for tiffio.h... yes
> checking for location of TIFF library... /Library/Frameworks/UnixImageIO.framework/unix/lib
> checking for TIFFOpen in -ltiff... yes
> checking whether to use PNG... yes
> checking for location of PNG includes... /Library/Frameworks/UnixImageIO.framework/unix/include
> checking for png.h... yes
> checking for location of PNG library... /Library/Frameworks/UnixImageIO.framework/unix/lib
> checking for png_read_image in -lpng... yes
> checking whether to use PostgreSQL... no
> checking whether to use MySQL... no
> checking whether to use SQLite... yes
> checking for location of SQLite includes... /Library/Frameworks/SQLite3.framework/unix/include
> checking for sqlite3.h... yes
> checking for location of SQLite library... /Library/Frameworks/SQLite3.framework/unix/lib
> checking for sqlite3_open in -lsqlite3... yes
> checking whether to use FFMPEG... no
> checking whether to use OpenGL... aqua
> checking for location of OpenGL framework...
> checking for OpenGL/gl.h... yes
> checking for OpenGL/glu.h... yes
> checking for glBegin... yes
> checking for gluBeginCurve... yes
> checking whether to use Tcl/Tk... yes
> checking for location of Tcl/Tk includes... /Library/Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/PrivateHeaders
> checking for tcl.h... yes
> checking for tk.h... yes
> checking Tcl version... 8.5
> checking Tk version... 8.5
> checking for location of Tcl/Tk library... /usr/local/lib
> checking for Tcl_Init in -ltcl... yes
> checking for Tk_MainWindow in -ltk... yes
> checking whether to use ODBC... no
> checking whether to use FFTW... no
> checking whether to use BLAS... yes
> checking for location of BLAS includes... /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
> checking for location of BLAS library...
> checking for cblas.h... yes
> checking for dnrm2_ in -lblas... yes
> checking for ATL_xerbla in -latlas... no
> checking for sgemm in -framework vecLib... no
> checking for sgemm_ in -lblas... yes
> checking for dgemm_ in -ldgemm... no
> checking for sgemm_ in -lblas... yes
> checking whether to use LAPACK... yes
> checking for location of LAPACK includes... /System/Library/Frameworks/Accelerate.framework/Frameworks/vecLib.framework/Headers
> checking for location of LAPACK library...
> checking for clapack.h... yes
> checking for dsegv_... no
> checking for desgv_ in -llapack... no
> checking for dgesv_ in -llapack... yes
> checking whether to use Cairo... no
> checking whether to use FreeType... yes
> checking for location of FreeType includes... /Library/Frameworks/FreeType.framework/unix/include
> checking for ft2build.h... yes
> checking for location of FreeType library... /Library/Frameworks/FreeType.framework/unix/lib
> checking for FT_Init_FreeType in -lfreetype... yes
> checking whether to use NLS... no
> checking whether to use C++... yes
> checking for c++... c++
> checking whether the C++ compiler (c++ -arch i386 -arch i386 ) works... yes
> checking whether the C++ compiler (c++ -arch i386 -arch i386 ) is a cross-compiler... no
> checking whether we are using GNU C++... yes
> checking whether c++ accepts -g... yes
> checking whether to use openDWG... no
> checking whether to use POSIX threads... no
> checking for special C compiler options needed for large files... no
> checking for _FILE_OFFSET_BITS value needed for large files... no
> checking for _LARGE_FILES value needed for large files... no
> checking for _LARGEFILE_SOURCE value needed for large files... no
> checking for _LARGEFILE_SOURCE value needed for large files... no
> checking for fseeko... yes
> checking if system supports Large Files at all... yes
> checking whether to use wxWidgets... yes
> checking for wx-config... /usr/local/lib/wxPython-unicode-2.8.12.0/bin/wx-config
> checking wxWidgets version... 2.8.12
> checking for wx/wxprec.h... yes
> creating ./config.status
> creating include/Make/Platform.make
> creating include/Make/Doxyfile_arch_html
> creating include/Make/Doxyfile_arch_latex
> creating include/version.h
> creating grass.pc
> creating include/config.h
> include/config.h is unchanged
> Copying config.status to config.status.i386-apple-darwin11.1.0
>
> GRASS is now configured for: i386-apple-darwin11.1.0
>
> Source directory: /Users/guano/Documents/installs/grass/grass_trunk
> Build directory: /Users/guano/Documents/installs/grass/grass_trunk
> Installation directory: ${prefix}/GRASS-7.0.app/Contents/MacOS
> Startup script in directory: ${exec_prefix}/bin
> C compiler: gcc -arch i386 -O2
> C++ compiler: c++ -arch i386
> Building shared libraries: yes
> 64bit support:
> OpenGL platform: Aqua
>
> MacOSX application: yes
> MacOSX architectures:
> MacOSX SDK:
>
> Tcl/Tk NVIZ: yes
>
> BLAS support: yes
> C++ support: yes
> Cairo support: no
> DWG support: no
> FFMPEG support: no
> FFTW support: no
> FreeType support: yes
> GDAL support: yes
> GEOS support: no
> JPEG support: yes
> LAPACK support: yes
> Large File support (LFS): yes
> libLAS support: no
> MySQL support: no
> NLS support: no
> ODBC support: no
> OGR support: yes
> OpenGL support: yes
> PNG support: yes
> PostgreSQL support: no
> Readline support: no
> SQLite support: yes
> Tcl/Tk support: yes
> wxWidgets support: yes
> TIFF support: yes
> X11 support: no
> Regex support: yes
> POSIX thread support: no
>
> GuanoMac:grass_trunk guano$
>
>
>
>
> thanks,
> --
> Prof. Carlos Henrique Grohmann - Geologist D.Sc.
> Institute of Geosciences - Univ. of São Paulo, Brazil
> ---
> http://www.igc.usp.br/pessoais/guano
> http://digitalelevation.wordpress.com/
> http://lattes.cnpq.br/5846052449613692 (CV)
> ---
> Twitter: @CarlosGrohmann
> http://carlosgrohmann.tumblr.com/
> Linux User #89721
> ________________
> Can’t stop the signal.
>
> _______________________________________________
> 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/

All generalizations are dangerous, even this one.

--
Prof. Carlos Henrique Grohmann - Geologist D.Sc.
Institute of Geosciences - Univ. of São Paulo, Brazil
---
http://www.igc.usp.br/pessoais/guano
http://digitalelevation.wordpress.com/
http://lattes.cnpq.br/5846052449613692 (CV)
---
Twitter: @CarlosGrohmann
http://carlosgrohmann.tumblr.com/
Linux User #89721
________________
Can’t stop the signal.

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

"Time is an illusion - lunchtime doubly so."

- Ford Prefect