[GRASS-dev] grass6_devel, problems to find gdal library

Hi

i'm tring to update grass from svn, on osx .

the configure find gdal-config
but fail to find gdal libraries
....
.....
......
checking for location of JPEG includes... /Library/Frameworks/UnixImageIO.framework/unix/include
checking for jpeglib.h... yes
checking for location of JPEG library... /Library/Frameworks/UnixImageIO.framework/unix/lib
checking for jpeg_start_compress in -ljpeg... yes
checking whether to use GDAL... yes
checking for gdal-config... /Library/Frameworks/GDAL.framework/Programs/gdal-config
configure: error: *** Unable to locate GDAL library.

using the same configure (and the same gdal libraries)
on the svn code downloaded 2 weeks ago
(i don't know how to check the exact release it is),

it works as aspected
thanks for any suggestion,
regards

Massimo Di Stefano.
Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com

same error on Debian/Sid for a couple of days now.

2008/7/4 Massimo Di Stefano <massimodisasha@yahoo.it>:

Hi

i'm tring to update grass from svn, on osx .

the configure find gdal-config
but fail to find gdal libraries
....
.....
......
checking for location of JPEG includes...
/Library/Frameworks/UnixImageIO.framework/unix/include
checking for jpeglib.h... yes
checking for location of JPEG library...
/Library/Frameworks/UnixImageIO.framework/unix/lib
checking for jpeg_start_compress in -ljpeg... yes
checking whether to use GDAL... yes
checking for gdal-config...
/Library/Frameworks/GDAL.framework/Programs/gdal-config
configure: error: *** Unable to locate GDAL library.

using the same configure (and the same gdal libraries)
on the svn code downloaded 2 weeks ago
(i don't know how to check the exact release it is),

it works as aspected
thanks for any suggestion,
regards

Massimo Di Stefano.
Chiacchiera con i tuoi amici in tempo
reale!http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Yann Chemin
International Rice Research Institute
Office: http://www.irri.org/gis
Perso: http://www.freewebs.com/ychemin

Massimo Di Stefano wrote:

i'm tring to update grass from svn, on osx .

the configure find gdal-config
but fail to find gdal libraries
....
.....
......
checking for location of JPEG includes... /Library/Frameworks/
UnixImageIO.framework/unix/include
checking for jpeglib.h... yes
checking for location of JPEG library... /Library/Frameworks/
UnixImageIO.framework/unix/lib
checking for jpeg_start_compress in -ljpeg... yes
checking whether to use GDAL... yes
checking for gdal-config... /Library/Frameworks/GDAL.framework/
Programs/gdal-config
configure: error: *** Unable to locate GDAL library.

Look in config.log for the command which fails and any error messages
which it generates.

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

config.log
-------------
configure:7599: checking whether to use GDAL
configure:7612: checking for gdal-config
configure:7677: gcc -o conftest -g -O2 -Wl,--export-dynamic
conftest.c -L/usr/lib -lgdal1.5.0 1>&5
configure:7671:18: error: gdal.h: No such file or directory
configure: In function 'main':
configure:7673: error: 'GA_ReadOnly' undeclared (first use in this function)
configure:7673: error: (Each undeclared identifier is reported only once
configure:7673: error: for each function it appears in.)
configure: failed program was:
#line 7670 "configure"
#include "confdefs.h"
#include <gdal.h>
int main() {
GDALOpen("foo", GA_ReadOnly);
; return 0; }
configure:7693: gcc -o conftest -g -O2 -Wl,--export-dynamic
conftest.c -L/usr/lib -lgdal1.5.0 -L/usr/lib -lgeos_c -I/usr/include
-lsqlite3 -lodbc -lodbcinst -L/usr/lib -lexpat -L/usr/lib -lxerces-c
-lpthread -ljasper -lhdf5 -lmfhdf -ldf -logdi -lgif -ljpeg -ltiff
-lpng -lnetcdf -lpq -L/usr/lib -lpq -lz -lpthread -lm -lrt -ldl -lcurl
-L/usr/lib/mysql -lmysqlclient 1>&5
configure:7687:18: error: gdal.h: No such file or directory
configure: In function 'main':
configure:7689: error: 'GA_ReadOnly' undeclared (first use in this function)
configure:7689: error: (Each undeclared identifier is reported only once
configure:7689: error: for each function it appears in.)
configure: failed program was:
#line 7686 "configure"
#include "confdefs.h"
#include <gdal.h>
int main() {
GDALOpen("foo", GA_ReadOnly);
; return 0; }

locate gdal.h returns: /usr/include/gdal/gdal.h

Added in configure options:
--with-includes=/usr/include/gdal

and it compiled properly
Thanks Glynn
Yann

2008/7/5 Glynn Clements <glynn@gclements.plus.com>:

Massimo Di Stefano wrote:

i'm tring to update grass from svn, on osx .

the configure find gdal-config
but fail to find gdal libraries
....
.....
......
checking for location of JPEG includes... /Library/Frameworks/
UnixImageIO.framework/unix/include
checking for jpeglib.h... yes
checking for location of JPEG library... /Library/Frameworks/
UnixImageIO.framework/unix/lib
checking for jpeg_start_compress in -ljpeg... yes
checking whether to use GDAL... yes
checking for gdal-config... /Library/Frameworks/GDAL.framework/
Programs/gdal-config
configure: error: *** Unable to locate GDAL library.

Look in config.log for the command which fails and any error messages
which it generates.

--
Glynn Clements <glynn@gclements.plus.com>
_______________________________________________
grass-dev mailing list
grass-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-dev

--
Yann Chemin
International Rice Research Institute
Office: http://www.irri.org/gis
Perso: http://www.freewebs.com/ychemin

Finally had a chance to try it myself. Looks like changes in r31909 broke it. The tests are now including gdal.h, yet the GDAL include path isn't added to the test compile:

configure:7677: gcc -o conftest -Os -arch ppc -arch i386 -arch ppc -arch i386 -arch ppc -arch i386 conftest.c -L/Library/Frameworks/GDAL.framework/Versions/1.5/unix/lib -lgdal 1>&5
configure:7671:18: error: gdal.h: No such file or directory

On Jul 4, 2008, at 12:28 PM, Glynn Clements wrote:

Massimo Di Stefano wrote:

i'm tring to update grass from svn, on osx .

the configure find gdal-config
but fail to find gdal libraries
....
.....
......
checking for location of JPEG includes... /Library/Frameworks/
UnixImageIO.framework/unix/include
checking for jpeglib.h... yes
checking for location of JPEG library... /Library/Frameworks/
UnixImageIO.framework/unix/lib
checking for jpeg_start_compress in -ljpeg... yes
checking whether to use GDAL... yes
checking for gdal-config... /Library/Frameworks/GDAL.framework/
Programs/gdal-config
configure: error: *** Unable to locate GDAL library.

Look in config.log for the command which fails and any error messages
which it generates.

--
Glynn Clements <glynn@gclements.plus.com>
_______________________________________________
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/

"I ache, therefore I am. Or in my case - I am, therefore I ache."

- Marvin

On Sun, Jul 6, 2008 at 7:29 PM, William Kyngesburye
<woklist@kyngchaos.com> wrote:

Finally had a chance to try it myself. Looks like changes in r31909 broke
it. The tests are now including gdal.h, yet the GDAL include path isn't
added to the test compile:

That r31909 change is the backport of
http://trac.osgeo.org/grass/changeset/31861
Timestamp: 06/27/08 12:48:11 (1 week ago)
Author: glynn
Message:
    Add LOC_CHECK_LINK to allow checking Windows (stdcall) libraries
    Change GDAL ODBC checks to handle stdcall

[yes, I'll start to add the change rev into the backports]

configure:7677: gcc -o conftest -Os -arch ppc -arch i386 -arch ppc -arch
i386 -arch ppc -arch i386 conftest.c
-L/Library/Frameworks/GDAL.framework/Versions/1.5/unix/lib -lgdal 1>&5
configure:7671:18: error: gdal.h: No such file or directory

It was also broken on grass.osgeo.org (Fedora, builds snapshots
and prog-man), Yann's include trick is a work-around.

Markus

Markus Neteler wrote:

On Sun, Jul 6, 2008 at 7:29 PM, William Kyngesburye
<woklist@kyngchaos.com> wrote:
> Finally had a chance to try it myself. Looks like changes in r31909 broke
> it. The tests are now including gdal.h, yet the GDAL include path isn't
> added to the test compile:

That r31909 change is the backport of
http://trac.osgeo.org/grass/changeset/31861
Timestamp: 06/27/08 12:48:11 (1 week ago)
Author: glynn
Message:
    Add LOC_CHECK_LINK to allow checking Windows (stdcall) libraries
    Change GDAL ODBC checks to handle stdcall

Fixed in trunk in r32030.

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

On Sun, Jul 6, 2008 at 8:33 PM, Glynn Clements <glynn@gclements.plus.com> wrote:

Markus Neteler wrote:

On Sun, Jul 6, 2008 at 7:29 PM, William Kyngesburye
<woklist@kyngchaos.com> wrote:
> Finally had a chance to try it myself. Looks like changes in r31909 broke
> it. The tests are now including gdal.h, yet the GDAL include path isn't
> added to the test compile:

...

Fixed in trunk in r32030.

Backported to 6.4.svn in r32031.

Markus

On Jul 6, 2008, at 1:52 PM, Markus Neteler wrote:

On Sun, Jul 6, 2008 at 8:33 PM, Glynn Clements <glynn@gclements.plus.com> wrote:

Markus Neteler wrote:

On Sun, Jul 6, 2008 at 7:29 PM, William Kyngesburye
<woklist@kyngchaos.com> wrote:

Finally had a chance to try it myself. Looks like changes in r31909 broke
it. The tests are now including gdal.h, yet the GDAL include path isn't
added to the test compile:

...

Fixed in trunk in r32030.

Backported to 6.4.svn in r32031.

Works for me now on OSX.

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