CURL

Post Reply
ramirezosvaldo2
Posts: 59
Joined: Mon Jan 19, 2009 4:40 pm

CURL

Post by ramirezosvaldo2 »

Hola Antonio buen dia

mi pregunta, se puede usar CURL en FWPPC ?

Mi idea es ya no usar DBF, mas bien quiero consumir un webservice dentro de mi misma RED.

Quedo a la espera de tus comentarios.

Saludos
Osvaldo Ramirez
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: CURL

Post by Antonio Linares »

Osvaldo,

En la versión de Harbour usada por FWPPC no está la librería hbcurl asi que vamos a averiguar si podemos construirla

Te mantengo informado de los avances
regards, saludos

Antonio Linares
www.fivetechsoft.com
ramirezosvaldo2
Posts: 59
Joined: Mon Jan 19, 2009 4:40 pm

Re: CURL

Post by ramirezosvaldo2 »

Gracias de antemano

Saludos
Osvaldo Ramirez
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: CURL

Post by Antonio Linares »

Osvaldo,

De esta forma se puede compilar directamente c:\harbour\contrib\hbcurl\core.c

go.bat

Code: Select all | Expand

call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_arm
cl -c -Ic:\curl\include -Ic:\harbour\include core.c

Puedes intentar enlazar el core.obj resultante y ver que te dice el enlazador

La forma de construir Harbour para x86_arm sería asi:

Code: Select all | Expand

call "%ProgramFiles(x86)%\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x86_arm

set HB_COMPILER=msvcarm
set HB_USER_CFLAGS=/D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE
set HB_BUILD_CONTRIBS
set HB_WITH_OPENSSL=c:\OpenSSL\include
set HB_WITH_CURL=c:\curl\include
set HB_OPENSSL_STATIC=yes      
set HB_STATIC_OPENSSL=yes  
set HB_STATIC_CURL=yes
set HB_BUILD_DYN=no
set HB_BUILD_CONTRIB_DYN=no
set oldinclude=%INCLUDE%
set oldlib=%LIB%
set INCLUDE="c:\Windows Mobile 5.0 Pocket PC SDK\Include\ARMV4I\";%INCLUDE%
set LIB="
c:\Windows Mobile 5.0 Pocket PC SDK\Lib\ARMV4I";%LIB%

win-make > build.log

set INCLUDE=%oldinclude%
set LIB=%oldlib%
set oldinclude="
"
set oldlib="
"

notepad build.log

Previamente tienes que descargar este fichero:
https://bitbucket.org/fivetech/fwppc/downloads/Windows%20Mobile%205.0%20Pocket%20PC%20SDK.zip
y descomprimirlo en: c:\Windows Mobile 5.0 Pocket PC SDK

No es algo simple, por eso he optado por compilar core.c directamente y hay que probarlo

En la distribuciones binarias de Harbour para CE no parece estar incluida hbcurl.lib. Si la encontrasemos, nos evitamos todo esto :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
ramirezosvaldo2
Posts: 59
Joined: Mon Jan 19, 2009 4:40 pm

Re: CURL

Post by ramirezosvaldo2 »

Antonio, muchas gracias,

Intentare para ver como funciona.
Saludos
User avatar
goosfancito
Posts: 1955
Joined: Fri Oct 07, 2005 7:08 pm

Re: CURL

Post by goosfancito »

de donde puedo bajar :

Code: Select all | Expand

  #include "c:\harbour\contrib\hbcurl\hbcurl.ch"
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
User avatar
Antonio Linares
Site Admin
Posts: 42513
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 73 times
Contact:

Re: CURL

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply