[GRASS-dev] debugging nviz with TclTk 8.5 aqua

Michael Barton michael.barton at asu.edu
Wed Jul 23 11:45:18 EDT 2008


On Jul 23, 2008, at 7:05 AM, William Kyngesburye wrote:

> On Jul 23, 2008, at 8:38 AM, William Kyngesburye wrote:
>
>>> I'd say it's a fairly safe bet that Togl is being compiled with the
>>> 8.5 headers but linked against the 8.4 library.
>>>
>>
>> Michael, for the line that links nviz, do you see -L/usr/lib?
>>
>
> Another possibility is my OSX app startup script is confusing  
> things, so that it's building correctly with 8.5 but running with  
> 8.4.  Are you compiling with the TCLTK_INTERNAL and TCLTKVER exports  
> I have in the Mac readme?

Yes

>
>
> And configuring with opengl=aqua?

Yes

And without x11.

Here is what I do to compile with 8.5 aqua:

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

[NOTE: I've changed -Os to -g for debugging in my current version]

export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
export TCLTK_INTERNAL=
export TCLTKVER="8.5"


./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 --without- 
x --with-cxx --with-opengl=aqua --without-readline --prefix=/ 
Applications/GRASS --enable-macosx-app --with-python --with-wxwidgets=/ 
usr/local/lib/wxPython-unicode-2.8.7.1/bin/wx-config --with-tcltk- 
includes="/Library/Frameworks/Tcl.framework/Headers /Library/ 
Frameworks/Tk.framework/Headers /Library/Frameworks/Tk.framework/ 
PrivateHeaders"

Michael



More information about the grass-dev mailing list