Page 1 of 1

How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Thu May 11, 2017 6:47 pm
by Antonio Linares
Download this OpenSSL and unzip it at c:\OpenSSL-Win32

https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/OpenSSL-Win32.zip

Download this curl and unzip it at c:\curl (using Total Commander you simply double click on it and drag&drop)

https://bintray.com/artifact/download/vszakats/generic/curl-7.54.0-win32-mingw.7z

We keep a copy of this file at:

https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/curl-7.54.0-win32-mingw.7z

go to:

c:\harbour\contrib\hbcurl\

and execute this batch file:

go.bat
Code: Select all  Expand view
set path=c:\bcc7\bin
set HB_COMPILER=bcc
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
set HB_WITH_CURL=c:\curl\include
c:\harbour\bin\hbmk2 hbcurl

Here you have the libs already built:
https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/hbcurl.zip

Re: How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Thu May 11, 2017 6:51 pm
by Antonio Linares
If you want these libs to be automatically created when Harbour is built then use this batch to create Harbour:

go.bat
Code: Select all  Expand view
set path=c:\bcc7\bin
set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
set HB_WITH_CURL=c:\curl\include
win-make.exe

Re: How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Thu May 11, 2017 7:04 pm
by cnavarro
Thanks

Re: How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Thu Nov 09, 2017 6:36 am
by hua
There are 3 libs in hbcurl.zip; hbcurl.lib, hbcurls.lib and libcurl.lib.

Do we have to link in all of them or only either one?

TIA

Re: How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Sun Jan 07, 2018 11:01 am
by Andrés González
Antonio estas librerias no las genera el resto sí, sabes lo que falta para que las genere.

$(HPATHL)\hbtipssl.lib
$(HPATHL)\libssl32.lib

Re: How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Sun Jan 07, 2018 5:44 pm
by Antonio Linares
Estas usando set HB_WITH_OPENSSL=c:\OpenSSL-Win32\include ?

Re: How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Mon Jan 08, 2018 6:54 am
by Baxajaun
Buenos días Antonio,

Feliz y Próspero 2018 !!!

No sería mejor que las incluyeses con la distribución de Harbour que haces ?

Muchas gracias.

Un abrazo,

Re: How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Mon Jan 08, 2018 10:35 am
by Antonio Linares
Pues si, efectivamente sería lo suyo :-)

Voy a prepararlas...

Re: How to build Harbour hbcurl.lib and hbcurls.lib

PostPosted: Tue Apr 10, 2018 8:21 pm
by AngelSalom
Una consulta, en las versiones de libcurl a partir de la 7.56 se han incluido funciones para el envío de ficheros rellenando formularios.

Code: Select all  Expand view
curl_mime_init()
curl_mime_addpart()
curl_mime_filedata()
curl_mime_name()
 


https://curl.haxx.se/libcurl/c/curl_mime_init.html

¿Sabéis si están incluidas en la hbcurl para volver a descargarla y compilarla?
Gracias