[GRASS-dev] 64 bit compiling of GRASS 7 on Mac - /lib/vector/diglib fails

On Jan 14, 2009, at 6:35 AM, <grass-dev-request@lists.osgeo.org> wrote:

Date: Tue, 13 Jan 2009 22:55:47 -0600
From: William Kyngesburye <woklist@kyngchaos.com>
Subject: Re: [GRASS-dev] 64 bit compiling of GRASS 7 on Mac -
  /lib/vector/diglib fails
To: Michael Barton <michael.barton@asu.edu>
Cc: grass developers <grass-dev@lists.osgeo.org>
Message-ID: <12C25FC2-2E73-49B7-A10D-1098EBAFB329@kyngchaos.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

On Jan 13, 2009, at 9:34 PM, Michael Barton wrote:

gcc -L/Users/cmbarton/grass_dev/grass7_src/dist.i386-apple-
darwin9.6.0/lib -arch i386 -arch i386 -Os -arch i386 -arch i386 -
Os -arch i386 -arch x86_64 -Os -

Ah, here could be the problem - either your CFLAGS or LDFLAGS export
has 2 i386 flags, missing x86_64.

You were right William. It compiled with a complaint only from xganim. However, you were also right in that in spite of compiling, stuff doesn't work well. Too bad that we can't compile 64 bit on the Mac. :frowning:

Michael

On Jan 14, 2009, at 11:31 AM, Michael Barton wrote:

You were right William. It compiled with a complaint only from xganim. However, you were also right in that in spite of compiling, stuff doesn't work well. Too bad that we can't compile 64 bit on the Mac. :frowning:

Michael

yeah, just tried 64bit v.in.ogr in trunk, and it still crashes. I (finally) submitted a bug report to get the ball rolling to fix it.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Earth: "Mostly harmless"

- revised entry in the HitchHiker's Guide to the Galaxy

William Kyngesburye wrote:

On Jan 14, 2009, at 11:31 AM, Michael Barton wrote:

You were right William. It compiled with a complaint only from xganim. However, you were also right in that in spite of compiling, stuff doesn't work well. Too bad that we can't compile 64 bit on the Mac. :frowning:

Michael

yeah, just tried 64bit v.in.ogr in trunk, and it still crashes. I (finally) submitted a bug report to get the ball rolling to fix it.

Not that I know anything about compiling on Mac, but was gdal compiled with -arch i386 or -arch x86_64? Just an idea, GRASS links against gdal and ogr libraries, and if they were compiled for a different architecture (i386 instead of x86_64), it won't work.

Markus M

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Earth: "Mostly harmless"

- revised entry in the HitchHiker's Guide to the Galaxy

_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

On Jan 14, 2009, at 12:08 PM, Markus Metz wrote:

yeah, just tried 64bit v.in.ogr in trunk, and it still crashes. I (finally) submitted a bug report to get the ball rolling to fix it.

Not that I know anything about compiling on Mac, but was gdal compiled with -arch i386 or -arch x86_64? Just an idea, GRASS links against gdal and ogr libraries, and if they were compiled for a different architecture (i386 instead of x86_64), it won't work.

yes, all my frameworks are ppc+intel, 32+64bit. It's crashing after the import step, in the cleaning steps (see bug report).

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe