[GRASS-dev] grass7 build on osx snow leopard

Massimo Di Stefano massimodisasha at gmail.com
Fri Feb 5 10:20:26 EST 2010


Hi William, thanks!!!

now the error is only in nviz
but WX-Nviz works fine .. so it's not a problem
iguess it is related to the dropped X11 stuff ?

this the error :

GRASS GIS compilation log
-------------------------
Started compilation: Ven  5 Feb 2010 15:54:46 CET
--
Errors in:
/Users/Shared/source/grass_trunk/visualization/nviz
--
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: Ven  5 Feb 2010 16:16:07 CET
make: *** [default] Error 1
 

MacBook-Pro-15-di-Massimo-Di-Stefano:grass_trunk sasha$ cd /Users/Shared/source/grass_trunk/visualization/nviz
MacBook-Pro-15-di-Massimo-Di-Stefano:nviz sasha$ make
make -C src
gcc  -g -O2    -arch i386 -arch x86_64  -I/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/include -I/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/include  -D_FILE_OFFSET_BITS=64   -I/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/include -I/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/include -I/Library/Frameworks/UnixImageIO.framework/unix/include  -I/Library/Frameworks/GDAL.framework/Versions/1.6/Headers -I/Library/Frameworks/GEOS.framework/Versions/3/unix/include  -DPACKAGE=\"\"   -I/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/include -I/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/include -o OBJ.i386-apple-darwin10.2.0/togl.o -c togl.c
In file included from togl.c:53:
/usr/include/tkMacOSX.h:31: error: expected declaration specifiers or ‘...’ before ‘TkRegion’
togl.c:54:54: error: tkMacOSXInt.h: No such file or directory
togl.c:265: error: expected specifier-qualifier-list before ‘XVisualInfo’
togl.c: In function ‘SetMacBufRect’:
togl.c:1084: error: ‘TkWindow’ undeclared (first use in this function)
togl.c:1084: error: (Each undeclared identifier is reported only once
togl.c:1084: error: for each function it appears in.)
togl.c:1084: error: expected expression before ‘)’ token
togl.c:1088: warning: ‘GetPortBounds’ is deprecated (declared at /System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:4527)
togl.c:1088: error: expected expression before ‘)’ token
togl.c:1092: error: expected expression before ‘)’ token
togl.c: In function ‘Togl_Cmd’:
togl.c:1500: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:1500: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:1500: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:1501: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c: In function ‘Togl_CreateWindow’:
togl.c:1764: error: ‘XVisualInfo’ undeclared (first use in this function)
togl.c:1764: error: ‘visinfo’ undeclared (first use in this function)
togl.c:1795: error: expected ‘;’ before ‘VisInf’
togl.c:2117: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2118: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2119: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2120: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2121: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2122: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2123: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2123: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2123: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2124: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:2187: error: ‘TkWindow’ undeclared (first use in this function)
togl.c:2187: error: ‘winPtr’ undeclared (first use in this function)
togl.c:2187: error: expected expression before ‘)’ token
togl.c:2213: error: ‘Togl’ has no member named ‘VisInfo’
togl.c:2213: error: ‘Togl’ has no member named ‘VisInfo’
togl.c:2214: error: ‘Togl’ has no member named ‘VisInfo’
togl.c:2338: warning: ‘aglSetDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
togl.c:2340: error: ‘MacDrawable’ undeclared (first use in this function)
togl.c:2340: error: expected expression before ‘)’ token
togl.c:2352: error: ‘VisInf’ undeclared (first use in this function)
togl.c:2388: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:2389: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2390: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2391: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2392: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2393: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2394: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2395: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:2396: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2397: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2399: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c: In function ‘Togl_EventProc’:
togl.c:2594: warning: ‘AGLDrawable’ is deprecated
togl.c:2596: warning: ‘aglSetDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
togl.c:2610: warning: ‘aglSetDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
togl.c: In function ‘Togl_LoadBitmapFont’:
togl.c:3143: warning: ‘aglUseFont’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:374)
togl.c: In function ‘Togl_DumpToEpsFile’:
togl.c:3750: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:3750: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:3751: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:3751: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:3752: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:3752: error: ‘Togl’ has no member named ‘EpsBlueMap’
In file included from togl.c:53:
/usr/include/tkMacOSX.h:31: error: expected declaration specifiers or ‘...’ before ‘TkRegion’
togl.c:54:54: error: tkMacOSXInt.h: No such file or directory
togl.c:265: error: expected specifier-qualifier-list before ‘XVisualInfo’
togl.c: In function ‘SetMacBufRect’:
togl.c:1084: error: ‘TkWindow’ undeclared (first use in this function)
togl.c:1084: error: (Each undeclared identifier is reported only once
togl.c:1084: error: for each function it appears in.)
togl.c:1084: error: expected expression before ‘)’ token
togl.c:1088: error: expected expression before ‘)’ token
togl.c:1092: error: expected expression before ‘)’ token
togl.c: In function ‘Togl_Cmd’:
togl.c:1500: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:1500: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:1500: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:1501: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c: In function ‘Togl_CreateWindow’:
togl.c:1764: error: ‘XVisualInfo’ undeclared (first use in this function)
togl.c:1764: error: ‘visinfo’ undeclared (first use in this function)
togl.c:1795: error: expected ‘;’ before ‘VisInf’
togl.c:2117: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2118: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2119: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2120: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2121: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2122: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2123: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2123: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2123: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2124: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:2187: error: ‘TkWindow’ undeclared (first use in this function)
togl.c:2187: error: ‘winPtr’ undeclared (first use in this function)
togl.c:2187: error: expected expression before ‘)’ token
togl.c:2213: error: ‘Togl’ has no member named ‘VisInfo’
togl.c:2213: error: ‘Togl’ has no member named ‘VisInfo’
togl.c:2214: error: ‘Togl’ has no member named ‘VisInfo’
togl.c:2221: warning: cast to pointer from integer of different size
togl.c:2338: warning: ‘aglSetDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
togl.c:2340: error: ‘MacDrawable’ undeclared (first use in this function)
togl.c:2340: error: expected expression before ‘)’ token
togl.c:2352: error: ‘VisInf’ undeclared (first use in this function)
togl.c:2388: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:2389: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2390: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2391: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2392: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2393: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2394: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c:2395: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:2396: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:2397: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:2399: error: ‘Togl’ has no member named ‘EpsBlueMap’
togl.c: In function ‘Togl_EventProc’:
togl.c:2594: warning: ‘AGLDrawable’ is deprecated
togl.c:2596: warning: ‘aglSetDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
togl.c:2610: warning: ‘aglSetDrawable’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:313)
togl.c: In function ‘Togl_LoadBitmapFont’:
togl.c:3143: warning: ‘aglUseFont’ is deprecated (declared at /System/Library/Frameworks/AGL.framework/Headers/agl.h:374)
togl.c: In function ‘Togl_DumpToEpsFile’:
togl.c:3750: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:3750: error: ‘Togl’ has no member named ‘EpsRedMap’
togl.c:3751: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:3751: error: ‘Togl’ has no member named ‘EpsGreenMap’
togl.c:3752: error: ‘Togl’ has no member named ‘EpsMapSize’
togl.c:3752: error: ‘Togl’ has no member named ‘EpsBlueMap’
lipo: can't figure out the architecture type of: /var/folders/G7/G7KYb9O2GaGW2zFTZZP9nE+++TI/-Tmp-//ccqxKXSp.out
make[1]: *** [OBJ.i386-apple-darwin10.2.0/togl.o] Error 1
make: *** [default] Error 2
MacBook-Pro-15-di-Massimo-Di-Stefano:nviz sasha$ 



Il giorno 05/feb/2010, alle ore 15.35, William Kyngesburye ha scritto:

> Ah, when you use the arch option in configure, do NOT set archs in C[XX]FLAGS/LDFLAGS as this will override the arch option and mess up all wxpython-based modules.
> 
> On Feb 5, 2010, at 8:17 AM, Massimo Di Stefano wrote:
> 
>>>>>> /Users/Shared/source/grass_trunk/visualization/nviz
>>>>>> /Users/Shared/source/grass_trunk/visualization/xganim
>>>>>> /Users/Shared/source/grass_trunk/visualization/wximgview
>>> 
>>> please also post the errors in these directories.
>>> 
>>> Markus
>> 
>> 
>> yes True,
>> 
>> i'm on osx snow leopard building with multi-arch flags,
>> this what i'm doing :
>> 
>> export CXXFLAGS="-arch x86_64 -arch i386 -Os -g"
>> export LDFLAGS="-arch x86_64 -arch i386 -Os -g"
>> export CFLAGS="-arch x86_64 -arch i386 -Os -g"
>> export NAD2BIN=/Library/Frameworks/PROJ.framework/Programs/nad2bin
>> 
>> ./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/unix/bin/gdal-config --with-geos=/Library/Frameworks/GEOS.framework/Programs/geos-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-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=/Users/Shared/source/epylib/local/include --with-fftw-libs=/Users/Shared/source/epylib/local/lib --with-cxx --with-x --without-motif --without-glw --with-opengl=aqua --without-readline --with-python --with-wxwidgets=/usr/bin/wx-config --prefix=/Applications --enable-macosx-app --with-cairo --with-cairo-includes="/Library/Frameworks/cairo.framework/unix/include/cairo /Library/Frameworks/cairo.framework/unix/include" --with-cairo-libs=/Library/Frameworks/cairo.framework/Versions/1/unix/lib --with-cairo-ldflags=-lcairo --with-pthread --with-postgres --with-postgres-includes=/usr/local/pgsql/include --with-postgres-libs=/usr/local/pgsql/lib --enable-largefile --with-macosx-archs="i386 x86_64"
> 
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
> 
> "We are at war with them. Neither in hatred nor revenge and with no particular pleasure I shall kill every ___ I can until the war is over. That is my duty."
> 
> "Don't you even hate 'em?"
> 
> "What good would it do if I did? If all the many millions of people of the allied nations devoted an entire year exclusively to hating the ____ it wouldn't kill one ___ nor shorten the war one day."
> 
> <Ha, ha> "And it might give 'em all stomach ulcers."
> 
> - Tarzan, on war
> 



More information about the grass-dev mailing list