[GRASS-dev] grass65 compilation on mac OSX

Helena Mitasova hmitaso at unity.ncsu.edu
Sat Aug 7 11:50:38 EDT 2010


William,

thanks for the hint for compilation of grass7, it worked. Now I am trying to compile from source also 6.5 and
everything runs except the old nviz - I am getting similar error:

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
lipo: can't open input file: /var/folders/-w/-wN910nTFamsDLR+fBkvB++++TI/-Tmp-//cc1B1KT1.out (No such file or directory)
make[1]: *** [/Users/helena/grassdev6/develbranch_6/dist.i386-apple-darwin10.2.0/bin/nviz] Error 1
make: *** [default] Error 2

Below is my config file, I am wondering what am I missing this time.
BTW, I have nviz running on this machine in grass64 using your binary.

thanks a lot for any hints,

Helena

./configure \
--prefix=/Users/helena/grassdev6 \
--with-bindir=/Users/helena/grassdev6 \
--enable-64bit \
--enable-largefile \
--enable-shared \
--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 \
--without-fftw \
--with-x \
--with-cxx \
--with-python=/usr/bin/python-config \
--with-wxwidgets=/usr/bin/wx-config \
--with-tcltk-includes="/Library/Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/PrivateHeaders" \
--with-opengl=aqua \
--without-readline \
--without-cairo \
--with-macosx-archs="i386 x86_64" \
--enable-macosx-app




On Jun 6, 2010, at 1:04 PM, William Kyngesburye wrote:

> On Jun 6, 2010, at 11:39 AM, Helena Mitasova wrote:
> 
>> wxnviz still does not run on Mac - this is what I get:
>> 
>> To compile I have to run make in gui/wxpython 
>> (errors in nviz, xganim and wximgview I ignore)
>> 
>> I start in text mode and then run
>> g.gui wx &
>> 
>> which opens the GUI (works fine for 2D display)
>> but upon opening the gui I get the warnings listed below.
> 
> For once I'm the one that can't run something while others can ;(
> 
> 
>> WARNING: Nviz extension (3D view mode) disabled. Reason: dlopen(/Users/helena/grassdev7/GRASS-7.0.app/Contents/MacOS/lib/libgrass_datetime.dylib, 10): no suitable image found.  Did find:
>>       /Users/helena/grassdev7/GRASS-7.0.app/Contents/MacOS/lib/libgrass_datetime.dylib: mach-o, but wrong architecture
>>       /Users/helena/grassdev7/GRASS-7.0.app/Contents/MacOS/lib/libgrass_datetime.dylib: mach-o, but wrong architecture
> 
> Looks like a 32/64bit issue.  Probably started with the switch to ctypes for nviz.  When I can get the GUI to run, I should be able to figure this out.
> 
> What does this return in a Terminal:
> 
> file /Users/helena/grassdev7/GRASS-7.0.app/Contents/MacOS/lib/libgrass_datetime.dylib
> 
> With the GUI running, open Activity Monitor.app (Utilities folder) and find the process "Python" - what is its "Kind" (you may need to show the Kind column with View->Columns->Kind)?
> 
> And, what architectures did you configure GRASS for? (--with-macosx-archs=)  Because wxpython is only available 32bits, even if you only want a 64bit GRASS, you also need to compile it 32bits, ie:
> 
> --with-macosx-archs="i386 x86_64"
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> [Trillian]  What are you supposed to do WITH a maniacally depressed robot?
> 
> [Marvin]  You think you have problems?  What are you supposed to do if you ARE a maniacally depressed robot?  No, don't try and answer, I'm 50,000 times more intelligent than you and even I don't know the answer...
> 
> - HitchHiker's Guide to the Galaxy
> 
> 
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev



More information about the grass-dev mailing list