Page 1 of 3

HMG.4 IDE TEST 2011.11.25

Posted: Fri Nov 25, 2011 3:26 pm
by Roberto Lopez
Hi All,

An updated IDE.4 test release.

It requires that you replace the current buildapp.bat with the following:

Code: Select all

@echo off

REM
REM $Id$
REM

IF DEFINED HMGPATH GOTO HmgPathDefined

SET HMGPATH=c:\hmg.4
SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\harbour\comp\mingw\bin;%PATH%
SET HB_WITH_QT=%HMGPATH%\harbour\include

:HmgPathDefined

if "%1"=="/3" goto compatible

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -w3 -es2

goto end

:compatible

shift

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -q -DHMG3 -i. -run >build.log 2>&1

IF ERRORLEVEL 1 NOTEPAD build.log

:end
Enjoy!

Re: HMG.4 IDE TEST 2011.11.25

Posted: Sat Nov 26, 2011 1:53 am
by jairpinho
buildapp.bat modified and compiled the hello.hbp

hbmk2: Processando script local: hbmk.hbm
hbmk2: Harbour: Compilando m¢dulos...
Harbour 3.1.0dev (Rev. 17111)
Copyright (c) 1999-2011, http://harbour-project.org/

F:\@Prog-Xbase\HMG-4\ide4c\sample\main.prg(8) Error E0020 Incomplete statement or unbalanced delimiters

F:\@Prog-Xbase\HMG-4\ide4c\sample\main.prg(9) Error E0020 Incomplete statement or unbalanced delimiters

2 errors

No code generated.
hbmk2: Erro: Executando o compilador Harbour (interno): 1
(c:\hmg.4\harbour\bin\harbour.exe) -n2 F:\@Prog-Xbase\HMG-4\ide4c\sample\main.prg F:\@Prog-Xbase\HMG-4\ide4c\sample\main_button_1_action.prg -q -DHMG3 -o.hbmk\win\mingw\ -ic:\hmg.4\harbour\include -iC:\HMG.4\SVN\include -ic:\hmg.4\harbour\contrib\hbqt\qtcore -ic:\hmg.4\harbour\contrib\hbqt -ic:\hmg.4\harbour\contrib\hbqt\qtgui -ic:\hmg.4\harbour\contrib\hbqt\qtnetwork -ic:\hmg.4\harbour\contrib\hbqt\qtsql -ic:\hmg.4\harbour\contrib\hbqt\gtqtc -ic:\hmg.4\harbour\contrib\hbct -ic:\hmg.4\harbour\contrib\xhb -ic:\hmg.4\harbour\contrib\hbtip -ic:\hmg.4\harbour\contrib\hbwin -ic:\hmg.4\harbour\contrib\hbfship -ic:\hmg.4\harbour\contrib\hbxpp -ic:\hmg.4\harbour\contrib\gtwvg -i.

Re: HMG.4 IDE TEST 2011.11.25

Posted: Sat Nov 26, 2011 2:03 am
by danielmaximiliano
Compila Ok.
Greenshot_2011-11-25_12-45-14.png
Greenshot_2011-11-25_12-45-14.png (191.08 KiB) Viewed 12798 times
mi ruta
hmgide_2011-11-25_23-13-35.png
hmgide_2011-11-25_23-13-35.png (89.44 KiB) Viewed 12796 times

Re: HMG.4 IDE TEST 2011.11.25

Posted: Sat Nov 26, 2011 2:16 am
by jairpinho
installed the new version and compiled hmg.4.bin.win.2011.11.23.exe

Re: HMG.4 IDE TEST 2011.11.25

Posted: Sat Nov 26, 2011 2:31 am
by jairpinho
when you add a frame after other objects do not work the same examples of the Appendix

Re: HMG.4 IDE TEST 2011.11.25

Posted: Sat Nov 26, 2011 2:41 am
by jairpinho
There is a problem with radiogroup frame around

Re: HMG.4 IDE TEST 2011.11.25

Posted: Sat Nov 26, 2011 2:50 am
by danielmaximiliano
jairpinho wrote:when you add a frame after other objects do not work the same examples of the Appendix
intenta cambiar el orden de los controles
Greenshot_2011-11-25_23-47-17.png
Greenshot_2011-11-25_23-47-17.png (195.81 KiB) Viewed 12791 times
despues compila ok
Greenshot_2011-11-25_23-46-38.png
Greenshot_2011-11-25_23-46-38.png (164.29 KiB) Viewed 12791 times

Re: HMG.4 IDE TEST 2011.11.25

Posted: Thu Dec 01, 2011 1:16 am
by danielmaximiliano
Roberto Lopez wrote:Hi All,

An updated IDE.4 test release.

It requires that you replace the current buildapp.bat with the following:

Code: Select all

@echo off

REM
REM $Id$
REM

IF DEFINED HMGPATH GOTO HmgPathDefined

SET HMGPATH=c:\hmg.4
SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\harbour\comp\mingw\bin;%PATH%
SET HB_WITH_QT=%HMGPATH%\harbour\include

:HmgPathDefined

if "%1"=="/3" goto compatible

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -w3 -es2

goto end

:compatible

shift

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -q -DHMG3 -i. -run >build.log 2>&1

IF ERRORLEVEL 1 NOTEPAD build.log

:end
Enjoy!
Hola Roberto:
Usando Build.bat desde la carpeta de /samples/progressbar el mismo compila perfectamente los ejemplos 1 y 3, pero el ejemplo sample_2.prg no compila dado que tiene varios "Warning".
hbmk2: Processing local make script: hbmk.hbm
Harbour 3.1.0dev (Rev. 17111)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'C:\hmg.4\svn\samples\progressbar\demo_2.prg'...
C:\hmg.4\svn\samples\progressbar\demo_2.prg(83) Warning W0003 Variable 'OPROGRESSBAR1' declared but not used in function 'MAIN(16)'
C:\hmg.4\svn\samples\progressbar\demo_2.prg(83) Warning W0003 Variable 'OPROGRESSBAR2' declared but not used in function 'MAIN(17)'
C:\hmg.4\svn\samples\progressbar\demo_2.prg(83) Warning W0003 Variable 'OPROGRESSBAR3' declared but not used in function 'MAIN(18)'
C:\hmg.4\svn\samples\progressbar\demo_2.prg(83) Warning W0003 Variable 'OPROGRESSBAR4' declared but not used in function 'MAIN(19)'
C:\hmg.4\svn\samples\progressbar\demo_2.prg(83) Warning W0003 Variable 'OPROGRESSBAR5' declared but not used in function 'MAIN(20)'
C:\hmg.4\svn\samples\progressbar\demo_2.prg(83) Warning W0003 Variable 'OBUTTON1' declared but not used in function 'MAIN(21)'

No code generated.
hbmk2: Error: Running Harbour compiler (embedded). 1
(c:\hmg.4\harbour\bin\harbour.exe) -n2 C:\hmg.4\svn\samples\progressbar\demo_2.prg -w3 -es2 -oC:\Temp\hbmk_gmjo2d.dir\ -ic:\hmg.4\harbour\include -i..\..\include -ic:\hmg.4\harbour\contrib\hbqt\qtcore -ic:\hmg.4\harbour\contrib\hbqt -ic:\hmg.4\harbour\contrib\hbqt\qtgui -ic:\hmg.4\harbour\contrib\hbqt\qtnetwork -ic:\hmg.4\harbour\contrib\hbqt\qtsql -ic:\hmg.4\harbour\contrib\hbqt\gtqtc -ic:\hmg.4\harbour\contrib\hbct -ic:\hmg.4\harbour\contrib\xhb -ic:\hmg.4\harbour\contrib\hbtip -ic:\hmg.4\harbour\contrib\hbwin -ic:\hmg.4\harbour\contrib\hbfship -ic:\hmg.4\harbour\contrib\hbxpp -ic:\hmg.4\harbour\contrib\gtwvg
dado que el manejo de ERRORLEVEL en Buildapp.bat es solamente en el modo compatibilidad, por eso no muestra cualquier tipo de error

Code: Select all

:compatible

shift

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -q -DHMG3 -i. -run >build.log 2>&1

IF ERRORLEVEL 1 NOTEPAD build.log
decidi modificar el mismo para adaptar cualquier tipo de ERRORLEVEL distinto de 0.

Code: Select all

@echo off

REM
REM $Id: buildapp.bat 831 2011-11-28 21:56:32Z roblez $
REM

IF DEFINED HMGPATH GOTO HmgPathDefined

SET HMGPATH=c:\hmg.4
SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\harbour\comp\mingw\bin;%PATH%
SET HB_WITH_QT=%HMGPATH%\harbour\include

:HmgPathDefined

if "%1"=="/3" goto compatible

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -w3 -es2  >build.log 2>&1

IF %ERRORLEVEL% LSS 1 goto end 

START NOTEPAD build.log

exit

:compatible

shift

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -q -DHMG3 -i.  >build.log 2>&1


IF %ERRORLEVEL% LSS 1 goto end 


START NOTEPAD build.log

exit

:end
Se podria considerar este formato o alguna mejora del mismo?

Re: HMG.4 IDE TEST 2011.11.25

Posted: Thu Dec 01, 2011 1:32 am
by Roberto Lopez
danielmaximiliano wrote: Hola Roberto:
Usando Build.bat desde la carpeta de /samples/progressbar el mismo compila perfectamente los ejemplos 1 y 3, pero el ejemplo sample_2.prg no compila dado que tiene varios "Warning".
Esos problemas de compatibilidad no están relacionados con el IDE.

Ha habido muchos cambios en la librería que han dejado sin funcionar a muchos ejemplos que deben ser revisados.

Re: HMG.4 IDE TEST 2011.11.25

Posted: Thu Dec 01, 2011 2:26 am
by danielmaximiliano
Roberto Lopez wrote: Esos problemas de compatibilidad no están relacionados con el IDE.

Ha habido muchos cambios en la librería que han dejado sin funcionar a muchos ejemplos que deben ser revisados.
codigo


No logre explicarme bien Roberto.
HBMK2 no compila debido a "Warning" en el codigo escrito a menos que uno lo indique en los parametros pasados.
-[no]ignore ignore errors when running compiler tools (default: off)
es posible que buildapp.bat genere tambien un Buil.log con los errores asociados no solo en el modo compatibilidad ?

Code: Select all

@echo off

REM
REM $Id: buildapp.bat 831 2011-11-28 21:56:32Z roblez $
REM

IF DEFINED HMGPATH GOTO HmgPathDefined

SET HMGPATH=c:\hmg.4
SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\harbour\comp\mingw\bin;%PATH%
SET HB_WITH_QT=%HMGPATH%\harbour\include

:HmgPathDefined

if "%1"=="/3" goto compatible

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -w3 -es2  >build.log 2>&1

goto end

:compatible

shift

HBMK2 %1 %2 %3 %4 %5 %6 %7 %8 -q -DHMG3 -i.  >build.log 2>&1


:end

IF %ERRORLEVEL% lss 1 exit

START NOTEPAD build.log

exit