[gdal-dev] Need some help adding libCurl to GDAL
bontepaarden at gmail.com
Fri May 20 04:16:24 EDT 2011
I've been mailing with Tamas already.
I want to build GDAL myself because we want to add additional libraries as
libKML, SpatiaLite and PostGIS.
When I do curl.exe -V I get
curl 7.21.6 (i386-pc-win32) libcurl/7.21.6 OpenSSL/1.0.0d libssh2/1.2.8
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp
ftp smtp smtps telnet tftp
Features: AsynchDNS Largefile NTLM SSL
When I do curl https://my.server.com I get
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify
When I do curl *-k* https://my.server.com I get the result I want.
So curl is properly configured.
Do I need to change something in my nmake.opt of GDAL or do I need to use
ogrinfo and ogr2ogr in a different way so I can pass the -k option?
*Paul Meems *
Release manager, configuration manager
and forum moderator of MapWindow GIS.
Owner of MapWindow.nl - Support for
Dutch speaking users.
2011/5/19 Even Rouault <even.rouault at mines-paris.org>
> Le jeudi 19 mai 2011 10:22:08, Paul Meems a écrit :
> > Hi List,
> > I'm still working on Win7 with VS2008 and I try to add libcurl to GDAL so
> > we can use the new WFS driver.
> > Two days ago I already succeeded in compile just libcurl and add it to
> > GDAL. But then the WFS driver doesn't work with https links.
> > So yesterday I've been trying for almost 10 hours to get libcurl, openssl
> > and libssh to compile together.
> > I'm using
> > io-2008.pdfas a guide and downloaded and installed:
> > * ActivePerl
> > * OpenSSL
> > * libSSH2
> > * Netwide Assembler
> Did you try Tamas' builds ? It seems they have SSL support according to his
> blog entry :
> > I've got the necessary files now. I also did what was suggested in
> > A of the PDF.
> > But when I do ogrinfo -ro WFS:https://my.testserver.com I get this
> > response: Error returned by server : Protocol https not supported or
> > disabled in libcurl
> > Today I tried checking if libcurl is configured properly, but I'm lost in
> > the non-windows makefile and perl files.
> > But because I followed the guide I assume libcurl is correctly build.
> > Most likely I need to make additional changes to my nmake.opt for GDAL.
> > Currently I have this:
> > CURL_DIR = $(GDAL_HOME)\..\cUrl
> > CURL_INC = -I$(CURL_DIR)/include
> > CURL_LIB = $(CURL_DIR)/lib/DLL-Release/libcurl_imp.lib wsock32.lib
> > wldap32.lib winmm.lib
> > I'm also not aware what is best: using a dynamic or static library, but
> > that is a more general question ;)
> > So please advice me how to enable https.
> > Thanks,
> > Paul
> > *Paul Meems *
> > Release manager, configuration manager
> > and forum moderator of MapWindow GIS.
> > www.mapwindow.org
> > Owner of MapWindow.nl - Support for
> > Dutch speaking users.
> > www.mapwindow.nl
> > *
> > *
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev