hmg4 compilation problem
Posted: Sat Nov 19, 2011 4:31 pm
Hi to everyone
Today I discovered a problem about the system used to compile end programs and (perhaps) about HMG library.
I think we must change all batch files, remove usage of hbmk.hbm and introduce usage of .hbp and .hbc for every demo folder.
I show my intention, using folders structure ( notice: all previous .hbp, .hbc, .hbm, .bat will be removed )
svn/source/buildlib.bat
svn/source/hmglib.hbp
svn/buildapp.bat
svn/samples/demofolder/build.bat
svn/samples/demofolder/xxxx.prg
svn/samples/demofolder/xxxx.hbp
svn/samples/demofolder/hmg.hbc
little brief about some files
A) buildlib.bat (see (2) )
B) hmglib.hbp
C) buildapp.bat (see (2) )
D) build.bat
E) about xxxxx.hbp file
F) about hmg.hbc within any folder
(1) this because HMG uses some functions to test keyboard status. But it can be used only on Windows System. As I write some time ago: I think must be removed its usage
(2) theoretically we must also introduce
SET HB_COMPILER=mingw <== to tell mingw usage....
SET HRBBIN=HarbourBinPath <== but everyone can have different value (remember: someone doesn't uses Harbour of HMG distribution)
Rathinagiri (and everyone):
1) please, could you tell me if this can create problem with HMG4 distribution
2) about HRBBIN setting: by default HMG4 package is C:\Hmg4 ? I'm always dowoload SVN and I don't remember. I can set this value as default.
Is there someone who want to do this job?
Cheers
Today I discovered a problem about the system used to compile end programs and (perhaps) about HMG library.
I think we must change all batch files, remove usage of hbmk.hbm and introduce usage of .hbp and .hbc for every demo folder.
I show my intention, using folders structure ( notice: all previous .hbp, .hbc, .hbm, .bat will be removed )
svn/source/buildlib.bat
svn/source/hmglib.hbp
svn/buildapp.bat
svn/samples/demofolder/build.bat
svn/samples/demofolder/xxxx.prg
svn/samples/demofolder/xxxx.hbp
svn/samples/demofolder/hmg.hbc
little brief about some files
A) buildlib.bat (see (2) )
Code: Select all
SET HMGLOG=hmg_errorlog.txt
hbmk2 hmglib.hbp -trace > %HMGLOG% 2>&1
SET HMGLOG=Code: Select all
-hblib
-inc
-o../lib/hmg <== remember: we are within source folder. ../lib is needed to store in the right place
-I../include <== remember: we are within source folder. this is needed to localize hmg include folder
-w3
-es2
sourcename1.prg
sourcenameN.prgCode: Select all
SET HMGLOG=hmg_errorlog.txt
SET GUI=-gtgui
hbmk2 -o%~n1.exe %GUI% -trace %1 > %HMGLOG% 2>&1
SET HMGLOG=
SET GUI=Code: Select all
..\..\buildapp.bat %1 <== I removed "-run" option because it's dangerous. when there is some AV installed or wrong privilegesCode: Select all
-w3
-es2
hmg.hbc
xxxxx.prg can be more than one
?????.qrc if neededCode: Select all
incpaths=../../Include <== need this to find hmg4 include folder
libpaths=../../Lib <== need this to find hmg4 lib folder
libs=hbqt.hbc
libs=hbct.hbc <== see (1)
libs=hmg <== I'm using compiled library, not hbc(2) theoretically we must also introduce
SET HB_COMPILER=mingw <== to tell mingw usage....
SET HRBBIN=HarbourBinPath <== but everyone can have different value (remember: someone doesn't uses Harbour of HMG distribution)
Rathinagiri (and everyone):
1) please, could you tell me if this can create problem with HMG4 distribution
2) about HRBBIN setting: by default HMG4 package is C:\Hmg4 ? I'm always dowoload SVN and I don't remember. I can set this value as default.
Is there someone who want to do this job?
Cheers