include hbcurl

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

mlnr
Posts: 126
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF

Re: include hbcurl

Post by mlnr »

I've attached the file.
Attachments
liblibcurl.zip
liblibcurl.a
(281.78 KiB) Downloaded 449 times
Best regards,
Gabor
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: include hbcurl

Post by serge_girard »

Thx Gabor, I'll try tomorrow!

Serge
There's nothing you can do that can't be done...
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: include hbcurl

Post by chrisjx2002 »

Thx Gabor.

I have now a new error message : impossible to find curl_easy_recv in libcurl.dll
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: include hbcurl

Post by danielmaximiliano »

As Curl compile contrib Harbour Nightly

with the browser go to : https://curl.haxx.se/dlwiz/?type=lib select and download
Show package for: Windows / Win32 Unzip in :

Code: Select all

c:\curl-7.40.0-devel-mingw32
Go to
C:\harbour\contrib\hbcurl
use this batch

Code: Select all

@echo off
Title Build %1 in 32 bits
rem *************************************
set HB_WITH_CURL=c:\curl-7.40.0-devel-mingw32\include
rem *************************************

set Backup=%path%
set path=%path%;C:\hb32\bin;c:\curl-7.40.0-devel-mingw32\bin;c:\curl-7.40.0-devel-mingw32\include
hbmk2 hbcurl.hbp
set path=%backup%
set HB_WITH_CURL=
Copy Lib in
C:\hb32\lib\win\mingw
compile example en
C:\harbour\contrib\hbcurl\tests

Code: Select all

@echo off
Title Build %1 in 32bits

set Backup=%path%
set path=%path%;c:\hb32\bin
hbmk2 ftp_uldl.prg 
set path=%backup%
[attachment=0]2016-07-04 17_42_09-C__harbour_contrib_hbcurl_tests_ftp_uldl.exe.png[/attachment]
Attachments
2016-07-04 17_42_09-C__harbour_contrib_hbcurl_tests_ftp_uldl.exe.png
2016-07-04 17_42_09-C__harbour_contrib_hbcurl_tests_ftp_uldl.exe.png (12.77 KiB) Viewed 5826 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
serge_girard
Posts: 3161
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: include hbcurl

Post by serge_girard »

Thx Daniel!

Serge
There's nothing you can do that can't be done...
chrisjx2002
Posts: 190
Joined: Wed Jan 06, 2010 5:39 pm

Re: include hbcurl

Post by chrisjx2002 »

Thx Daniel.

As I have a standard hmg installation. I change hb32 by hmg.3.4.3\HARBOUR\

I don't find hbcurl.hpb. I change it in hbcurl.hbc and I have to precise mingw for the compiler : hbmk2 hbcurl.hbc -comp=mingw

In the test program I have again a problem :

hbmk2: Processing local make script: hbmk.hbm
Harbour 3.2.0dev (r1601151502)
Copyright (c) 1999-2015, http://harbour-project.org/
Compiling 'ftp_uldl.prg'...
Lines 362, Functions/Procedures 3
Generating C source output to 'C:\DOCUME~1\CHRIST~1\LOCALS~1\Temp\hbmk_5gx3o8.di
r\ftp_uldl.c'... Done.
hbmk2: Error: Running C/C++ compiler. -1
gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -W -Wall -pip
e -Ic:/hmg.3.4.3/HARBOUR/include -Ic:/hmg.3.4.3/HARBOUR/contrib/hbcurl C:/DOCUME
~1/CHRIST~1/LOCALS~1/Temp/hbmk_5gx3o8.dir/ftp_uldl.c C:/DOCUME~1/CHRIST~1/LOCALS
~1/Temp/hbmk_hp9l3w.c
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: include hbcurl

Post by danielmaximiliano »

always compile the libraries from harbour sources, these are available for download from Github https://github.com/harbour/core
or https://github.com/harbour/core/tree/ma ... rib/hbcurl

clone or download the ZIP file

buildlib.bat

Code: Select all

@echo off
Title Build %1 in 32 bits
rem *************************************
set HB_WITH_CURL=c:\curl-7.40.0-devel-mingw32\include
rem *************************************

set Backup=%path%
set path=%path%;C:\hmg.3.4.3\HARBOUR\bin;c:\curl-7.40.0-devel-mingw32\bin;c:\curl-7.40.0-devel-mingw32\include
hbmk2 hbcurl.hbp
set path=%backup%
set HB_WITH_CURL
copy the generated libraries to
C:\hmg.3.4.3\HARBOUR\lib\win\mingw
need to access dll installation is taken CURL will have to make your application work properly or add the route to your path
C:\curl-7.40.0-devel-mingw32\curl-7.40.0-devel-mingw32\bin

compile.bat

Code: Select all

@echo off
Title Build %1 in 32bits
set Backup=%path%
set path=%path%;C:\hmg.3.4.3\HARBOUR\bin;C:\hmg.3.4.3\MINGW\bin;C:\hmg.3.4.3\HARBOUR\lib\win\mingw
hbmk2 ftp_uldl.prg 
set path=%backup%
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
mol
Posts: 3718
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Contact:

Re: include hbcurl

Post by mol »

why we need to compile libhbcurl.a - it is present in harbour\lib folder?
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: include hbcurl

Post by danielmaximiliano »

Hello everyone: sorry for not participating in the forum since since January 2 the telephone company does not fix my line and for that defect I have internet.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

include hbcurl

Post by Pablo César »

Bien venido Daniel :P
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply