[GRASS-dev] GRASS 7 configure fails on Mac

I just did an svn update from trunk and tried to configure GRASS 7 prior to compiling. I'm using the same configure string that worked successfully 48 hours ago. But configure failed with an geos-config error (below). Is this a bug, or do I need to change my config string to something different?

Michael

========= error =======

checking for gdal-config... /Library/Frameworks/GDAL.framework/Programs/gdal-config
checking whether to use GEOS... yes
checking for geos-config... no
configure: error: *** couldn't find geos-config

========= configure string - used to work ==========

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

Look in config.log to see why.

On Mar 30, 2009, at 12:56 PM, Michael Barton wrote:

I just did an svn update from trunk and tried to configure GRASS 7 prior to compiling. I'm using the same configure string that worked successfully 48 hours ago. But configure failed with an geos-config error (below). Is this a bug, or do I need to change my config string to something different?

Michael

========= error =======

checking for gdal-config... /Library/Frameworks/GDAL.framework/Programs/gdal-config
checking whether to use GEOS... yes
checking for geos-config... no
configure: error: *** couldn't find geos-config

========= configure string - used to work ==========

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

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

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*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

Hi,

2009/3/30 Michael Barton <michael.barton@asu.edu>:

I just did an svn update from trunk and tried to configure GRASS 7 prior to
compiling. I'm using the same configure string that worked successfully 48
hours ago. But configure failed with an geos-config error (below). Is this a
bug, or do I need to change my config string to something different?

recently geos supported was added, so you need to install GEOS library
or configure with --with-geos=no.

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

On Mon, Mar 30, 2009 at 8:38 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2009/3/30 Michael Barton <michael.barton@asu.edu>:

I just did an svn update from trunk and tried to configure GRASS 7 prior to
compiling. I'm using the same configure string that worked successfully 48
hours ago. But configure failed with an geos-config error (below). Is this a
bug, or do I need to change my config string to something different?

recently geos supported was added, so you need to install GEOS library
or configure with --with-geos=no.

Should the default be no (debatable of course..)?

MArkus

Hi,

2009/3/30 Markus Neteler <neteler@osgeo.org>:

On Mon, Mar 30, 2009 at 8:38 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2009/3/30 Michael Barton <michael.barton@asu.edu>:

I just did an svn update from trunk and tried to configure GRASS 7 prior to
compiling. I'm using the same configure string that worked successfully 48
hours ago. But configure failed with an geos-config error (below). Is this a
bug, or do I need to change my config string to something different?

recently geos supported was added, so you need to install GEOS library
or configure with --with-geos=no.

Should the default be no (debatable of course..)?

I was thinking to change it to 'no'. I will do.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

Ah. I guess you could do similar to how the other frameworks are handled:

--with-geos-includes=/Library/Frameworks/GEOS.framework/unix/include --with-geos-libs=/Library/Frameworks/GEOS.framework/unix/lib

-OR-

--with-geos=/Library/Frameworks/GEOS.framework/Programs/geos-config

depending on how configure is setup to handle GEOS.

On Mar 30, 2009, at 1:38 PM, Martin Landa wrote:

Hi,

2009/3/30 Michael Barton <michael.barton@asu.edu>:

I just did an svn update from trunk and tried to configure GRASS 7 prior to
compiling. I'm using the same configure string that worked successfully 48
hours ago. But configure failed with an geos-config error (below). Is this a
bug, or do I need to change my config string to something different?

recently geos supported was added, so you need to install GEOS library
or configure with --with-geos=no.

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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

Earth: "Mostly harmless"

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

On Mar 30, 2009, at 12:00 PM, William Kyngesburye wrote:

Ah. I guess you could do similar to how the other frameworks are handled:

--with-geos-includes=/Library/Frameworks/GEOS.framework/unix/include --with-geos-libs=/Library/Frameworks/GEOS.framework/unix/lib

-OR-

--with-geos=/Library/Frameworks/GEOS.framework/Programs/geos-config

depending on how configure is setup to handle GEOS.

On Mar 30, 2009, at 1:38 PM, Martin Landa wrote:

Hi,

2009/3/30 Michael Barton <michael.barton@asu.edu>:

I just did an svn update from trunk and tried to configure GRASS 7 prior to
compiling. I'm using the same configure string that worked successfully 48
hours ago. But configure failed with an geos-config error (below). Is this a
bug, or do I need to change my config string to something different?

recently geos supported was added, so you need to install GEOS library
or configure with --with-geos=no.

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
grass-dev Info Page

-----

Neither one of these work, even though they correctly map to the location of geos-config and the lib and include directories (set up from your frameworks packages). I'll try to compile without GEOS, though I don't know what I'll be missing there.

This needs to be fixed somehow for Mac.

Michael

On Mar 30, 2009, at 11:38 AM, Martin Landa wrote:

Hi,

2009/3/30 Michael Barton <michael.barton@asu.edu>:

I just did an svn update from trunk and tried to configure GRASS 7 prior to
compiling. I'm using the same configure string that worked successfully 48
hours ago. But configure failed with an geos-config error (below). Is this a
bug, or do I need to change my config string to something different?

recently geos supported was added, so you need to install GEOS library
or configure with --with-geos=no.

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

This doesn't work either, nor does --without-geos.

There seems to be something broken here.

Michael

Hi,

2009/3/30 Michael Barton <michael.barton@asu.edu>:

Neither one of these work, even though they correctly map to the location of
geos-config and the lib and include directories (set up from your frameworks
packages). I'll try to compile without GEOS, though I don't know what I'll
be missing there.

I changed default option to --with-geos=no, so you don't need to
modify your configuration script. If you compile with geos you can use
more spatial operators (touches, disjoint, etc.) in v.select.

Martin

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

2009/3/30 Michael Barton <michael.barton@asu.edu>:

This doesn't work either, nor does --without-geos.

--with-geos=no

There seems to be something broken here.

Update your local copy, from r36538 is default "--with-geos=no".

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

I looked at configure to see what it's doing for GEOS. Looks like the geos-config option should be the one. config.log is your friend when configure fails.

Is GEOS support really using the C++ API? geos-config --libs only returns the C++ linking info.

Searching the rest of the source, I don't see GEOS used, yet, so there should be no problems compiling --without-geos. Is this yet to come?

On Mar 30, 2009, at 1:42 PM, Martin Landa wrote:

Hi,

2009/3/30 Markus Neteler <neteler@osgeo.org>:

On Mon, Mar 30, 2009 at 8:38 PM, Martin Landa <landa.martin@gmail.com> wrote:

Hi,

2009/3/30 Michael Barton <michael.barton@asu.edu>:

I just did an svn update from trunk and tried to configure GRASS 7 prior to
compiling. I'm using the same configure string that worked successfully 48
hours ago. But configure failed with an geos-config error (below). Is this a
bug, or do I need to change my config string to something different?

recently geos supported was added, so you need to install GEOS library
or configure with --with-geos=no.

Should the default be no (debatable of course..)?

I was thinking to change it to 'no'. I will do.

Martin

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

"Oh, look, I seem to have fallen down a deep, dark hole. Now what does that remind me of? Ah, yes - life."

- Marvin

Hi,

2009/3/30 William Kyngesburye <woklist@kyngchaos.com>:

I looked at configure to see what it's doing for GEOS. Looks like the
geos-config option should be the one. config.log is your friend when
configure fails.

see ./configure --help

--with-geos takes path to geos-config similary to --with-gdal.

Is GEOS support really using the C++ API? geos-config --libs only returns
the C++ linking info.

No, C API.

Searching the rest of the source, I don't see GEOS used, yet, so there
should be no problems compiling --without-geos. Is this yet to come?

lib/vector/Vlib/geos.c
vector/v.select/geos.c

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

On Mar 30, 2009, at 4:57 PM, Martin Landa wrote:

Is GEOS support really using the C++ API? geos-config --libs only returns
the C++ linking info.

No, C API.

Then add -lgeos_c the GEOS_LIBS? Though you might want an extra check to verify libgeos_c exists.

Maybe this is where Michael is having problems.

Searching the rest of the source, I don't see GEOS used, yet, so there
should be no problems compiling --without-geos. Is this yet to come?

lib/vector/Vlib/geos.c
vector/v.select/geos.c

Strange, my text search for GEOSLIBS and GEOSCLFAGS didn't turn up anything (except in configure where I looked with my eyes), yet I see them in platform.make.in, grass.make and vlib/makefile. Must have had a filter on.

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

"History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history."

- Hitchhiker's Guide to the Galaxy

Finally got some time to actually try it. Error in python vdigit - it's looking for geos_c.h, from Vect.h.

For the linking, it works on OSX as is, but only because I include both C++ and C APIs (libgeos and libgeos_c) in the same binary in the GEOS framework. On other platforms, libgeos_c is probably necessary.

On Mar 30, 2009, at 5:24 PM, William Kyngesburye wrote:

On Mar 30, 2009, at 4:57 PM, Martin Landa wrote:

Is GEOS support really using the C++ API? geos-config --libs only returns
the C++ linking info.

No, C API.

Then add -lgeos_c the GEOS_LIBS? Though you might want an extra check to verify libgeos_c exists.

Maybe this is where Michael is having problems.

Searching the rest of the source, I don't see GEOS used, yet, so there
should be no problems compiling --without-geos. Is this yet to come?

lib/vector/Vlib/geos.c
vector/v.select/geos.c

Strange, my text search for GEOSLIBS and GEOSCLFAGS didn't turn up anything (except in configure where I looked with my eyes), yet I see them in platform.make.in, grass.make and vlib/makefile. Must have had a filter on.

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

"History is an illusion caused by the passage of time, and time is an illusion caused by the passage of history."

- Hitchhiker's Guide to the Galaxy

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

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*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

On Mar 30, 2009, at 7:27 PM, William Kyngesburye wrote:

Finally got some time to actually try it. Error in python vdigit - it's looking for geos_c.h, from Vect.h.

For the linking, it works on OSX as is, but only because I include both C++ and C APIs (libgeos and libgeos_c) in the same binary in the GEOS framework. On other platforms, libgeos_c is probably necessary.

On Mar 30, 2009, at 5:24 PM, William Kyngesburye wrote:

On Mar 30, 2009, at 4:57 PM, Martin Landa wrote:

Is GEOS support really using the C++ API? geos-config --libs only returns
the C++ linking info.

No, C API.

Then add -lgeos_c the GEOS_LIBS? Though you might want an extra check to verify libgeos_c exists.

Maybe this is where Michael is having problems.

Searching the rest of the source, I don't see GEOS used, yet, so there
should be no problems compiling --without-geos. Is this yet to come?

lib/vector/Vlib/geos.c
vector/v.select/geos.c

Strange, my text search for GEOSLIBS and GEOSCLFAGS didn't turn up anything (except in configure where I looked with my eyes), yet I see them in platform.make.in, grass.make and vlib/makefile. Must have had a filter on.

-----
William Kyngesb

So you're saying that vdigit doesn't work again because of the geos problem?

Michael

Hi,

2009/3/31 Michael Barton <michael.barton@asu.edu>:

So you're saying that vdigit doesn't work again because of the geos problem?

again, problem? :wink:

I wasn't expecting that if you have GEOS installed that geos_c.h is
not available. If so than vector libs compilation fail. In this case
checking for geos-config is not enough.

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

I will put checking for geos_c.h to configure. M.

2009/3/31 Martin Landa <landa.martin@gmail.com>:

Hi,

2009/3/31 Michael Barton <michael.barton@asu.edu>:

So you're saying that vdigit doesn't work again because of the geos problem?

again, problem? :wink:

I wasn't expecting that if you have GEOS installed that geos_c.h is
not available. If so than vector libs compilation fail. In this case
checking for geos-config is not enough.

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

OK.

William, how to test?

Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>

On Mar 30, 2009, at 10:03 PM, Martin Landa wrote:

I will put checking for geos_c.h to configure. M.

2009/3/31 Martin Landa <landa.martin@gmail.com>:

Hi,

2009/3/31 Michael Barton <michael.barton@asu.edu>:

So you're saying that vdigit doesn't work again because of the geos problem?

again, problem? :wink:

I wasn't expecting that if you have GEOS installed that geos_c.h is
not available. If so than vector libs compilation fail. In this case
checking for geos-config is not enough.

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa

The problem is not that geos_c.h is missing, it's that the vdigit makefile needs the geos include path in its EXTRA_CFLAGS.

The vlib compile does include this, as a part of VECT_CFLAGS, thus it's not failing.

On Mar 31, 2009, at 12:02 AM, Martin Landa wrote:

Hi,

2009/3/31 Michael Barton <michael.barton@asu.edu>:

So you're saying that vdigit doesn't work again because of the geos problem?

again, problem? :wink:

I wasn't expecting that if you have GEOS installed that geos_c.h is
not available. If so than vector libs compilation fail. In this case
checking for geos-config is not enough.

M.

--
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

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

"The beast is actively interested only in now, and, as it is always now and always shall be, there is an eternity of time for the accomplishment of objects."

- the wisdom of Tarzan