Page 2 of 2

Re: HMG 3.0 (Test I)

Posted: Sun Oct 11, 2009 3:09 pm
by Roberto Lopez
Hi All,

I've found problems in 'compile.bat' when you try to use parameters different than -c or -d.

I'm working on it to post a patch.

Regards,

Roberto.

Re: HMG 3.0 (Test I)

Posted: Sun Oct 11, 2009 3:16 pm
by sudip
Hello Master Roberto,
I am not sure where I did mistake, but I got compilation error.
CompileErr.jpg
CompileErr.jpg (84.4 KiB) Viewed 6854 times
IDE is also not working (compilation). May be you will correct it later. And I only want to inform you about my test.

With best regards.
Sudip

Re: HMG 3.0 (Test I)

Posted: Sun Oct 11, 2009 3:33 pm
by Rathinagiri
I had compiled the main.demo successfully using the compile.bat provided.

Re: HMG 3.0 (Test I)

Posted: Sun Oct 11, 2009 3:49 pm
by sudip
Rathi, I guess I have done some mistakes :(
I uninstalled version 2.9.5. Deleted C:\HMG folder. Then installed HMG 3.0.0.
Then I restarted computer. Went to command prompt. CD C:\Samples\Main.Demo folder. Then typed COMPILE DEMO.
There must be something which I missed ;)

Please help me if you find any mistake in my steps.
Thanks in advance.
With best regards.
Sudip

Re: HMG 3.0 (Test I)

Posted: Sun Oct 11, 2009 4:30 pm
by Roberto Lopez
sudip wrote: IDE is also not working (compilation). May be you will correct it later. And I only want to inform you about my test.
I've included in changelog, a note indicating incompatibility with IDE:
- Updated: Harbour compiler to 2.0 Beta 3 (HMG IDE 2.9.4 and earlier
versions ARE NOT COMPATIBLE with this HMG version).
Maindemo should work fine.

Please note that compile.bat syntax has changed. Please, read the changelog.

Anyway, please, wait until I post the patch.

Regards,

Roberto.

Re: HMG 3.0 (Test I)

Posted: Sun Oct 11, 2009 4:52 pm
by sudip
Thank you Master :)

Re: HMG 3.0 (Test I)

Posted: Sun Oct 11, 2009 7:09 pm
by gfilatov
sudip wrote:...
I am not sure where I did mistake, but I got compilation error.
CompileErr.jpg
Hello Sudip,

You have a path to BCC in your environment.

Please be so kind to update your local hmg\batch\compile.bat as below:
@echo off


rem ***************************************************************************
rem HMG 3.0 Compile batch.
rem Roberto Lopez (2009.10.10)
rem ***************************************************************************

cls

set path=C:\hmg\HARBOUR\comp\MINGW\bin;%path%

rem ***************************************************************************
rem set default resources
rem ***************************************************************************

...
I hope that helps :idea:

Re: HMG 3.0 (Test I)

Posted: Mon Oct 12, 2009 2:16 am
by Roberto Lopez
I have some bad news...

In incremental mode, HBMK, successfully, detect changes in include files invoked from .prgs and then, when an include file is modified, prgs that invokes it, are automatically recompiled.

The LOAD WINDOW HMG command, generates an #include directive for adding .fmg form files to a .prg.

So, the command:

LOAD WINDOW Test

Will generate the following code:

#include <Test.fmg>

Sadly, since #include directive is not explicity wrote in the .prg, apparently HBMK2 is ignoring it, so, changes in .fmg files will not force recompilation of calling prg(s).

The bottom line is that I'll must remove 'incremental' feature from 'Compile.Bat' since it will not work with form files (nor reports).

Any idea to overcome this is welcome.

Regards,

Roberto.

Re: HMG 3.0 (Test I)

Posted: Mon Oct 12, 2009 3:52 am
by sudip
Hello Grigory,
gfilatov wrote:...
You have a path to BCC in your environment.

Please be so kind to update your local hmg\batch\compile.bat as below:
@echo off
....
Thanks a lot. :D My problem was solved.
With best regards.
Sudip