FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Pocket PC CURL
Posts: 82
Joined: Mon Jan 19, 2009 04:40 PM
CURL
Posted: Mon Apr 26, 2021 06:53 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: CURL
Posted: Tue Apr 27, 2021 10:13 AM

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
Posts: 82
Joined: Mon Jan 19, 2009 04:40 PM
Re: CURL
Posted: Tue Apr 27, 2021 03:58 PM

Gracias de antemano

Saludos
Osvaldo Ramirez

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: CURL
Posted: Wed Apr 28, 2021 09:42 AM
Osvaldo,

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

go.bat
Code (fw): Select all Collapse
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 (fw): Select all Collapse
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
Posts: 82
Joined: Mon Jan 19, 2009 04:40 PM
Re: CURL
Posted: Thu Apr 29, 2021 11:06 PM

Antonio, muchas gracias,

Intentare para ver como funciona.
Saludos

Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: CURL
Posted: Fri Apr 30, 2021 08:30 AM
de donde puedo bajar :
Code (fw): Select all Collapse
   #include "c:\harbour\contrib\hbcurl\hbcurl.ch"
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: CURL
Posted: Fri Apr 30, 2021 09:25 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion