Atualizações no harbour de 20.04.23 a 21.04.2023

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

lucimauro
Usuário Nível 3
Usuário Nível 3
Mensagens: 465
Registrado em: 21 Set 2004 21:02
Localização: Sobral-CE

Atualizações no harbour de 20.04.23 a 21.04.2023

Mensagem por lucimauro »

Ola;

Código: Selecionar todos

2023-04-21 13:01 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/tbrowse.prg
! disabled HB_CLS_NOTOBJECT in TBrowse class definition

best regards
Przemek 

Código: Selecionar todos

Przemyslaw Czerpak
06:46 (há 9 horas) 
para harbou...@googlegroups.com
2023-04-21 11:45 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* include/harbour.hbx
* src/harbour.def
* src/rtl/vfile.c
+ added new PRG function:
hb_vfIsLocal( <cFileName> ) --> <lLocalFileSystem>
It returns TRUE if <cFileName> is not redirected to any Harbour File IO
driver but access local file system API.

* contrib/xhb/traceprg.prg
* merged with Victor's branch so now Harbour File IO API is used to
access log file.
* convert relative log file name to absolute file path name
% write whole log entry in single IO operation.

best regards
Przemek 

Código: Selecionar todos

* contrib/xhb/hbcompat.ch
! fixed translations of xHarbour operators inside brackets,
thanks to Ron.

* contrib/xhb/xhb.hbx
* contrib/xhb/xcstr.prg
+ added support for timestamp translations
! fixed few wrong translations
! fixed serialization of hash items with cyclic references
in ValToPrg()
% optimized cyclic references detection in ValToPrg()
! generate dummy code which cannot be compiled for codeblocks serialized
by ValToPrg()

* contrib/xhb/xhb.ch
+ added SET TRACE ... command, thanks to Ron.

* contrib/xhb/xhberror.c
* do not show __ERRRT_BASE() and __ERRRT_SBASE() in error call stack.

* src/vm/classes.c
! added protection against possible GPF when manually created serialized object
data with super class symbols longer then HB_SYMBOL_NAME_LEN is deserialized

best regards
Przemek 

Código: Selecionar todos

* contrib/gtqtc/gtqtc1.cpp
% minor optimization in HB_GTI_PALETTE

* src/rtl/checkbox.prg
* src/rtl/listbox.prg
* src/rtl/pushbtn.prg
* src/rtl/radiobtn.prg
* src/rtl/radiogrp.prg
* src/rtl/scrollbr.prg
* src/rtl/tbcolumn.prg
* src/rtl/tbrowse.prg
* src/rtl/teditor.prg
* src/rtl/tget.prg
* src/rtl/tgetlist.prg
* src/rtl/tlabel.prg
* src/rtl/tmenuitm.prg
* src/rtl/tmenusys.prg
* src/rtl/tpopup.prg
* src/rtl/treport.prg
* src/rtl/tsymbol.prg
* src/rtl/ttextlin.prg
* src/rtl/ttopbar.prg
! use :Init() method instead of :New() to initialize object instance
variables. In Class(y) :New() is class message not object one.

best regards
Przemek 
Avatar do usuário
carlaoonline
Usuário Nível 3
Usuário Nível 3
Mensagens: 190
Registrado em: 24 Ago 2014 22:38
Localização: Porto Alegre-RS

Atualizações no harbour de 20.04.23 a 21.04.2023

Mensagem por carlaoonline »

Boa tarde!

Alguém pode me dar uma luz!

Não consigo gerar no meu Windows 10-64bits os binários do Harbour 3.2 a partir dos fontes baixados no Git.

Gera esse tela de erro:
C:\core-master>win-make
! Building Harbour 3.2.0dev from source - https://harbour.github.io
! MAKE: win-make 4.1 sh.exe
! HB_HOST_PLAT: win (x86_64) HB_SHELL: nt
! LD_LIBRARY_PATH: C:/core-master/lib/win64/bcc:
! HB_PLATFORM: win64 (x86_64)
! HB_COMPILER: bcc
config/global.mk:1533: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
! Component: 'zlib' found in C:/core-master/src/3rd/zlib (local)
! Component: 'pcre' found in C:/core-master/src/3rd/pcre (local)
! Component: 'gpm' not supported on win64 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 win64 platform
config/global.mk:2062: config/win64/global.mk: No such file or directory
win-make: *** No rule to make target 'config/win64/global.mk'. Stop.

C:\core-master>
Não lembro de precisar dessas bibliotecas ou de ter que configurar essas variáveis de ambiente (HB_WITH_SLANG, HB_WITH_CURSES...) nas vezes passadas.



Meu Bcc5.8 está no path e funcionando, inclusive consigo gerar um executável em C do código de teste abaixo, então não seria o compilador.

Código: Selecionar todos

#include <stdio.h>
int main() {
    printf("Hello, World!\n");
    return 0;
}

Tentei Win-make Install e Win-make Install c:\Harbour32 e tb não vinga.

Coloquei o SET HB_PLATAFORM=win64 pois ele estava detectando x86 (e tb acusava o mesmo erro)


Também tentei com o MingW 7.3 e não foi...
C:\core-master>win-make
! Building Harbour 3.2.0dev from source - https://harbour.github.io
! MAKE: win-make 4.1 sh.exe
! HB_INSTALL_PREFIX: C:\hmg.3.5\HARBOUR
! HB_HOST_PLAT: win (x86_64) HB_SHELL: nt
! LD_LIBRARY_PATH: C:/core-master/lib/win64/mingw:
! HB_PLATFORM: win64 (x86_64)
! HB_COMPILER: mingw
! HB_HOST_BIN not specified. Automatically set to: C:/hmg.3.5/HARBOUR/bin/
! Component: 'zlib' found in C:/core-master/src/3rd/zlib (local)
! Component: 'pcre' found in C:/core-master/src/3rd/pcre (local)
! Component: 'gpm' not supported on win64 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 win64 platform
config/global.mk:2062: config/win64/global.mk: No such file or directory
win-make: *** No rule to make target 'config/win64/global.mk'. Stop.

C:\core-master>
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Atualizações no harbour de 20.04.23 a 21.04.2023

Mensagem por Itamar M. Lins Jr. »

Olá!
HB_PLATFORM: win64 (x86_64)
Tá errado isso ai!
Que plataforma é essa ? win64 nunca vi.
O erro é facil de ver. Tá ai na sua frente. linha 2062 do arquivo /config/global.mk

Código: Selecionar todos

include $(TOP)$(ROOT)config/$(HB_PLATFORM)/global.mk
Como não existe esse diretório (win64) dá erro.

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7928
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Atualizações no harbour de 20.04.23 a 21.04.2023

Mensagem por Itamar M. Lins Jr. »

Olá!
As plataformas são essas:
https://github.com/harbour/core#you-can ... orm-values
Eu não mexo nesse parâmetro, o próprio wim-make detecta.
Lógico que no Windows o mingw ou mingw64 está no PATH, no Linux nem precisa.
digite gcc -v para ver se ele está no PATH.
O que não pode é colocar BCC, MINGW, MINGW64 todos no PATH. Coloque apenas 1

Saudações,
Itamar M. Lins Jr.
Saudações,
Itamar M. Lins Jr.
Kapiaba
Colaborador
Colaborador
Mensagens: 1908
Registrado em: 07 Dez 2012 16:14
Localização: São Paulo
Contato:

Atualizações no harbour de 20.04.23 a 21.04.2023

Mensagem por Kapiaba »

Olá, você não baixou um Harbour de 64 bits por engano?

https://groups.google.com/g/harbour-users/c/RNa_bLCichc

Regards, saludos.
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Atualizações no harbour de 20.04.23 a 21.04.2023

Mensagem por JoséQuintas »

Básico: harbour detecta automático do PATH, só precisa configurar se por acaso o automático falhar, ou se tiver instalado mais de uma opção ao mesmo tempo. ( bcc + mingw por exemplo )
set hb

HB_BUILD_CONTRIB_DYN=no
HB_BUILD_DYN=no
HB_BUILD_SHARED=no
HB_BUILD_STRIP=all
HB_COMPILER=mingw
HB_INSTALL_PREFIX=d:\harbour
HB_LANG=EN
Além disso, o path dos EXEs. pasta bin do harbour, pasta bin do compilador c (ou compiladores).
Pode até deixar borland C e mingw 7.3 na máquina, e gerar os dois, se quiser.

HB_COMPILER é o "manda chuva" e é o usado pra geração.

Se quiser gerar os dois, sete HB_COMPILER e gere, depois altere e gere.

No uso, deixa HB_COMPILER com o mais usado e pode adicionar a opção -comp=bcc ou -comp=mingw quando quiser o outro.

NÃO SERVE mingw 32+64 bits juntos, tem que ser mingw só 32 bits
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Atualizações no harbour de 20.04.23 a 21.04.2023

Mensagem por JoséQuintas »

Isso não inclui os opcionais

libcurl
ssl
mysql

Nem me pergunte, porque não uso opcionais.
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Avatar do usuário
JoséQuintas
Administrador
Administrador
Mensagens: 20267
Registrado em: 26 Fev 2007 11:59
Localização: São Paulo-SP

Atualizações no harbour de 20.04.23 a 21.04.2023

Mensagem por JoséQuintas »

! HB_INSTALL_PREFIX: C:\hmg.3.5\HARBOUR
! HB_HOST_BIN not specified. Automatically set to: C:/hmg.3.5/HARBOUR/bin/
Sinceramente....
vai gerar um harbour limpo, mas já sujando, misturando no meio de outra coisa....
Gera limpo em \harbour, e depois dá uma geral nessa pasta c:\hmg.3.5 se não ficaram restos mortais de outra versão
E cuidado, que tem lib que mistura tudo, e coloca coisas nas pastas do harbour
José M. C. Quintas
Harbour 3.2, mingw, gtwvg mt, fivewin 25.04, multithread, dbfcdx, MySQL, ADOClass, PDFClass, SefazClass, (hwgui mt), (hmg3), (hmg extended), (oohg), PNotepad, ASP, stored procedure, stored function, Linux (Flagship/harbour 3.2)
"The world is full of kings and queens, who blind our eyes and steal our dreams Its Heaven and Hell"

https://github.com/JoseQuintas/
Responder