HMG 64 bits

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: HMG 64 bits

Post 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
vlademiro
Posts: 36
Joined: Mon Jun 01, 2020 4:17 am
DBs Used: DBF

Re: HMG 64 bits

Post 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.
User avatar
dragancesu
Posts: 921
Joined: Mon Jun 24, 2013 11:53 am
DBs Used: DBF, MySQL, Oracle
Location: Subotica, Serbia

Re: HMG 64 bits

Post 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
User avatar
mustafa
Posts: 1158
Joined: Fri Mar 20, 2009 11:38 am
DBs Used: DBF
Location: Alicante - Spain
Contact:

Re: HMG 64 bits

Post 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
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: HMG 64 bits

Post 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 2967 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
srvet_claudio
Posts: 2193
Joined: Thu Feb 25, 2010 8:43 pm
Location: Uruguay
Contact:

Re: HMG 64 bits

Post 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
Best regards.
Dr. Claudio Soto
(from Uruguay)
http://srvet.blogspot.com
User avatar
apais
Posts: 440
Joined: Fri Aug 01, 2008 6:03 pm
DBs Used: DBF
Location: uruguay
Contact:

Re: HMG 64 bits

Post 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
Angel Pais
Web Apps consultant/architect/developer.
User avatar
salamandra
Posts: 311
Joined: Thu Jul 31, 2008 8:33 pm
DBs Used: DBF, MySQL, SQL
Location: Brazil

Re: HMG 64 bits

Post 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
There is one time in which is crucial awakening. That time is now. ( Buddha )
User avatar
AUGE_OHR
Posts: 2062
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany

Re: HMG 64 bits

Post 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 176 times
i´m not a "C" Programmer ...
have fun
Jimmy
User avatar
serge_girard
Posts: 3166
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Contact:

Re: HMG 64 bits

Post by serge_girard »

This is why I stick with 32bits...
There's nothing you can do that can't be done...
Post Reply