Page 2 of 5

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 12:11 pm
by Roberto Lopez
rathinagiri wrote:I am sure it is 'Diwali' gift. :)
I don't knew what 'Diwali' mean, but Wikipedia teached me:

http://en.wikipedia.org/wiki/Diwali

Perhaps, could be a nice idea, from time to time, post something about own culture an places, to know a little better each other. Here is people from very different places, so, it could be very interesting...

Regards,

Roberto.

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 12:28 pm
by Roberto Lopez
Roberto Lopez wrote:
rathinagiri wrote:I am sure it is 'Diwali' gift. :)
I don't knew what 'Diwali' mean, but Wikipedia teached me:

http://en.wikipedia.org/wiki/Diwali

Perhaps, could be a nice idea, from time to time, post something about own culture an places, to know a little better each other. Here is people from very different places, so, it could be very interesting...

Regards,

Roberto.
I mean, not links to sites or existing docs.

I'm talking about our own photos and texts describing places or cultural hints. Even when brief, will be personal experiences.

Just an idea (usually I have more ideas than time to develop them :))

Regards,

Roberto.

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 1:41 pm
by Roberto Lopez
arroya2 wrote:Maestro te lo estás currando (expresión andaluza que quiere decir "trabajando" y que le da más dramatismo).

Es una maravilla lo que está haciendo.

Saludos
Rafael Pérez
Gracias!

Yo nací y vivo en Argentina, pero mis abuelos fueron (todos ellos) Españoles, así que tu mensaje tiene un gran significado para mi.

I've born and live in Argentina but my grandmothers and grandfathers were (all of them) from Spain, so, your message has a big meaning for me.


Saludos/Regards,

Roberto.

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 2:24 pm
by mol
I've made changes in buid.bat.
Now, it's working, but...

I've reached some errors in my project.

.

Code: Select all

hbmk\win\mingw\akord.o:akord.c:(.data+0x298): undefined reference to `HB_FUN_EXENAME'
.hbmk\win\mingw\akord.o:akord.c:(.data+0x328): undefined reference to `HB_FUN_FILECOPY'
.hbmk\win\mingw\akord.o:akord.c:(.data+0x338): undefined reference to `HB_FUN_W32_REGWRITE'
.hbmk\win\mingw\akord.o:akord.c:(.data+0xa08): undefined reference to `HB_FUN_BOM'
.hbmk\win\mingw\akord.o:akord.c:(.data+0xb48): undefined reference to `HB_FUN_CHARONLY'
.hbmk\win\mingw\akord.o:akord.c:(.data+0xb58): undefined reference to `HB_FUN_CHARREM'
.hbmk\win\mingw\certyfikaty.o:certyfikaty.c:(.data+0x328): undefined reference to `HB_FUN_BOM'
.hbmk\win\mingw\certyfikaty.o:certyfikaty.c:(.data+0x938): undefined reference to `HB_FUN_CHARREPL'
.hbmk\win\mingw\obsluga.o:obsluga.c:(.data+0x858): undefined reference to `HB_FUN_NUMXOR'
.hbmk\win\mingw\obsluga.o:obsluga.c:(.data+0x1208): undefined reference to `HB_FUN_TURL'
.hbmk\win\mingw\obsluga.o:obsluga.c:(.data+0x1228): undefined reference to `HB_FUN_TIPCLIENTHTTP'
.hbmk\win\mingw\tabele.o:tabele.c:(.data+0x818): undefined reference to `HB_FUN_BOM'
.hbmk\win\mingw\tabele.o:tabele.c:(.data+0xa68): undefined reference to `HB_FUN_TOKENINIT'
.hbmk\win\mingw\tabele.o:tabele.c:(.data+0xa78): undefined reference to `HB_FUN_TOKENEND'
.hbmk\win\mingw\tabele.o:tabele.c:(.data+0xa88): undefined reference to `HB_FUN_TOKENNEXT'
Are these functions included in new version of harbour? Maybe another library?

PS. I discovered that new version works too much faster? Is it true?

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 2:40 pm
by Roberto Lopez
mol wrote:I've made changes in buid.bat.
Now, it's working, but...

I've reached some errors in my project.

.

Code: Select all

hbmk\win\mingw\akord.o:akord.c:(.data+0x298): undefined reference to `HB_FUN_EXENAME'
.hbmk\win\mingw\akord.o:akord.c:(.data+0x328): undefined reference to `HB_FUN_FILECOPY'
.hbmk\win\mingw\akord.o:akord.c:(.data+0x338): undefined reference to `HB_FUN_W32_REGWRITE'
.hbmk\win\mingw\akord.o:akord.c:(.data+0xa08): undefined reference to `HB_FUN_BOM'
.hbmk\win\mingw\akord.o:akord.c:(.data+0xb48): undefined reference to `HB_FUN_CHARONLY'
.hbmk\win\mingw\akord.o:akord.c:(.data+0xb58): undefined reference to `HB_FUN_CHARREM'
.hbmk\win\mingw\certyfikaty.o:certyfikaty.c:(.data+0x328): undefined reference to `HB_FUN_BOM'
.hbmk\win\mingw\certyfikaty.o:certyfikaty.c:(.data+0x938): undefined reference to `HB_FUN_CHARREPL'
.hbmk\win\mingw\obsluga.o:obsluga.c:(.data+0x858): undefined reference to `HB_FUN_NUMXOR'
.hbmk\win\mingw\obsluga.o:obsluga.c:(.data+0x1208): undefined reference to `HB_FUN_TURL'
.hbmk\win\mingw\obsluga.o:obsluga.c:(.data+0x1228): undefined reference to `HB_FUN_TIPCLIENTHTTP'
.hbmk\win\mingw\tabele.o:tabele.c:(.data+0x818): undefined reference to `HB_FUN_BOM'
.hbmk\win\mingw\tabele.o:tabele.c:(.data+0xa68): undefined reference to `HB_FUN_TOKENINIT'
.hbmk\win\mingw\tabele.o:tabele.c:(.data+0xa78): undefined reference to `HB_FUN_TOKENEND'
.hbmk\win\mingw\tabele.o:tabele.c:(.data+0xa88): undefined reference to `HB_FUN_TOKENNEXT'
Are these functions included in new version of harbour? Maybe another library?

PS. I discovered that new version works too much faster? Is it true?
I've not made benchmarks, but it appears to (at least) compile faster.

Regarding the errors, obviously I've missed to link some libraries.

I'm sure I've missed hbtip, but maybe more...

Let me do some tests....

Thanks for reporting.

Regards,

Roberto.

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 2:44 pm
by Roberto Lopez
mol wrote:I've made changes in buid.bat.
Now, it's working, but...

I've reached some errors in my project.

.

Code: Select all

hbmk\win\mingw\akord.o:akord.c:(.data+0x298): undefined reference to `HB_FUN_EXENAME'
<...>
Are these functions included in new version of harbour? Maybe another library?

[color=#0000BF]PS. I discovered that new version works too much faster? Is it true?
[/color][/quote]

Please try replacing \hmg\batch\buid.bat with this:

[quote]@echo off

rem ***************************************************************************
rem HMG 3.0 Build batch 
rem Roberto Lopez (2009.10.16)
rem Syntax:
rem
rem	Build [/i|/r|/d|/cs|/ci/cr] <PrgFile> | <filelist.hbp> [config.hbc]
rem	
rem	[/i] : incremental build
rem	[/r] : incremental build (rebuild all)
rem
rem	[/cs] : Console/mixed mode (std build)
rem	[/ci] : Console/mixed mode (incremental build)
rem	[/cr] : Console/mixed mode (incremental rebuild all)
rem
rem	[/d] : Debug mode (gui and console)
rem	
rem
rem	<filelist.hbm> : A text file with .hbp extension containing a source list
rem	<configfile.hbc>: A text file with configuration parameters as additional
rem	libs, include paths and lib paths.
rem 
rem		<configfile.hbc> Syntax:
rem 
rem		incpaths = incpath1 incpath2 ... incpathn
rem                   
rem		libpaths = libpath1 libpath2 ... libpathn
rem 
rem		libs = lib1 lib2 ... libn
rem
rem	- library names must not include 'lib' prefix nor '.a' extension.
rem
rem	- build.bat will create an 'error.log' file in the app folder when build
rem	process ends with an error condition.
rem
rem
rem ***************************************************************************

cls

echo building...

if exist hbmk.log del hbmk.log
if exist hbmk.so.log del hbmk.so.log
if exist windres.log del windres.log
if exist error.log del error.log

rem ***************************************************************************
rem Set variables
rem ***************************************************************************

Set Path=c:\hmg\util;c:\hmg\mingw\bin;c:\hmg\harbour\bin;%PATH%
if "%Resources%"==""  Set Resources=c:\hmg\resources\minigui.o
if "%HmgPath%" =="" Set HmgPath=c:\hmg

set GT=-gtgui
set DEBUG=""
set BUILDTYPE=""
set REBUILDALL=""
set RUN=.T.

rem ---------------------------------------------------------------------------
rem Parameters Processing
rem ---------------------------------------------------------------------------

rem ***************************************************************************
rem No run after build
rem ***************************************************************************

if "%1"=="/n" goto norun
if "%1"=="/N" goto norun

:continue0

rem ***************************************************************************
rem Console Incremental Rebuild
rem ***************************************************************************

if "%1"=="/cr" goto consoleincrebuild
if "%1"=="/CR" goto consoleincrebuild

rem ***************************************************************************
rem Console Incremental
rem ***************************************************************************

if "%1"=="/ci" goto consoleincremental
if "%1"=="/CI" goto consoleincremental

rem ***************************************************************************
rem GUI Incremental Rebuild
rem ***************************************************************************

if "%1"=="/r" goto increbuild
if "%1"=="/R" goto increbuild

rem ***************************************************************************
rem Console Standard Build
rem ***************************************************************************

if "%1"=="/cs" goto console
if "%1"=="/CS" goto console

rem ***************************************************************************
rem If debug mode specified, use GTWIN and pass -b parameter
rem ***************************************************************************

if "%1"=="/d" goto debug
if "%1"=="/D" goto debug

rem ***************************************************************************
rem If /i parameter rceived set BUILDTYPE to incremental
rem ***************************************************************************

if "%1"=="/i" goto incremental
if "%1"=="/I" goto incremental

rem ***************************************************************************
rem If /i parameter rceived set BUILDTYPE to incremental
rem ***************************************************************************

if "%1"=="/i" goto incremental
if "%1"=="/I" goto incremental

:continue

if exist %~n1.exe del %~n1.exe

if exist %~n1.exe goto error

rem ***************************************************************************
rem If a resource with the same base name as the first parameter exist compile it
rem ***************************************************************************

if exist %~n1.rc copy /b %HmgPath%\resources\minigui.rc+%~n1.rc+%HmgPath%\resources\filler _temp.rc >NUL
if exist %~n1.rc redir -e windres.log windres -i _temp.rc -o _temp.o 
if exist %~n1.rc Set Resources=_temp.o

rem ***************************************************************************
rem invoke HBMK2
rem ***************************************************************************

redir -eo  hbmk2 -nohbc -o%~n1.exe %GT% %DEBUG% -head=real %BUILDTYPE% %REBUILDALL% -incpath=%HmgPath%\include -incpath=%CD% -L%HmgPath%\lib -lminigui -lhbmysql -lmysql -lcrypt -ledit -leditex -lgraph -lini -lreport -lhbwin -lhbziparc -lhbmzip -lmsvfw32 -lvfw32 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbvpdf -lhbmemio -lhbsqlit3 -lsqlite3 -lhbfimage.a -lhbpgsql -lpq -lhbtip -prgflag=/q %1 %2 %3 %4 %5 %6 %7 %8 %9 %Resources%  >hbmk.log

goto end

rem ***************************************************************************
rem Procedure increbuild
rem ***************************************************************************

:increbuild

set BUILDTYPE=-inc
set REBUILDALL=-rebuild

shift

goto continue

rem ***************************************************************************
rem Procedure Console
rem ***************************************************************************

:console

set GT=-gtwin

shift

goto continue

rem ***************************************************************************
rem Procedure Debug
rem ***************************************************************************

:debug

set GT=-gtwin
set DEBUG=-b

echo Options NoRunAtStartup > Init.cld

shift

goto continue

rem ***************************************************************************
rem Procedure Incremental
rem ***************************************************************************

:Incremental

set BUILDTYPE=-inc

shift
goto continue

rem ***************************************************************************
rem Procedure IncConsole
rem ***************************************************************************

:consoleincremental

set BUILDTYPE=-inc
set GT=-gtwin

shift

goto continue

rem ***************************************************************************
rem Procedure IncConsole
rem ***************************************************************************

:consoleincrebuild

set BUILDTYPE=-inc
set GT=-gtwin
set REBUILDALL=-rebuild

shift

goto continue

rem ***************************************************************************
rem Procedure NoRun
rem ***************************************************************************

:norun

set RUN=.F.

shift

goto continue0

rem ***************************************************************************
rem Procedure Error
rem ***************************************************************************

:error

echo Can't delete previous %~n1.exe version (still running?) > error.log

goto showlog

:end

rem ***************************************************************************
rem Cleanup
rem ***************************************************************************

rem If build error, create 'error.log' ----------------------------------------

if errorlevel 1 if exist windres.log copy /b windres.log+hbmk.log error.log >nul

if errorlevel 1 if not exist windres.log copy /b hbmk.log error.log >nul

rem If no error run the exe ---------------------------------------------------

if "%RUN%"==".T." if not errorlevel 1 if exist %~n1.exe %~n1.exe

rem Delete temporary files ----------------------------------------------------

if exist windres.log del windres.log
if exist hbmk.log del hbmk.log
if exist hbmk.so.log del hbmk.so.log

if exist _temp.rc del _temp.rc

if exist _temp.o  del _temp.o

rem if exist delete debugger file ---------------------------------------------

if exist init.cld del init.cld

:showlog

if exist error.log type error.log

[/quote]

Regards,

Roberto.

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 3:35 pm
by mol
Any changes :-(

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 4:07 pm
by Vanguarda
@echo off
rem ***************************************************************************
rem HMG 3.0 Build batch
rem Roberto Lopez (2009.10.16)
rem Syntax:
<...>
Hello Master,

Well, i replace the build.bat for this code and it work fine.
The process of compilation is very fast. I had compile a project with 14 files.PRG (with approximately 800 lines each) and 18 files.FMG and the IDE compile it in 8 Seconds.

I´ve a CELERON with 3.06Ghz, with 1 GB memory RAM, with 1 MB of CACHE. It not DUAL CORE.



My resource file is empty because this new version of the HMG-IDE change the mode of using resource file. In old version the resource file called MAIN.RC, in this the resource file called <projectname>.RC, or i´m wrong?

I´ve a little doubt, i have that recompile the libs created with the old version of harbour+MinGW, for that this work on this new version of HMG?


Sorry my poor english.


With best Regards,

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 4:31 pm
by Rathinagiri
Roberto Lopez wrote:
rathinagiri wrote:I am sure it is 'Diwali' gift. :)
I don't knew what 'Diwali' mean, but Wikipedia teached me:

http://en.wikipedia.org/wiki/Diwali

Perhaps, could be a nice idea, from time to time, post something about own culture an places, to know a little better each other. Here is people from very different places, so, it could be very interesting...

Regards,

Roberto.
Hi Roberto,

As you have searched and found out, Diwali (aka Deepavali in some places) is a famous Indian festival. 'Light' is given more importance for this festival. This day (Oct-Nov. new moon day) is celebrated for the remembrance of Lord Krishna having killed Naragasura (a Demon).

Diwali is more important for me, since we manufacture fireworks here mostly for the consumption in this festival days for the whole of India.

Since you asked some of our pictures enjoying Diwali (sorry for the quality - captured using mobile hastily)

This is my elder daughter's hand lighting a sparkler.

Image

This is another fireworks (ground chakkar) displayed here.

Image

Here, myself torching a sparkler and my younger daughter watches. :)

Image

Colorful fireworks/crackers we manufacture. :)

Image

Re: HMG-IDE 3.0.0 (Forum test VI)

Posted: Sun Oct 18, 2009 4:38 pm
by mol
We are using such a fireworks on Christmas