[GRASS-dev] grass65 compilation on mac OSX
William Kyngesburye
woklist at kyngchaos.com
Sat Aug 7 12:24:05 EDT 2010
On Aug 7, 2010, at 10:50 AM, Helena Mitasova wrote:
> 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
>
That would be something from TclTk, which is not working for 64bits on OS X. Odd, configure should disable 64bit for NVIZ compilation. There is a var you can check, in include/make/platform.make:
MACOSX_ARCHS_TCLTK
It should have only --arch i386.
> --enable-64bit \
Note: enable-64bit does nothing for OS X. 64bit compilation is handled with the macosx-archs option. (it shouldn't be affecting your problem, just FYI)
> --with-python=/usr/bin/python-config \
> --with-wxwidgets=/usr/bin/wx-config \
FYI: the system wxpython is getting a bit old for some things in new GRASS gui. (python itself is OK)
> --with-tcltk-includes="/Library/Frameworks/Tcl.framework/Headers /Library/Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/PrivateHeaders" \
> --with-opengl=aqua \
Which version of TclTk did you install? I think 8.5 is optimal.
Also, there's a bit of a hack needed so the system tcltk doesn't interfere, see the macosx/readme.rtf in the GRASS source for details. Then add --with-tcltk-libs=/usr/local/lib to your configure.
-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/
All generalizations are dangerous, even this one.
More information about the grass-dev
mailing list