[gdal-dev] GDAL installing about building openev

Randy randyqiuxy at hotmail.com
Tue Nov 17 00:46:28 EST 2009


Hi Frank and list,
I haven't solved this problem yet.I have checked config.log and just
found the info:
"configure:5590: Using requested GDAL_HOME
of /home/randyqiu/run-time/gdal-1.6.2
configure:5605: checking for GDALOpen in -lgdal
configure:5640: gcc -o conftest   -O2 -I/usr/local/include
-I/usr/local/include  conftest.c -lgdal  -lgdal
-L/home/randyqiu/run-time/gdal-1.6.2/lib  -lgtkgl    -ldl
-L/usr/local/lib >&5
/usr/bin/ld: cannot find -lgtkgl
collect2: ld returned 1 exit status
configure:5647: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define HAVE_LIBDL 1
| #define STDC_HEADERS 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define HAVE_STRING_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_VPRINTF 1
| #define USE_GNUCC 1
| #define USE_GNUCC 1
| /* end confdefs.h.  */
| 
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char GDALOpen ();
| int
| main ()
| {
| return GDALOpen ();
|   ;
|   return 0;
| }
configure:5668: result: no
configure:5679: checking for GDALOpen in -lgdal
configure:5742: result: no
configure:5754: checking for GDALOpen in -lgdal
configure:5817: result: no
configure:5832: error: 
OpenEV requires GDAL library, but it was not found.  Please download
and install it.  See http://www.remotesensing.org/gdal "

But I don't have any idea about the info.I thought there is something
wrong with building GDAL since there is error info as follows although
"configure: exit 0" and applications in GDAL/bin work very well:

"conftest.cpp:19:28: error: ac_nonexistent.h: No such file or directory"
"conftest.c:67:20: error: direct.h: No such file or directory"
"conftest.c: In function 'main':
conftest.c:41: error: 'not' undeclared (first use in this function)
conftest.c:41: error: (Each undeclared identifier is reported only once
conftest.c:41: error: for each function it appears in.)
conftest.c:41: error: expected ';' before 'big'
configure:16000: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME """

Any suggestion? Thanks!
Best regards,
Randy

在 2009-11-15日的 10:39 -0500,Frank Warmerdam写道:
> On Sun, Nov 15, 2009 at 1:45 AM, Randy <randyqiuxy at hotmail.com> wrote:
> > Hi list,
> > when I "./configure..." the OpenEv,the error is as follows:
> >
> > configure: Using requested GDAL_HOME
> > of /home/randyqiu/run-time/gdal-1.6.2
> > checking for GDALOpen in -lgdal... no
> > checking for GDALOpen in -lgdal... (cached) no
> > checking for GDALOpen in -lgdal... (cached) no
> > configure: error:
> > OpenEV requires GDAL library, but it was not found.  Please download
> > and install it.  See http://www.remotesensing.org/gdal
> >
> > But I have install GDAL successfully and there are four files(bin
> > include lib share)in the path "/home/randyqiu/run-time/gdal-1.6.2".
> 
> Randy,
> 
> I'm not clear on what GDAL related options you passed to
> configure.  You may find it helpful to open config.log in an
> editor and look for GDALOpen, then examine that area
> of the log for a more specific idea of why things failed.
> 
> Best regards,



More information about the gdal-dev mailing list