include hbcurl

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

mlnr
Posts: 81
Joined: Fri Aug 28, 2015 1:52 pm
DBs Used: DBF
Location: Hungary
Has thanked: 26 times
Been thanked: 9 times

Re: include hbcurl

Post by mlnr » Mon Jul 04, 2016 11:01 am

I've attached the file.
Attachments
liblibcurl.zip
liblibcurl.a
(281.78 KiB) Downloaded 148 times
Best regards,
Gabor

User avatar
serge_girard
Posts: 2139
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 449 times
Been thanked: 102 times
Contact:

Post by serge_girard » Mon Jul 04, 2016 4:31 pm

Thx Gabor, I'll try tomorrow!

Serge

chrisjx2002
Posts: 165
Joined: Wed Jan 06, 2010 5:39 pm
Been thanked: 2 times

Post by chrisjx2002 » Mon Jul 04, 2016 4:38 pm

Thx Gabor.

I have now a new error message : impossible to find curl_easy_recv in libcurl.dll

User avatar
danielmaximiliano
Posts: 2087
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 114 times
Been thanked: 15 times
Contact:

Post by danielmaximiliano » Mon Jul 04, 2016 8:53 pm

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 2170 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
serge_girard
Posts: 2139
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 449 times
Been thanked: 102 times
Contact:

Post by serge_girard » Tue Jul 05, 2016 7:59 am

Thx Daniel!

Serge

chrisjx2002
Posts: 165
Joined: Wed Jan 06, 2010 5:39 pm
Been thanked: 2 times

Post by chrisjx2002 » Wed Jul 06, 2016 5:43 pm

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: 2087
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 114 times
Been thanked: 15 times
Contact:

Post by danielmaximiliano » Thu Jul 07, 2016 12:37 am

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%
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. : +54901169026142
Telegram Name : DaNiElMaXiMiLiAnO

User avatar
mol
Posts: 3062
Joined: Thu Sep 11, 2008 5:31 am
Location: Myszków, Poland
Has thanked: 176 times
Been thanked: 96 times
Contact:

Post by mol » Wed Feb 22, 2017 8:16 pm

why we need to compile libhbcurl.a - it is present in harbour\lib folder?

User avatar
danielmaximiliano
Posts: 2087
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Has thanked: 114 times
Been thanked: 15 times
Contact:

Post by danielmaximiliano » Wed Feb 22, 2017 11:46 pm

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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`.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
Has thanked: 100 times
Been thanked: 179 times

Post by Pablo César » Thu Feb 23, 2017 1:49 am

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

Post Reply