Crear librerias de Harbour BCC74 Me genera error

Crear librerias de Harbour BCC74 Me genera error

Postby ruben Dario » Sat Nov 25, 2023 4:44 pm

Saludos al forum

He tratado de contruir las librerias de Harbour con BCC76 64 bits me genera error

Este el es .bar que uso
Code: Select all  Expand view  RUN

set bcc=K:\C_BCC\BCC76_64
set path=%bcc%\bin

set HB_COMPILER=bcc64
set HB_PLATFORM=win

set HB_BUILD_MODE=c

SET HB_INSTALL_PREFIX=%cd%\harbour32

rem set HB_USER_PRGFLAGS=-l-

rem set HB_USER_CFLAGS=-I%bcc%\INCLUDE\windows\crtl -I%bcc%\INCLUDE\windows\sdk -Lc:%bcc%\LIB
rem set HB_BUILD_WARN=yes
rem set HB_USER_LDFLAGS=-Lc:%bcc%\LIB;%bcc%\LIB\psdk
rem set HB_USER_RESFLAGS=-Ic:%bcc%\INCLUDE\windows\sdk

SET HB_USER_CFLAGS=-w-spa -w-sus
SET HB_USER_LDFLAGS=-ap

rem set HB_BUILD_CONTRIBS
rem set HB_HAS_PCRE=no

rem set HB_BUILD_DEBUG=yes
rem set HB_TR_LEVEL=debug
rem set HB_USER_CFLAGS=-DHB_TR_LEVEL_DEBUG

rem set HB_WITH_OPENSSL=c:\OpenSSL\include
rem set HB_WITH_CURL=c:\curl-8.4.0\include
rem set HB_OPENSSL_STATIC=yes      
rem set HB_STATIC_OPENSSL=yes  
rem set HB_STATIC_CURL=yes
rem set HB_WITH_LIBHARU

set HB_BUILD_DYN=no
set HB_BUILD_CONTRIB_DYN=no

win-make clean install
 


Este es el Error

Code: Select all  Expand view  RUN

! Building Harbour 3.2.0dev from source - https://harbour.github.io
! MAKE: win-make 4.1 sh.exe clean install  
! HB_USER_CFLAGS: -w-spa -w-sus
! HB_USER_LDFLAGS: -ap
! HB_INSTALL_PREFIX: C:\Harbour\harbour32
! HB_BUILD_DYN: no
! HB_BUILD_CONTRIB_DYN: no
! HB_BUILD_SHARED: no
! HB_BUILD_MODE: c
! HB_HOST_PLAT: win (x86_64)  HB_SHELL: nt
! HB_PLATFORM: win (x86)
! HB_COMPILER: bcc64
! Component: 'zlib' found in C:/Harbour/src/3rd/zlib (local)
! Component: 'pcre' found in C:/Harbour/src/3rd/pcre (local)
! Component: 'gpm' not supported on win platform
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.
! Component: 'wattcp/watt-32' not supported on win platform
! 'hbdossrl' library skipped (platform or compiler not supported)
! 'gtcrs' library skipped (component not found)
! 'gtdos' library skipped (platform not supported)
! 'gtos2' library skipped (platform not supported)
! 'gtsln' library skipped (component not found)
! 'gttrm' library skipped (platform or compiler not supported)
! 'gtxwc' library skipped (component not found)
! Warning: hbmk2 not found, contrib/make.hb skipped.
! Warning: hbmk2 not found, config/postinst.hb skipped.
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        ....
        ....
! 'hbdossrl' library skipped (platform or compiler not supported)
bcc64.exe   -I. -I../../../../../../include -q -tWM -CP437 -w-sig- -w-aus- -w-ccc- -w-csu- -w-par- -w-rch- -w-ucp- -w-use- -w-prc- -w-pia- -d -O2 -OS -Ov -Oc  -DUNICODE -IC:/Harbour/src/3rd/zlib -DPNG_NO_STDIO -DPNG_ARM_NEON_OPT=0 -w-spa -w-sus -opng.o  -c ../../../png.c
../../../../../../config/rules.mk:88: recipe for target 'png.o' failed
../../../config/lib.mk:68: recipe for target 'descend' failed
../../config/dir.mk:68: recipe for target 'png.inst' failed
../config/dir.mk:68: recipe for target '3rd.inst' failed
config/dir.mk:68: recipe for target 'src.inst' failed
 
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1070
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby Enrico Maria Giordano » Sat Nov 25, 2023 10:46 pm

Try with this (change the paths!):

Code: Select all  Expand view  RUN
@ ECHO OFF

CALL bcc64 /paths

SET HB_COMPILER=bcc64

SET PATH=%BCC%\bin
SET HB_INSTALL_PREFIX=%cd%\harbour

SET HB_USER_LDFLAGS=-ap -j%BCC%\lib;%BCC%\lib\psdk
SET HB_USER_RESFLAGS=-i%BCC%\include\windows\sdk

SET HB_WITH_CURL=e:\hrbbld\curl-win64\include
SET HB_STATIC_CURL=yes

SET HB_WITH_OPENSSL=e:\hrbbld\openssl\x64\include

SET HB_BUILD_DYN=no
SET HB_BUILD_CONTRIB_DYN=no

win-make clean install HB_USER_CFLAGS="-w --jobs=0 -output-dir."

PAUSE
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby ruben Dario » Sun Nov 26, 2023 12:39 am

gracias Enrico
Tu tienes estos 2 archivos que me faltan.

\hrbbld\curl-win64
\hrbbld\openssl\x64

xq baje los siguientes
curl-8.4.0_6-win64-mingw.zip
Win64OpenSSL-3_1_4.exe

y me da este errror

Code: Select all  Expand view  RUN

! Building Harbour 3.2.0dev from source - https://harbour.github.io
! MAKE: win-make 4.1 sh.exe clean
! HB_USER_CFLAGS: -w
! HB_USER_LDFLAGS: -ap -jK:\C_BCC\BCC76_64\lib;K:\C_BCC\BCC76_64\lib\psdk
! HB_INSTALL_PREFIX: C:\Harbour\harbour32
! HB_BUILD_DYN: no
! HB_BUILD_CONTRIB_DYN: no
! HB_BUILD_SHARED: no
! HB_HOST_PLAT: win (x86_64)  HB_SHELL: nt
! HB_PLATFORM: win (x86) (auto-detected)
! HB_COMPILER: bcc64
! Component: 'zlib' found in C:/Harbour/src/3rd/zlib (local)
! Component: 'pcre' found in C:/Harbour/src/3rd/pcre (local)
! Component: 'gpm' not supported on win platform
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.
! Component: 'wattcp/watt-32' not supported on win platform
! 'hbdossrl' library skipped (platform or compiler not supported)
! 'gtcrs' library skipped (component not found)
! 'gtdos' library skipped (platform not supported)
! 'gtos2' library skipped (platform not supported)
! 'gtsln' library skipped (component not found)
! 'gttrm' library skipped (platform or compiler not supported)
! 'gtxwc' library skipped (component not found)
! Warning: hbmk2 not found, contrib/make.hb skipped.
! Warning: hbmk2 not found, config/postinst.hb skipped.
! Building Harbour 3.2.0dev from source - https://harbour.github.io
! MAKE: win-make 4.1 sh.exe clean install
! HB_USER_CFLAGS: -w --jobs=0 -output-dir.
! HB_USER_LDFLAGS: -ap -jK:\C_BCC\BCC76_64\lib;K:\C_BCC\BCC76_64\lib\psdk
! HB_INSTALL_PREFIX: C:\Harbour\harbour32
! HB_BUILD_DYN: no
! HB_BUILD_CONTRIB_DYN: no
! HB_BUILD_SHARED: no
! HB_HOST_PLAT: win (x86_64)  HB_SHELL: nt
! HB_PLATFORM: win (x86) (auto-detected)
! HB_COMPILER: bcc64
! Component: 'zlib' found in C:/Harbour/src/3rd/zlib (local)
! Component: 'pcre' found in C:/Harbour/src/3rd/pcre (local)
! Component: 'gpm' not supported on win platform
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.
! Component: 'wattcp/watt-32' not supported on win platform
! 'hbdossrl' library skipped (platform or compiler not supported)
! 'gtcrs' library skipped (component not found)
! 'gtdos' library skipped (platform not supported)
! 'gtos2' library skipped (platform not supported)
! 'gtsln' library skipped (component not found)
! 'gttrm' library skipped (platform or compiler not supported)
! 'gtxwc' library skipped (component not found)
! Warning: hbmk2 not found, contrib/make.hb skipped.
! Warning: hbmk2 not found, config/postinst.hb skipped.
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        1 archivo(s) copiado(s).
        ...
        ....
! 'hbdossrl' library skipped (platform or compiler not supported)
bcc64.exe   -I. -I../../../../../../include -q -tWM -CP437 -w-sig- -w-aus- -w-ccc- -w-csu- -w-par- -w-rch- -w-ucp- -w-use- -w-prc- -w-pia- -d -O2 -OS -Ov -Oc  -DUNICODE -IC:/Harbour/src/3rd/zlib -DPNG_NO_STDIO -DPNG_ARM_NEON_OPT=0 -w --jobs=0 -output-dir. -opng.o  -c ../../../png.c
bcc64.exe: error: unknown argument: '-CP437'
bcc64.exe: error: unknown argument: '-w-sig-'
bcc64.exe: error: unknown argument: '-w-aus-'
bcc64.exe: error: unknown argument: '-w-ccc-'
bcc64.exe: error: unknown argument: '-w-csu-'
bcc64.exe: error: unknown argument: '-w-par-'
bcc64.exe: error: unknown argument: '-w-rch-'
bcc64.exe: error: unknown argument: '-w-ucp-'
bcc64.exe: error: unknown argument: '-w-use-'
bcc64.exe: error: unknown argument: '-w-prc-'
bcc64.exe: error: unknown argument: '-w-pia-'
../../../../../../config/rules.mk:88: recipe for target 'png.o' failed
win-make[4]: *** [png.o] Error 1
../../../config/lib.mk:68: recipe for target 'descend' failed
win-make[3]: *** [descend] Error 2
../../config/dir.mk:68: recipe for target 'png.inst' failed
win-make[2]: *** [png.inst] Error 2
../config/dir.mk:68: recipe for target '3rd.inst' failed
win-make[1]: *** [3rd.inst] Error 2
config/dir.mk:68: recipe for target 'src.inst' failed
win-make: *** [src.inst] Error 2
Presione una tecla para continuar . . .
 
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1070
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby Enrico Maria Giordano » Sun Nov 26, 2023 8:31 am

ruben Dario wrote:
Code: Select all  Expand view  RUN
bcc64.exe: error: unknown argument: '-CP437'
bcc64.exe: error: unknown argument: '-w-sig-'
bcc64.exe: error: unknown argument: '-w-aus-'
bcc64.exe: error: unknown argument: '-w-ccc-'
bcc64.exe: error: unknown argument: '-w-csu-'
bcc64.exe: error: unknown argument: '-w-par-'
bcc64.exe: error: unknown argument: '-w-rch-'
bcc64.exe: error: unknown argument: '-w-ucp-'
bcc64.exe: error: unknown argument: '-w-use-'
bcc64.exe: error: unknown argument: '-w-prc-'
bcc64.exe: error: unknown argument: '-w-pia-'


The problem is not in openssl or curl, is in Harbour itself, specifically in bcc.mk and hbmk2.prg. I made a PRG that fixes all the problems that prevent Harbour to build with BCC64. If you want it please send me an email.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby ruben Dario » Mon Nov 27, 2023 8:36 pm

Saludos,
Recibi tu correo pero no fue posible descargar el archivo que me enviaste el HRBFIX.PRG.

veo que para 32 bits pasa lo mismos si coloco esto
SET HB_WITH_CURL=c:\curl32\include
SET HB_STATIC_CURL=yes
SET HB_WITH_OPENSSL=c:\OpenSSL-Win32\include
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1070
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby Enrico Maria Giordano » Mon Nov 27, 2023 11:05 pm

ruben Dario wrote:Saludos,
Recibi tu correo pero no fue posible descargar el archivo que me enviaste el HRBFIX.PRG.


Please disable your antivirus before saving the attachment.

ruben Dario wrote:veo que para 32 bits pasa lo mismos si coloco esto
SET HB_WITH_CURL=c:\curl32\include
SET HB_STATIC_CURL=yes
SET HB_WITH_OPENSSL=c:\OpenSSL-Win32\include


I don't understand.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby ruben Dario » Tue Nov 28, 2023 12:25 am

Si claro eso hice.
Pero aparece el archivo pero no tiene activo el link para hacer la descarga.

Yes, of course, that's what I did.
But the file appears but does not have the link to download it active
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1070
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby Enrico Maria Giordano » Tue Nov 28, 2023 8:33 am

I just sent you a new email message with the ZIPped source code. Try it and let me know.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby ruben Dario » Tue Nov 28, 2023 10:17 pm

Gracias Enrico
funciono.
Lo unico inconveniente corregi varios archivos de src\codepage y src\codepage ya que cuando corri en proceso parece que le coloco un caracter raro y generaba error al compilar

Thanks Enrico
I worked.
only problem I fixed several files of src\codepage and src\codepage since when I ran in process it seems that I put a rare character and generated error when compiling
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1070
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby Enrico Maria Giordano » Tue Nov 28, 2023 10:39 pm

My program fixes all the codepage problems too.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby ruben Dario » Wed Nov 29, 2023 2:11 am

Saludos

Este es el error que da en varios
In file included from ../../../cpbg866.c:51:
../../../l_bg.h:5:1: error: expected identifier or '('
<U+001A>

hrbfix (Esto lo hace cuando lo corro)

como creates el ejeutable hrbfix , uso el hbmk2

As you create the Ejeutable HRBFIX, I use the HBMK2
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1070
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby Enrico Maria Giordano » Wed Nov 29, 2023 9:48 am

You can't use hbmk2 as it is one of the source code that HRBFIX fixes. Do you want the HRBFIX.EXE? Or better, why don't you use the official and fully working distribution?

http://xharbour.org/index.asp?page=download/windows/binaries_win
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Crear librerias de Harbour BCC74 Me genera error

Postby ruben Dario » Wed Nov 29, 2023 12:13 pm

Saludos
el HRBFIX.PRG qu me envio lo compile sin hbmk2.

Me gustaria que me enviaras el HRBFIX.EXE Para verificar si pasa lo mismo

the HRBFIX. PRG that sent me I compiled it without hbmk2.

I would like you to send me the HRBFIX.EXE to check if the same thing happens
Ruben Dario Gonzalez
Cali-Colombia
rubendariogd@hotmail.com - rubendariogd@gmail.com
User avatar
ruben Dario
 
Posts: 1070
Joined: Thu Sep 27, 2007 3:47 pm
Location: Colombia


Re: Crear librerias de Harbour BCC74 Me genera error

Postby Enrico Maria Giordano » Wed Nov 29, 2023 3:38 pm

You have to put HRBFIX.EXE in the same folder where win-make.exe is and run HRBFIX.EXE. Then build Harbour.
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Next

Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 51 guests