[GRASS-dev] Mac OS X Xcode project available

Available on my GRASS download page.

http://www.kyngchaos.com/software/unixport/grass

Please test it. Currently works with today's 6.3 CVS snapshot. I'll work on adapting it for 6.2.

It was quite an adventure, and I thought GRASS was too complex at first (mostly just shear volume of targets, not code). But I got config file hint from the OSSIM folks that really helped out, so I could split it into sub-projects. Unfortunately, there is no automation in Xcode for generating projects, just controlling them for various build tasks, so it was a bit tedious (130+ raster targets and 75 vector targets for the big ones!). I was able to hack the project files a little to speed up the process some.

There still isn't much I can do to automate conditional targets for optional modules, so those must be selected manually and built separately.

I plan on either sub-projects, or separate projects (more likely), for a few dependencies that currently have no universal binaries available or easy universal builds from source. Gpsbabel, ffmpeg, and an X11 TclTk are a few. MySQL is a possibility - there are official binaries for PPC and Intel, but they are separate and don't include the server library needed for the mesql driver.

Cut-n-paste from my web blurb:

The Xcode project is an alternative method for building GRASS and the GRASS.app wrapper from source. Build GRASS and the Mac OS X application all at once, no need for configure-make-install in the Terminal. It easily builds a Universal binary for PPC and Intel Macs. And with the right configuration, it can build a Panther-compatible application.

The app startup wrapper does not use Python, like previous startups, since that was causing trouble. Instead, a simple AppleScript starts GRASS. This also has a smaller binary overhead ( <100KB, vs. the many MBs of the Python startup).

Configuration for dependencies is done with a xcconfig text file. There are options for using unix-style libraries or my frameworks. There are also options for automatically bundling some libraries in the application package, for a more portable GRASS.app.

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?

-HitchHiker's Guide to the Galaxy

William,

I'm trying to work with your new grass xcode project. I think in the end
this will be very useful.

Here is the first hurdle I've hit.

You say to open the file GRASS.xcodeproj in xcode and then talk about what
to build (i.e., the build target is "GRASS ALL" or "GRASS" -- I'm not sure).

However, there is no such xcode file. There is a folder named
GRASS.xcodeproj and a file named GRASS.1.xcodeproj. I tried opening
GRASS.1.xcodeproj in xcode, but it is empty. There are several files with
your name in the GRASS.xcodeproj folder.

Is there something missing or do I misunderstand you?

Michael

On 12/16/06 4:45 PM, "William Kyngesburye" <woklist@kyngchaos.com> wrote:

Available on my GRASS download page.

http://www.kyngchaos.com/software/unixport/grass

Please test it. Currently works with today's 6.3 CVS snapshot. I'll
work on adapting it for 6.2.

It was quite an adventure, and I thought GRASS was too complex at
first (mostly just shear volume of targets, not code). But I got
config file hint from the OSSIM folks that really helped out, so I
could split it into sub-projects. Unfortunately, there is no
automation in Xcode for generating projects, just controlling them
for various build tasks, so it was a bit tedious (130+ raster targets
and 75 vector targets for the big ones!). I was able to hack the
project files a little to speed up the process some.

There still isn't much I can do to automate conditional targets for
optional modules, so those must be selected manually and built
separately.

I plan on either sub-projects, or separate projects (more likely),
for a few dependencies that currently have no universal binaries
available or easy universal builds from source. Gpsbabel, ffmpeg,
and an X11 TclTk are a few. MySQL is a possibility - there are
official binaries for PPC and Intel, but they are separate and don't
include the server library needed for the mesql driver.

Cut-n-paste from my web blurb:

The Xcode project is an alternative method for building GRASS and the
GRASS.app wrapper from source. Build GRASS and the Mac OS X
application all at once, no need for configure-make-install in the
Terminal. It easily builds a Universal binary for PPC and Intel Macs.
And with the right configuration, it can build a Panther-compatible
application.

The app startup wrapper does not use Python, like previous startups,
since that was causing trouble. Instead, a simple AppleScript starts
GRASS. This also has a smaller binary overhead ( <100KB, vs. the many
MBs of the Python startup).

Configuration for dependencies is done with a xcconfig text file.
There are options for using unix-style libraries or my frameworks.
There are also options for automatically bundling some libraries in
the application package, for a more portable GRASS.app.

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

First Pogril: Why is life like sticking your head in a bucket filled
with hyena offal?
Second Pogril: I don't know. Why IS life like sticking your head in
a bucket filled with hyena offal?
First Pogril: I don't know either. Wretched, isn't it?

-HitchHiker's Guide to the Galaxy

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

You're the second one to see this. I'm puzzled. (I haven't heard back from the other person yet)

First, you have Xcode _2.4_ installed?

Second, did you do a full install, or just the GCC stuff? Do you have /Developer/Applications/Xcode.app?

On Dec 18, 2006, at 3:13 PM, Michael Barton wrote:

William,

I'm trying to work with your new grass xcode project. I think in the end
this will be very useful.

Here is the first hurdle I've hit.

You say to open the file GRASS.xcodeproj in xcode and then talk about what
to build (i.e., the build target is "GRASS ALL" or "GRASS" -- I'm not sure).

However, there is no such xcode file. There is a folder named
GRASS.xcodeproj and a file named GRASS.1.xcodeproj. I tried opening
GRASS.1.xcodeproj in xcode, but it is empty. There are several files with
your name in the GRASS.xcodeproj folder.

Is there something missing or do I misunderstand you?

Michael

-----
William Kyngesburye <kyngchaos@kyngchaos.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

Sorry William,
I've installed XCode_2_4.1 and now I am able to double click the file, but I haven't been able to compile yet.
More soon
Agustin
*******************************************************
Dr. Agustin Diez Castillo
Departament de Prehistoria i Arqueologia
Universitat de Valencia Phone: +34 963 86 42 42
Avda. Blasco Iba–ez, 28 Fax: +34 963 98 38 87
Valencia 46010
*******************************************************

On 18/12/2006, at 10:29 PM, William Kyngesburye wrote:

You're the second one to see this. I'm puzzled. (I haven't heard back from the other person yet)

First, you have Xcode _2.4_ installed?

Second, did you do a full install, or just the GCC stuff? Do you have /Developer/Applications/Xcode.app?

On Dec 18, 2006, at 3:13 PM, Michael Barton wrote:

William,

I'm trying to work with your new grass xcode project. I think in the end
this will be very useful.

Here is the first hurdle I've hit.

You say to open the file GRASS.xcodeproj in xcode and then talk about what
to build (i.e., the build target is "GRASS ALL" or "GRASS" -- I'm not sure).

However, there is no such xcode file. There is a folder named
GRASS.xcodeproj and a file named GRASS.1.xcodeproj. I tried opening
GRASS.1.xcodeproj in xcode, but it is empty. There are several files with
your name in the GRASS.xcodeproj folder.

Is there something missing or do I misunderstand you?

Michael

-----
William Kyngesburye <kyngchaos@kyngchaos.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

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

Sorry William,
I've installed XCode_2_4.1 and now I am able to double click the file, but I haven't been able to compile yet.
More soon
Agustin
*******************************************************
Dr. Agustin Diez Castillo
Departament de Prehistoria i Arqueologia
Universitat de Valencia Phone: +34 963 86 42 42
Avda. Blasco Iba–ez, 28 Fax: +34 963 98 38 87
Valencia 46010
*******************************************************

On 18/12/2006, at 10:29 PM, William Kyngesburye wrote:

You're the second one to see this. I'm puzzled. (I haven't heard back from the other person yet)

First, you have Xcode _2.4_ installed?

Second, did you do a full install, or just the GCC stuff? Do you have /Developer/Applications/Xcode.app?

On Dec 18, 2006, at 3:13 PM, Michael Barton wrote:

William,

I'm trying to work with your new grass xcode project. I think in the end
this will be very useful.

Here is the first hurdle I've hit.

You say to open the file GRASS.xcodeproj in xcode and then talk about what
to build (i.e., the build target is "GRASS ALL" or "GRASS" -- I'm not sure).

However, there is no such xcode file. There is a folder named
GRASS.xcodeproj and a file named GRASS.1.xcodeproj. I tried opening
GRASS.1.xcodeproj in xcode, but it is empty. There are several files with
your name in the GRASS.xcodeproj folder.

Is there something missing or do I misunderstand you?

Michael

-----
William Kyngesburye <kyngchaos@kyngchaos.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

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

Agustin,

Don't use stuffit expander to unpack the file. It screws it up. I'm using
GUITar (clever chiste) which is a nice interface to Tar/gzip. According to
William, Apple's zip will work too, but I don't know where that is on my
system.

Michael

On 12/19/06 5:43 AM, "Agustin Diez Castillo" <adiez@uv.es> wrote:

Sorry William,
I've installed XCode_2_4.1 and now I am able to double click the
file, but I haven't been able to compile yet.
More soon
Agustin
*******************************************************
Dr. Agustin Diez Castillo
Departament de Prehistoria i Arqueologia
Universitat de Valencia Phone: +34 963 86 42 42
Avda. Blasco Iba­ez, 28 Fax: +34 963 98 38 87
Valencia 46010
*******************************************************

On 18/12/2006, at 10:29 PM, William Kyngesburye wrote:

You're the second one to see this. I'm puzzled. (I haven't heard
back from the other person yet)

First, you have Xcode _2.4_ installed?

Second, did you do a full install, or just the GCC stuff? Do you
have /Developer/Applications/Xcode.app?

On Dec 18, 2006, at 3:13 PM, Michael Barton wrote:

William,

I'm trying to work with your new grass xcode project. I think in
the end
this will be very useful.

Here is the first hurdle I've hit.

You say to open the file GRASS.xcodeproj in xcode and then talk
about what
to build (i.e., the build target is "GRASS ALL" or "GRASS" -- I'm
not sure).

However, there is no such xcode file. There is a folder named
GRASS.xcodeproj and a file named GRASS.1.xcodeproj. I tried opening
GRASS.1.xcodeproj in xcode, but it is empty. There are several
files with
your name in the GRASS.xcodeproj folder.

Is there something missing or do I misunderstand you?

Michael

-----
William Kyngesburye <kyngchaos@kyngchaos.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

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

I don't know what happended with this zip (my other project zips don't seem to have this problem). Apple's zip is BOMArchiveHelper, and should be available from the contextual menu on the zip, under Open With.

If you got past the zip problem, let me know what errors you ran into.

On Dec 19, 2006, at 9:15 AM, Michael Barton wrote:

Agustin,

Don't use stuffit expander to unpack the file. It screws it up. I'm using
GUITar (clever chiste) which is a nice interface to Tar/gzip. According to
William, Apple's zip will work too, but I don't know where that is on my
system.

Michael

On 12/19/06 5:43 AM, "Agustin Diez Castillo" <adiez@uv.es> wrote:

Sorry William,
I've installed XCode_2_4.1 and now I am able to double click the
file, but I haven't been able to compile yet.
More soon
Agustin

-----
William Kyngesburye <kyngchaos@kyngchaos.com>
http://www.kyngchaos.com/

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable. There is another theory which states that this has already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro