[GRASS-dev] 64 bit compiling of GRASS 7 on Mac

Michael Barton michael.barton at asu.edu
Tue Jan 6 01:02:38 EST 2009


I tried compiling GRASS 7 with 64bit enabled on my Mac. I configured  
without tcltk. It actually went pretty well. It hung at g.mapsets, but  
this compiled when I cd'ed to the folder and ran make. The only thing  
that didn't compile was gidlib.

I've put my configuration and error output below in case it is  
informative.

Michael



export CFLAGS="-arch i386 -arch x86_64 -Os"
export CXXFLAGS="-arch i386 -arch x86_64 -Os"
export LDFLAGS="-arch i386 -arch i386 -Os"


./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-x -- 
with-cxx --with-opengl=aqua --without-readline --prefix=/Applications/ 
GRASS --enable-macosx-app --with-python=/usr/bin/python-config --with- 
wxwidgets=/usr/local/lib/wxPython-unicode-2.8.9.1/bin/wx-config -- 
without-tcltk


...
compiling
...


Started compilation: Mon Jan  5 22:47:43 MST 2009
--
Errors in:
/Users/cmbarton/grass_dev/grass7_src/lib/vector/diglib
/Users/cmbarton/grass_dev/grass7_src/general/g.mapsets
--
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.
--
Finished compilation: Mon Jan  5 22:55:21 MST 2009
make: *** [default] Error 1
cmb-MBP-2:grass7_src cmbarton$ cd /Users/cmbarton/grass_dev/grass7_src/ 
lib/vector/diglib
cmb-MBP-2:diglib cmbarton$ make
if [ "" != "" -a -f "".html ] ; then make html ; fi
make OBJ.i386-apple-darwin9.6.0/test
echo "==============TEST============="
==============TEST=============
gcc -L/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-darwin9.6.0/ 
lib -arch i386 -arch i386 -Os -arch i386 -arch i386 -Os     -arch i386  
-arch x86_64 -Os   -I/Library/Frameworks/GDAL.framework/Versions/1.6/ 
Headers  -I/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple- 
darwin9.6.0/include  -o OBJ.i386-apple-darwin9.6.0/test test.c - 
lgrass_dig2 -lgrass_gis -lgrass_datetime -lz     -lgrass_rtree  - 
lgrass_rtree \
				-lgrass_gis -lgrass_datetime -lz     -lgrass_datetime  -lz
ld warning: in /Users/cmbarton/grass_dev/grass7_src/dist.i386-apple- 
darwin9.6.0/lib/libgrass_dig2.dylib, file is not of required  
architecture
ld warning: in /Users/cmbarton/grass_dev/grass7_src/dist.i386-apple- 
darwin9.6.0/lib/libgrass_gis.dylib, file is not of required architecture
ld warning: in /Users/cmbarton/grass_dev/grass7_src/dist.i386-apple- 
darwin9.6.0/lib/libgrass_datetime.dylib, file is not of required  
architecture
ld warning: in /Users/cmbarton/grass_dev/grass7_src/dist.i386-apple- 
darwin9.6.0/lib/libgrass_rtree.dylib, file is not of required  
architecture
Undefined symbols for architecture x86_64:
   "_dig_fflush", referenced from:
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
   "_dig_set_cur_port", referenced from:
       _main in ccBWlQqE.o
   "_dig__fread_port_C", referenced from:
       _main in ccBWlQqE.o
   "_dig__fread_port_D", referenced from:
       _main in ccBWlQqE.o
   "_dig__fread_port_F", referenced from:
       _main in ccBWlQqE.o
   "_dig__fread_port_I", referenced from:
       _main in ccBWlQqE.o
   "_dig__fread_port_L", referenced from:
       _main in ccBWlQqE.o
   "_dig__fread_port_S", referenced from:
       _main in ccBWlQqE.o
   "_dig_fseek", referenced from:
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
       _main in ccBWlQqE.o
   "_dig__fwrite_port_C", referenced from:
       _main in ccBWlQqE.o
   "_dig__fwrite_port_D", referenced from:
       _main in ccBWlQqE.o
   "_dig__fwrite_port_F", referenced from:
       _main in ccBWlQqE.o
   "_dig__fwrite_port_I", referenced from:
       _main in ccBWlQqE.o
   "_dig__fwrite_port_L", referenced from:
       _main in ccBWlQqE.o
   "_dig__fwrite_port_S", referenced from:
       _main in ccBWlQqE.o
   "_dig_init_portable", referenced from:
       _main in ccBWlQqE.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/AK/AKpYwDw1EoWI+fFF02nvRk++ 
+TI/-Tmp-//ccUxiMSI.out (No such file or directory)
make[1]: *** [OBJ.i386-apple-darwin9.6.0/test] Error 1
make: *** [default] Error 2
cmb-MBP-2:diglib cmbarton$

cd /Users/cmbarton/grass_dev/grass7_src/general/g.mapsets
cmb-MBP-2:g.mapsets cmbarton$ make
if [ ! -d /Users/cmbarton/grass_dev/grass7_src/dist.i386-apple- 
darwin9.6.0/etc ]; then mkdir -p /Users/cmbarton/grass_dev/grass7_src/ 
dist.i386-apple-darwin9.6.0/etc; fi
/usr/bin/install -c  g.mapsets.py /Users/cmbarton/grass_dev/grass7_src/ 
dist.i386-apple-darwin9.6.0/etc/gui/g.mapsets.py
cmb-MBP-2:g.mapsets cmbarton$




More information about the grass-dev mailing list