HMG.4 and Tortoise SVN

HMG en Español

Moderator: Rathinagiri

Post Reply
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

HMG.4 and Tortoise SVN

Post by danielmaximiliano »

Hi:
Today just reinstall version HMG4 25/05/2011, then use TortoiseSVN to update the SVN folder and stay HMG4 this.
Example: Picture 1
Build.bat modified to compile C: \ hmg.4 \ svn \ samples \ everything \ demo_1
it compiles without errors but when running I get this error.
Ex: Image 2
Which is it ????...
02/05/2011 The binary is complete??

Hola:
Justo Hoy instale de nuevo HMG4 version 25-05-2011 , despues use TortoiseSVN para actualizar la carpeta SVN de HMG4 y me quedo esto.
Ej: Imagen 1
modifique Build.bat para poder compilar C:\hmg.4\svn\samples\everything\demo_1
el mismo compila sin errores pero al ejecutar me da el siguiente error.
Ej: Imagen 2
Cual es el Correcto????...
esta completo el Binario 2-05-2011 ????
Attachments
HMG.4.jpg
HMG.4.jpg (59.42 KiB) Viewed 4823 times
imagen 1
imagen 1
Error demo_1.jpg (34.17 KiB) Viewed 4823 times
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: HMG.4 and Tortoise SVN

Post by Carlos Britos »

danielmaximiliano wrote: Hola:
Justo Hoy instale de nuevo HMG4 version 25-05-2011 , despues use TortoiseSVN para actualizar la carpeta SVN de HMG4 y me quedo esto.
Ej: Imagen 1
modifique Build.bat para poder compilar C:\hmg.4\svn\samples\everything\demo_1
el mismo compila sin errores pero al ejecutar me da el siguiente error.
Ej: Imagen 2
Cual es el Correcto????...
esta completo el Binario 2-05-2011 ????
In this binary package only are missing the image dlls but compile and run ok, maybe paths are pointing to another location. BTW the SVN icons are in red showing SVN conflicts, If you delete folders source, include, samples and doc, making an TortoiseSVN update you'll get all fresh.

Los binarios del 25/5/2011 estan ok solo faltan las dll de imagenes pero compila y corre bien. a lo mejor en los paths hay algo apuntado a otro lugar.
Lo iconos en rojo del SVN muestran conflictos ? o tienes hechos cambios ?. Si no es asi borra las carpetas sources,include,samples y doc y hace un tortoise update para tener todo fresquito
Regards/Saludos, Carlos (bcd12a)
User avatar
danielmaximiliano
Posts: 2611
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG.4 and Tortoise SVN

Post by danielmaximiliano »

Hola Carlos:
Borre las carpetas enunciadas, use Tortoise para recrear desde el SVN.
como no contengo C:\HMG.4\SVN se crean automaticamentes mediante SVN Checkout
al actualizar voy a la carpeta C:\hmg.4\SVN\samples\everything
modifico Build.bat
..\..\buildapp.bat demo_1 %2 %3 %4 %5 %6 %7 %8 -p -run , Grabo los cambios y lo ejecuto mediante un doble click,
no me genera el .EXE si solo Demo_1.PPO
antes no tenia inconvenientes.
Tengo que instalar todos los BINARIOS desde 02-09-2010 ???

Otra cosa: cuando modifico algo Tortoise me indica una discrepancia entre lo que hay en el SVN y mi carpeta \HMG.4\SVN, en Minigui los ejemplos se compilan automaticamente con un Doble Click sobre Compile.bat, esto es porque Compile.bat tiene todo lo necesario para compilar el ejemplo y los parametros asociados a cada ejemplo.
un caso simple es /w3 para el Ejemplo de LUIGUI samples/agoodstart
podria tomarse en cuenta esto???
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: HMG.4 and Tortoise SVN

Post by Carlos Britos »

Hola Daniel
danielmaximiliano wrote: Tengo que instalar todos los BINARIOS desde 02-09-2010 ???
No

Lo que yo hago es esto y no tengo problemas:
Cuando instalo los ultimos binarios lo hago siempre en una carpeta nueva
Borro las carpetas source,include,samples y doc
Borro la carpeta hmg -> C:\hmg.4\svn\hmg que tiene codigo desactualizado para evitar errores. (Ya le pedi a rathi que la elimine de los proximos binarios.)
Hago SVN Checkout C:\hmg.4\svn
Abro el CMD en la carpeta de samples que quiero probar y tipeo build demo_1
y anda ok
Probé agregando el switch -p al ..\..\buildapp.bat y genera el ppo junto al exe
Por eso creo que tenes algun path apuntando a otra instalacion.
Hace un
echo %PATH%
para ver donde apuntan

yo uso este bat en la carpeta C:\hmg.4\svn que antes actualiza libhmg.a si es necesario.

Code: Select all

@echo off

REM
REM $Id: buildapp.bat 543 2011-04-02 06:13:35Z srgiri $
REM

SET HMGPATH=c:\hmg.4

SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\harbour\comp\mingw\bin;%PATH%
SET HB_WITH_QT=%HMGPATH%\harbour\include

:: update lib if is necessary
hbmk2 %HMGPATH%\svn\hmg.hbp

hbmk2 %1 %2 %3 %4 %5 %6 %7 %8
Otra cosa: cuando modifico algo Tortoise me indica una discrepancia entre lo que hay en el SVN y mi carpeta \HMG.4\SVN
Entonces esta ok.

en Minigui los ejemplos se compilan automaticamente con un Doble Click sobre Compile.bat, esto es porque Compile.bat tiene todo lo necesario para compilar el ejemplo y los parametros asociados a cada ejemplo.
un caso simple es /w3 para el Ejemplo de LUIGUI samples/agoodstart
podria tomarse en cuenta esto???
En estos dias Roberto hizo cambios en los bat para la version 3.xx pero no los tengo. Es cuestion de verlos y actualizarlos para hmg4
Regards/Saludos, Carlos (bcd12a)
Carlos Britos
Posts: 245
Joined: Sat Aug 02, 2008 5:03 pm

Re: HMG.4 and Tortoise SVN

Post by Carlos Britos »

Google translation

Hello Daniel
danielmaximiliano wrote:
I have to install all the binaries from 09.02.2010??
Not

What I do is this and I have no problems:
When I install the latest binary I always do in a new folder
Delete source folders, include, samples and doc
Hmg delete the folder -> C: \ hmg.4 \ svn \ hmg has outdated code to avoid errors. (Already Rathi asked to remove it from the next binary.)
I SVN Checkout C: \ hmg.4 \ svn
I open the CMD in the samples folder and typing test I want to build demo_1
and go ok
I tried adding the-p switch to .. \ .. \ buildapp.bat and generated by the exe ppo
So I think you have some path pointing to another facility.
Ago
echo% PATH%
to see where the point

I use this bat in the folder C: \ hmg.4 \ svn before libhmg.a updated if necessary.



Code: Select all

@ Echo off

REM
REM $ Id: 2/4/2011 6:13:35 buildapp.bat Z 543 $ srgiri
REM

SET HMGPATH = c: \ hmg.4

SET PATH =% HMGPATH% \ harbor \ bin;% HMGPATH% \ harbor \ comp \ mingw \ bin;% PATH%
HMGPATH HB_WITH_QT SET =%% \ HARBOUR \ include

:: Update lib is NECESSARY if
HMGPATH hbmk2%% \ svn \ hmg.hbp

hbmk2% 1% 2% 3% 4% 5% 6% 7% 8
Another thing: when I change something tells me Tortoise is a discrepancy between what is in SVN and my folder \ HMG.4 \ SVN
Then this ok.
Phrase in the examples are compiled automatically by double-clicking on Compile.bat, this is because Compile.bat has everything you need to compile the sample and the parameters associated with each example.
simple case is / w3 for example Luigi samples / agoodstart
This could be considered??
These days Robert made changes in the bat for 3.xx version but I have not. It is a matter of seeing them and update them to hmg4
Regards/Saludos, Carlos (bcd12a)
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG.4 and Tortoise SVN

Post by l3whmg »

Hi friends.
I get involved in this post :mrgreen:
About Tortoise SVN. I'm using this method:
1) I have the svn repository. From here, I do: "Update" and "Commit"; I don't use this area to do: development, check or other.
2) After "Update" I press <Right Click> and do "Export" in other empty folder. In this way we can have all Hmg files.
3) I Move or Copy this file in my develpment folder (ie. D:\HmgMiniGui\Hmg)

About compilation. I have done some mod to buildapp.bat. Here my code

Code: Select all

SET HB_COMPILER=mingw
SET HRBHOME=D:\HMiniGui\HARBOUR
SET HRBBIN=%HRBHOME%\bin
SET HRBLOG=hb_error.log
SET SAVPATH=%PATH%
SET PATH=%PATH%;%HRBBIN%
SET PRGFLAG=-prgflag=-q -es2 -w3

hbmk2 %PRGFLAG% %1 %2 %3 %4 %5 %6 %7 %8 > %HRBLOG% 2>&1

SET PATH=%SAVPATH%
SET HB_COMPILER=
SET HRBHOME=
SET HRBBIN=
SET HRBLOG=
SET PRGFLAG=
SET SAVPATH=
Note: I use always the Harbour and MinGw distribuited with Harbour package (nightly source and bin).
Take a look to "SET HRBHOME" and "SET HRBBIN", but (most important) I have set "SET HB_COMPILER=mingw". With this setting, Harbour hbmk2 command, take the installed MinGw compiler.
buildlib.bat have the same.

I think it's better use of ".hbp" files because with ".hbc" and "hbmk.hbm" - only - I had some problems when path (include and lib) are very different. Bu anyway, this is.

On the other hand I ask to every one to use /w3 (Harbour compiler option, not only for lib but everywhere) because in this way we can have cleaned source. And without use of /a (automatic memvar declaration), because I think it's not very good. I can't compile many demo: a lot of var are undeclared, many function have only "RETURN", ecc.

About Mingwm10.dll (othe other two/three dll, but i don't remember the names), you must: A) copy in your program folder or B) in Windows\system32 folder (I think this a best solution, but you must remember to copy and update).
At the same time you must have a copy of "QtCore4", "QtGui4", "QtNetwork4" (QtSql4 if used): A) in you program folder or B) in Windows\system32 folder (I think this a best solution, but you must remember to copy and update).
The last but not the least: the Qt/plugins. Qt need qt.conf to store path, but I have introduced a mod to tell the path.

I hope this can help you.

Best regards
Luigi from Italy
www.L3W.it
Post Reply