[GRASS-dev] does GRASS 7 for Mac compile yet?

jentjr jentjr at gmail.com
Sat Feb 2 12:41:21 PST 2013


I'm not sure if this is useful, but I just tried to compile GRASS 7 on my
Macbook Pro 10.7.5. Everything seemed to work fine when I complied the code.

cd /usr/local/src/grass_trunk

sudo make clean

sudo svn up

export CFLAGS="-arch ppc64 -arch x86_64 -g -Wall"
export CXXFLAGS="-arch ppc64 -arch x86_64"
export LDFLAGS="-arch ppc64 -arch x86_64"
export GDAL_BIN=/Library/Frameworks/GDAL.framework/Programs/
export NAD2BIN=/Library/Frameworks/PROJ.Framework/Programs/nad2bin

sudo ./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-postgres-includes=/usr/local/pgsql/include
--with-postgres-libs=/usr/local/pgsql/lib
--with-tiff-includes=/Library/Frameworks/UnixImageIO.framework/unix/include
--with-tiff-libs=/Library/Frameworks/UnixImageIO.framework/unix/lib
--with-postgres-includes=/usr/local/pgsql/include
--with-postgres-libs=/usr/local/pgsql/lib --without-mysql --with-odbc
--with-sqlite
--with-sqlite-libs=/Library/Frameworks/SQLite3.framework/unix/lib
--with-sqlite-includes=/Library/Frameworks/SQLite3.framework/unix/include
--without-fftw --with-cxx --with-x --without-motif --with-opengl=aqua
--without-readline --prefix=/Applications --enable-macosx-app --with-cairo
--without-tcltk
--with-wxwidgets=/usr/local/lib/wxPython-2.9.2.4/bin/wx-config 


Started compilation: Sat Feb  2 14:54:01 EST 2013
--
Errors in:
No errors detected.
--
Finished compilation: Sat Feb  2 15:07:06 EST 2013 

sudo make 

sudo make install

When I launched GRASS this is what I got.

Launching <wxpython> GUI in the background, please wait...
GRASS 7.0.svn (nc_spm_08):~ > Traceback (most recent call last):
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/wxgui.py", line
34, in <module>
    from lmgr.frame import GMFrame
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/lmgr/frame.py",
line 47, in <module>
    from gui_core.preferences  import MapsetAccess, PreferencesDialog,
EVT_SETTINGS_CHANGED
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gui_core/preferences.py",
line 51, in <module>
    from gui_core.dialogs import SymbolDialog
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gui_core/dialogs.py",
line 50, in <module>
    from gui_core.gselect import LocationSelect, MapsetSelect, Select,
OgrTypeSelect, GdalSelect, MapsetSelect
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/gui/wxpython/gui_core/gselect.py",
line 54, in <module>
    import grass.temporal as tgis
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/temporal/__init__.py",
line 9, in <module>
    from space_time_datasets import *
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/temporal/space_time_datasets.py",
line 25, in <module>
    import grass.lib.gis as libgis
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/lib/gis.py",
line 23, in <module>
    _libs["grass_gis.7.0.svn"] = load_library("grass_gis.7.0.svn")
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/lib/ctypes_loader.py",
line 55, in load_library
    return self.load(path)
  File
"/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/lib/ctypes_loader.py",
line 71, in load
    raise ImportError,e
ImportError:
dlopen(/Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.svn.dylib,
10): no suitable image found.  Did find:
	/Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.svn.dylib:
mach-o, but wrong architecture
	/Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.svn.dylib:
mach-o, but wrong architecture




--
View this message in context: http://osgeo-org.1560.n6.nabble.com/does-GRASS-7-for-Mac-compile-yet-tp5030048p5031695.html
Sent from the Grass - Dev mailing list archive at Nabble.com.


More information about the grass-dev mailing list