HMG 3.0.36 (Test 2011-03-22)

HMG announcements; Latest HMG-related news, releases, fixes and updates.

Moderator: Rathinagiri

User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

HMG 3.0.36 (Test 2011-03-22)

Post by Rathinagiri »

Hi,

I am attaching herewith a small patch on HMG 3.0.36 (Test) Version. Just extract the zip file on your existing test version folder.

Changelog:

- Fixed Media Player bug introduced by HMG 3.0.36, with the help of Grigory Filatov. (Thank you Grigory)
- Fixed memory handle leaks, as suggested by Ricci. (Thank you Ricci)
Attachments
hmg3.0.36(Test-2011-03-22).zip
(312.07 KiB) Downloaded 706 times
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0.36 (Test 2011-03-22)

Post by Rathinagiri »

I saw some strange behaviors between 3.0.35 version and 3.0.36 (Test) version. I am illustrating the findings with a picture. Kindly see to it.

Is it ok? Or, why is it like that?
difference.jpg
difference.jpg (143.66 KiB) Viewed 8671 times
Also, we have to solve one bug now (some controls having black background in themed windows versions)
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG 3.0.36 (Test 2011-03-22)

Post by l3whmg »

Hi Rathinagiri,
first fo all MANY THANKS for your work.

HMG lib was generated, but is it correct to receive many warnings? I included my log file.

I'm working with this structure:

D:\HMiniGui - my root directory
D:\HMiniGui\Harbour - nightly harbour (source and bin unzipped) with MinGw compiler
D:\HMiniGui\HMiniGui3 - HMG3 area
D:\HMiniGui\HMiniGui3\Hmg - HMG package but I removed Harbour and MinGw directories
Attachments
hmgCompile.zip
logfile
(4.13 KiB) Downloaded 423 times
Luigi from Italy
www.L3W.it
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0.36 (Test 2011-03-22)

Post by Rathinagiri »

l3whmg wrote:Hi Rathinagiri,
first fo all MANY THANKS for your work.

HMG lib was generated, but is it correct to receive many warnings? I included my log file.

I'm working with this structure:

D:\HMiniGui - my root directory
D:\HMiniGui\Harbour - nightly harbour (source and bin unzipped) with MinGw compiler
D:\HMiniGui\HMiniGui3 - HMG3 area
D:\HMiniGui\HMiniGui3\Hmg - HMG package but I removed Harbour and MinGw directories
Hi Luigi,

I am not well versed in 'C' programming. :( I think somebody who is an expert in 'C' can help us.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG 3.0.36 (Test 2011-03-22)

Post by l3whmg »

Hi Rathinagiri,
I'm sorry if I give you my problems, but when you generate the library is everything ok?

I see you run a program, but I can't create an executable. I have errors
Here you can see harbour compiler in action. With batch command I must add these libraries
- Hmg (of corse)
- hbmzip
- hbwin
- hbct
batch command is
HBMK2 -oapp000.exe -q -es2 -w3 -incpath=<hmgpath>\include -L<hmgpath>\lib -lhmg -lhbmzip -lhbwin -lhbct app000.prg <hmgpath>\resources\hmg.o
As you can see above other libraries and include are added by Harbour
hbmk2: Harbour compiler command (embedded):
(D:\HMiniGui\Harbour\bin\harbour.exe) -n2 app000.prg -q -es2 -w3 -oC:\DOCUME~1\luigi\IMPOST~1\Temp\hbmk_mgqfr0.dir\ -iD:\HMiniGui\Harbour\include -iD:\HMiniGui\HMiniGui3\hmg\include
Harbour 2.1.0rc2 (Rev. 16490)
Copyright (c) 1999-2011, http://harbour-project.org/
hbmk2: C/C++ compiler command:
D:\HMiniGui\Harbour\comp\mingw\bin\gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame-pointer -W -Wall -pipe -ID:/HMiniGui/Harbour/include -ID:/HMiniGui/HMiniGui3/hmg/include C:/DOCUME~1/luigi/IMPOST~1/Temp/hbmk_mgqfr0.dir/app000.c C:/DOCUME~1/luigi/IMPOST~1/Temp/hbmk_doq1tt.c
hbmk2: Linker command:
D:\HMiniGui\Harbour\comp\mingw\bin\gcc.exe C:/DOCUME~1/luigi/IMPOST~1/Temp/hbmk_mgqfr0.dir/app000.o C:/DOCUME~1/luigi/IMPOST~1/Temp/hbmk_mgqfr0.dir/hbmk_doq1tt.o D:/HMiniGui/HMiniGui3/hmg/resources/hmg.o -mwindows -Wl,--start-group -lhmg -lhbmzip -lhbwin -lhbct -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oapp000.exe -LD:/HMiniGui/Harbour/lib/win/mingw -LD:/HMiniGui/Harbour/bin -LD:/HMiniGui/HMiniGui3/hmg/lib
This error I don't know
D:/HMiniGui/HMiniGui3/hmg/lib/libhmg.a(c_media.o):c_media.c:(.text+0x2d5): undefined reference to `MCIWndCreateA'
I believe these errors are due to the lack of a library. I think about harbour\contrib\hbmzip\3rd\minizip
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x12): undefined reference to `unzClose'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x48): undefined reference to `zipClose'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x7b): undefined reference to `unzOpen'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0xda): undefined reference to `zipOpen'
...............
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x2440): undefined reference to `zipOpenNewFileInZip3'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x24ce): undefined reference to `zipWriteInFileInZip'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x2501): undefined reference to `zipCloseFileInZip'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x2642): undefined reference to `unzGetCurrentFileInfo'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x2688): undefined reference to `unzOpenCurrentFilePassword'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x26d1): undefined reference to `unzReadCurrentFile'
D:/HMiniGui/Harbour/lib/win/mingw/libhbmzip.a(mzip.o):mzip.c:(.text+0x27a4): undefined reference to `unzCloseCurrentFile'
Of corse I can't create exe
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
D:\HMiniGui\Harbour\comp\mingw\bin\gcc.exe C:/DOCUME~1/luigi/IMPOST~1/Temp/hbmk_mgqfr0.dir/app000.o C:/DOCUME~1/luigi/IMPOST~1/Temp/hbmk_mgqfr0.dir/hbmk_doq1tt.o D:/HMiniGui/HMiniGui3/hmg/resources/hmg.o -mwindows -Wl,--start-group -lhmg -lhbmzip -lhbwin -lhbct -lhbextern -lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oapp000.exe -LD:/HMiniGui/Harbour/lib/win/mingw -LD:/HMiniGui/Harbour/bin -LD:/HMiniGui/HMiniGui3/hmg/lib
I remember to you this: I do not use the Harbour compiler distributed with HMG, but I'm using the official distribution - downloaded from sourceforget nightly build - as zipped file format (source and binaries).

I think you have different harbour and/or libraries and/or some others.
If you can, I suggest to you to download in a new directory structure: current harbour nightly (source/binearies compressed) and copy hmg (only source and include directories and lib empty) and then run "<newpath-Harbour-bin>\HBMK2 hmg.hbp" and then use this library.

Else someone can give me help or have an idea? I'm the only one?
Cheers
Luigi from Italy
www.L3W.it
User avatar
Rathinagiri
Posts: 5481
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0.36 (Test 2011-03-22)

Post by Rathinagiri »

Hi Luigi,

1. Had you downloaded and applied the latest patch?

2. Had you added libraries vfw32 and msvfw32 libraries in the link process?

3. Please consider changing buildapp.bat and hmg.hbc according to your directory structure.

For your kind information, I too had downloaded and used the official harbour nightly build dated 2011-03-16.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG 3.0.36 (Test 2011-03-22)

Post by l3whmg »

Hi Rathnagiri,
I'm :D because I solve my problems! Now I can compile HMG and create executable program: HURRA!

Where was the problem? I must insert "<MyInstallPath>\hmg\hmg.hbc" inside my .hbp files. I don't know why.
For example: I have create one personal library (l3w_xxx.a) but I only declare this like an addedd library. I did not have to enter the .hbc file inside .hbp to compile program and use (and I have one .hbc file to generate my personal library).

If someone can tell me why...

Anyway, at this moment I'm :D

Thanks a lot for your great job!

Cheers
Luigi from Italy
www.L3W.it
User avatar
gfilatov
Posts: 1100
Joined: Fri Aug 01, 2008 5:42 am
Location: Ukraine
Contact:

Re: HMG 3.0.36 (Test 2011-03-22)

Post by gfilatov »

rathinagiri wrote:I saw some strange behaviors between 3.0.35 version and 3.0.36 (Test) version. I am illustrating the findings with a picture. Kindly see to it.

Is it ok? Or, why is it like that?
Hi Rathi,

The reason of aboved problem is absent of theme manifest in this demo's resources.

I've adde the following line in the file \hmg\hmg.hbc
sources=\hmg\resources\hmg.o
and this problem disappeared. :idea:
Kind Regards,
Grigory Filatov

"Everything should be made as simple as possible, but no simpler." Albert Einstein
User avatar
l3whmg
Posts: 694
Joined: Mon Feb 23, 2009 8:46 pm
Location: Italy
Contact:

Re: HMG 3.0.36 (Test 2011-03-22)

Post by l3whmg »

Hi Grigory.
Many thanks for your solution. But I have a question for you: when I create my programs, I add my images and for this reason I must compile resource file. To do this I use

Code: Select all

ECHO #define HMGRPATH <hmgpath>\RESOURCES > _hmg_resconfig.h
ECHO #define L3WRPATH <mypath> >>_hmg_resconfig.h
COPY /b <hmgpath>\resources\hmg.rc+<mypathMyRescource>.rc+<hmgpath>\resources\filler _temp.rc >NUL
windres -i _temp.rc -o _temp.o > _reslog.txt 2>&1
and then I add this object to HBMK2.

Adding the file hmg.o to the hmg.hbc, is there some risk (ie duplicating the images distributed by HMG)?

Thanks in advance.

Cheers
Luigi from Italy
www.L3W.it
Ricci
Posts: 255
Joined: Thu Nov 19, 2009 2:23 pm

Re: HMG 3.0.36 (Test 2011-03-22)

Post by Ricci »

Well Grigory, good to have the "flat" design back, but .... all my icons inside the program are gone :(
Last edited by Ricci on Thu Mar 24, 2011 10:22 am, edited 1 time in total.
Post Reply