Page 2 of 3

Re: HMG 64 bits

Posted: Mon Jul 06, 2020 3:52 am
by salamandra
:) Olá Vlademiro, tudo bem?
vlademiro wrote: Mon Jul 06, 2020 2:41 am Já tentou compilar usando hbmk2 na linha de comando ?

Meu projeto é pequeno, e é de 32bits, mas eu compilo ele usando hbmk2

Assim :
hbmk2 main main.hbc hmg32.hbc -IC:\hmg.3.4.4\include -LC:\hmg.3.4.4\lib

Sobre o hmg32.hbc
(1) Copiei ele da pasta C:\hmg.3.4.4 e apaguei a linha que tem o obj temp.o
(2) No seu caso deve ter um hbc específico para 64 bits

***** ENGLISH by Google
Have you tried to compile using hbmk2?

My project is small, and it's 32bits, but I compile it using hbmk2

Like this :
hbmk2 main main.hbc hmg32.hbc -IC: \ hmg.3.4.4 \ include -LC: \ hmg.3.4.4 \ lib

About hmg32.hbc
(1) I copied it from the folder C: \ hmg.3.4.4 and deleted the line that has the obj temp.o
(2) In your case, you must have a specific 64-bit hbc
Obrigado pela ajuda!!.
Já consegui resolver o problema do erro de compilação (causado por 2 ou 3 PRGs ausentes no arquivo HBP) e agora já compila okay tanto com a IDE quanto com o Hbmk2 na linha de comando, com um BAT.
Preciso verificar se não vou ter quaisquer problemas no ambiente de produção.
E, a propósito, me deu a impressão de que a compilação incremental da IDE não funciona como deveria. Resetando ou não os dados incrementais do projeto o tempo que a IDE demora para compila-lo é exatamente o mesmo. Para projetos pequenos isso não é importante, mas para projetos grandes é. Mais alguém já notou isso??

Mais uma vez, muito obrigado !


** English **
Thank you for your help!!.
I have already solved the compilation error (caused by 2 or 3 PRGs missing from the HBP file) and now compile okay with both IDE and Hbmk2 on the command line, with a BAT.
I need to check that I am not going to have any problems in the production environment.
And, by the way, it gave me the impression that the incremental compilation of HMG IDE does not work properly. Whether or not the incremental project data is reset, the time it takes for the IDE to compile is exactly the same. For small projects this is not important, but for large projects it is. Has anyone else noticed this ??


Best regards,



Salamandra, Brazil

Re: HMG 64 bits

Posted: Mon Jul 06, 2020 9:29 am
by vlademiro
Sim, meu projeto é pequeno mas o tempo de compilação é o mesmo quando uso -inc.

Que bom que resolveu, agora é seguir em frente.

Re: HMG 64 bits

Posted: Mon Jul 06, 2020 10:42 am
by dragancesu
I tried a few examples and it worked

The problem may be some components that don't work well in the 64-bit version, ODBC for example, there have been posts that there are problems with 64-bit programs that need to work with MySQL

I think there is no problem when working with DBF

Re: HMG 64 bits

Posted: Mon Jul 06, 2020 11:36 am
by mustafa
Hi jairpinho
jairpinho wrote:

hello Mustafa managed to use mysql and sqlite
View ==>> http://www.hmgforum.com/viewtopic.php?f ... e&start=10

Hello compile HMG64 SQLite doing a little
demo without problem
The sample is prepared for 32 and 64 bits

build.3.4.4.bat
build.3.4.4_64.bat

Regards
Mustafa

Re: HMG 64 bits

Posted: Tue Jul 07, 2020 2:11 am
by salamandra
Hi @dragancesu,
dragancesu wrote: Mon Jul 06, 2020 10:42 am I tried a few examples and it worked

The problem may be some components that don't work well in the 64-bit version, ODBC for example, there have been posts that there are problems with 64-bit programs that need to work with MySQL

I think there is no problem when working with DBF
Yes, there really seems to be a problem with the 64-bit version of HMG to make it work with MSSQL. When trying to connect to the server it shows an error message like the one below

Capturar.JPG
Capturar.JPG (172.26 KiB) Viewed 3201 times

The version compiled in 32 bits already works without any problems. And YES, dbinfo.ch it´s included in the program header.
(I don't know if the same thing happens with MySQL, MariaDB or Access MDB tables)

Any ideas on how to solve this problem are welcome. :D :D :D :D


Best regards,

Salamandra, Brazil

Re: HMG 64 bits

Posted: Tue Jul 07, 2020 5:08 pm
by srvet_claudio
Hi,
when I create the 64 bit lib just compile the hmg code. I do not compile any third party 64 bit library. I think the 64-bit version of those libraries must be missing

Re: HMG 64 bits

Posted: Tue Jul 07, 2020 9:47 pm
by apais
Could we have all HMG sources in github with actions enabled?
This way we could contribute improvements and have allways the last binaries.

Just a tought
Angel

Re: HMG 64 bits

Posted: Tue Jul 07, 2020 11:09 pm
by salamandra
Hi Dr Claudio,
srvet_claudio wrote: Tue Jul 07, 2020 5:08 pm Hi,
when I create the 64 bit lib just compile the hmg code. I do not compile any third party 64 bit library. I think the 64-bit version of those libraries must be missing
Then maybe possible that problem be related to 3rd party libraries. I´ll verify.
Thank you very much for your help.


Best regards,


Salamandra, Brazil

Re: HMG 64 bits

Posted: Tue Jul 07, 2020 11:22 pm
by AUGE_OHR
hi,

i have install HMG "fresh" and extract Harbour-64 and MinGW-64
i add Path

Code: Select all

  c:\hmg.3.4.4\HARBOUR-64\bin\
i add LIB

Code: Select all

  c:\hmg.3.4.4\HARBOUR-64\lib\;c:\hmg.3.4.4\LIB-64\
i add include

Code: Select all

  c:\hmg.3.4.4\HARBOUR-64\include\;c:\hmg.3.4.4\INCLUDE\
after reboot i build 64 Bit LIB ( Unicode )

Code: Select all

  c:\hmg.3.4.4\_BuildAllLib64.bat
this all work fine but now Problem begin with 3-PP Source
C:\hmg.3.4.4\0\XLSX\hblibxlsxwriter.prg: In function 'HB_FUN_LXW_GET_Y_AXYS':
C:\hmg.3.4.4\0\XLSX\hblibxlsxwriter.prg:4903:23: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
lxw_chart *chart = (lxw_chart*) hb_parni(1);
^
so my HB_FUNC are not 64 Bit ready ... how to fix it :idea:
Howbuild64.zip
(2.39 KiB) Downloaded 183 times
i´m not a "C" Programmer ...

Re: HMG 64 bits

Posted: Wed Jul 08, 2020 7:47 am
by serge_girard
This is why I stick with 32bits...