[GRASS-dev] grass7 build on osx snow leopard

Tring to build grass7 on snow leopard
i had a long list of errors, here the coplete build log :

http://www.geofemengineering.it/data/grass7_log.txt

ciao,

Massimo

Massimo Di Stefano wrote:

Tring to build grass7 on snow leopard
i had a long list of errors, here the coplete build log :

http://www.geofemengineering.it/data/grass7_log.txt

As is normally the case, the first error is what's relevant:

Undefined symbols:
  "_iconv", referenced from:
      _print_escaped_for_xml in parser_interface.o
  "_iconv_close", referenced from:
      _print_escaped_for_xml in parser_interface.o
  "_iconv_open", referenced from:
      _print_escaped_for_xml in parser_interface.o

make[3]: *** [/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/lib/libgrass_gis.7.0.svn.dylib] Error 1

Obviously, if lib/gis fails to compile, the rest of GRASS is toast.

Try this:

Index: include/Make/Grass.make

--- include/Make/Grass.make (revision 40803)
+++ include/Make/Grass.make (working copy)
@@ -190,7 +190,7 @@
DSPFDEPS = $(GISLIB)
FORMDEPS = $(DBMILIB) $(GISLIB)
G3DDEPS = $(RASTERLIB) $(GISLIB) $(XDRLIB)
-GISDEPS = $(DATETIMELIB) $(ZLIBLIBPATH) $(ZLIB) $(INTLLIB) $(REGEXLIBPATH) $(REGEXLIB) $(PTHREADLIBPATH) $(PTHREADLIB) $(MATHLIB)
+GISDEPS = $(DATETIMELIB) $(ZLIBLIBPATH) $(ZLIB) $(INTLLIB) $(REGEXLIBPATH) $(REGEXLIB) $(ICONVLIB) $(PTHREADLIBPATH) $(PTHREADLIB) $(MATHLIB)
GMATHDEPS = $(GISLIB) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB) $(CCMATHLIB)
GPDEDEPS = $(G3DLIB) $(RASTERLIB) $(GISLIB) $(GMATHLIB) $(MATHLIB)
GPROJDEPS = $(GISLIB) $(GDALLIBS) $(PROJLIB) $(MATHLIB)

--
Glynn Clements <glynn@gclements.plus.com>

Thanks Glyn it works,

i also did svn up, all goes well.
so I've a working grass7 installation.
some errors persists, but i guess they are bit-ness related :

RASS GIS compilation log
-------------------------
Started compilation: Gio 4 Feb 2010 05:31:58 CET
--
Errors in:
/Users/Shared/source/grass_trunk/vector/lidar/v.lidar.correction
/Users/Shared/source/grass_trunk/visualization/nviz
/Users/Shared/source/grass_trunk/visualization/xganim
/Users/Shared/source/grass_trunk/visualization/wximgview

Il giorno 04/feb/2010, alle ore 04.39, Glynn Clements ha scritto:

Massimo Di Stefano wrote:

Tring to build grass7 on snow leopard
i had a long list of errors, here the coplete build log :

http://www.geofemengineering.it/data/grass7_log.txt

As is normally the case, the first error is what's relevant:

Undefined symbols:
"_iconv", referenced from:
     _print_escaped_for_xml in parser_interface.o
"_iconv_close", referenced from:
     _print_escaped_for_xml in parser_interface.o
"_iconv_open", referenced from:
     _print_escaped_for_xml in parser_interface.o

make[3]: *** [/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/lib/libgrass_gis.7.0.svn.dylib] Error 1

Obviously, if lib/gis fails to compile, the rest of GRASS is toast.

Try this:

Index: include/Make/Grass.make

--- include/Make/Grass.make (revision 40803)
+++ include/Make/Grass.make (working copy)
@@ -190,7 +190,7 @@
DSPFDEPS = $(GISLIB)
FORMDEPS = $(DBMILIB) $(GISLIB)
G3DDEPS = $(RASTERLIB) $(GISLIB) $(XDRLIB)
-GISDEPS = $(DATETIMELIB) $(ZLIBLIBPATH) $(ZLIB) $(INTLLIB) $(REGEXLIBPATH) $(REGEXLIB) $(PTHREADLIBPATH) $(PTHREADLIB) $(MATHLIB)
+GISDEPS = $(DATETIMELIB) $(ZLIBLIBPATH) $(ZLIB) $(INTLLIB) $(REGEXLIBPATH) $(REGEXLIB) $(ICONVLIB) $(PTHREADLIBPATH) $(PTHREADLIB) $(MATHLIB)
GMATHDEPS = $(GISLIB) $(FFTWLIB) $(LAPACKLIB) $(BLASLIB) $(CCMATHLIB)
GPDEDEPS = $(G3DLIB) $(RASTERLIB) $(GISLIB) $(GMATHLIB) $(MATHLIB)
GPROJDEPS = $(GISLIB) $(GDALLIBS) $(PROJLIB) $(MATHLIB)

--
Glynn Clements <glynn@gclements.plus.com>

Massimo Di Stefano wrote:

i also did svn up, all goes well.
so I've a working grass7 installation.
some errors persists, but i guess they are bit-ness related :

RASS GIS compilation log
-------------------------
Started compilation: Gio 4 Feb 2010 05:31:58 CET
--
Errors in:
/Users/Shared/source/grass_trunk/vector/lidar/v.lidar.correction
/Users/Shared/source/grass_trunk/visualization/nviz
/Users/Shared/source/grass_trunk/visualization/xganim
/Users/Shared/source/grass_trunk/visualization/wximgview

I'd be interested in the error messages.

I don't know of any reason why v.lidar.correction alone would fail to
compile.

The other three can be problematic due to the dependency on high-level
GUI libraries (Tcl/Tk for NVIZ, wxWidgets for the other two).

--
Glynn Clements <glynn@gclements.plus.com>

" svn up "

Changeset [40820]+
Changeset [40821]

fix the errors.

now v.lidar.correction builds without errors.

This was the error from the make in v.lidar.correction :

MacBook-Pro-15-di-Massimo-Di-Stefano:grass_trunk sasha$ cd /Users/Shared/source/grass_trunk/vector/lidar/v.lidar.correction
MacBook-Pro-15-di-Massimo-Di-Stefano:v.lidar.correction sasha$ make
gcc -L/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/lib -L/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/lib -arch x86_64 -arch i386 -Os -g -L/usr/local/pgsql/lib -o /Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/bin/v.lidar.correction OBJ.i386-apple-darwin10.2.0/correction.o OBJ.i386-apple-darwin10.2.0/main.o -lgrass_lidar -lgrass_gmath -lgrass_vector -lgrass_dbmiclient -lgrass_dbmibase -lgrass_gis
Undefined symbols for architecture x86_64:
"_Rast_window_cols", referenced from:
     _main in main.o
"_Rast_window_rows", referenced from:
     _main in main.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Undefined symbols for architecture i386:
"_Rast_window_cols", referenced from:
     _main in main.o
"_Rast_window_rows", referenced from:
     _main in main.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
lipo: can't open input file: /var/folders/G7/G7KYb9O2GaGW2zFTZZP9nE+++TI/-Tmp-//ccyWe2z9.out (No such file or directory)
make: *** [/Users/Shared/source/grass_trunk/dist.i386-apple-darwin10.2.0/bin/v.lidar.correction] Error 1

Il giorno 04/feb/2010, alle ore 21.03, Glynn Clements ha scritto:

Massimo Di Stefano wrote:

i also did svn up, all goes well.
so I've a working grass7 installation.
some errors persists, but i guess they are bit-ness related :

RASS GIS compilation log
-------------------------
Started compilation: Gio 4 Feb 2010 05:31:58 CET
--
Errors in:
/Users/Shared/source/grass_trunk/vector/lidar/v.lidar.correction
/Users/Shared/source/grass_trunk/visualization/nviz
/Users/Shared/source/grass_trunk/visualization/xganim
/Users/Shared/source/grass_trunk/visualization/wximgview

I'd be interested in the error messages.

I don't know of any reason why v.lidar.correction alone would fail to
compile.

The other three can be problematic due to the dependency on high-level
GUI libraries (Tcl/Tk for NVIZ, wxWidgets for the other two).

--
Glynn Clements <glynn@gclements.plus.com>

On Thu, Feb 4, 2010 at 9:59 PM, Massimo Di Stefano
<massimodisasha@gmail.com> wrote:

" svn up "

Changeset [40820]+
Changeset [40821]

fix the errors.

now v.lidar.correction builds without errors.

Massimo Di Stefano wrote:

...

Errors in:

...

/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

Il giorno 05/feb/2010, alle ore 13.15, Markus Neteler ha scritto:

On Thu, Feb 4, 2010 at 9:59 PM, Massimo Di Stefano
<massimodisasha@gmail.com> wrote:

" svn up "

Changeset [40820]+
Changeset [40821]

fix the errors.

now v.lidar.correction builds without errors.

Massimo Di Stefano wrote:

...

Errors in:

...

/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"

make

...
-------------------------
Started compilation: Ven 5 Feb 2010 14:42:10 CET
--
Errors in:
/Users/Shared/source/grass_trunk/visualization/nviz
/Users/Shared/source/grass_trunk/visualization/xganim
/Users/Shared/source/grass_trunk/visualization/wximgview
--

logs :

nviz : http://www.geofemengineering.it/data/nviz.txt

xganim : http://www.geofemengineering.it/data/xganim.txt

wximgview : http://www.geofemengineering.it/data/wximgview.txt

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

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