HMG 3.0.44 compiles and works under Wine 1.5 and REACTOS

HMG en Español

Moderator: Rathinagiri

Post Reply
klauskugel
Posts: 90
Joined: Tue Oct 09, 2012 2:28 pm

HMG 3.0.44 compiles and works under Wine 1.5 and REACTOS

Post by klauskugel »

Mydbu_reactos.png
Mydbu_reactos.png (275.29 KiB) Viewed 4291 times

Code: Select all

SET HMGPATH=
SET PATH=
set runafterbuild=.t.
set gtdrivers=-gtgui -gtwin
SET HMGPATH=c:\hmg.3.0.44
rem =%~dp0
SET PATH=c:\hmg.3.0.44\harbour\bin;c:\hmg.3.0.44\mingw\bin;%PATH%

rem echo #define HMGRPATH c:\hmg.3.0.44\resources > _hmg_resconfig.h  
rem COPY /b c:\hmg.3.0.44\resources\hmg.rc + %~n1.rc + c:\hmg.3.0.44\resources\filler _temp.rc >NUL

rem ---
c:\hmg.3.0.44\mycopy %~n1.rc
rem ---

windres -i _temp.rc -o _temp.o


HBMK2 -mt -o%~n1.exe c:\hmg.3.0.44\hmg.hbc %gtdrivers% %1

if "%runafterbuild%"==".t." if exist %~1.exe %~1.exe
// mycopy.exe looks like this and works from commandline build.bat in hmg-root
// with wine 1.5 and reactos version ( based on wine 1.3.x ) bootcd-56234-dbgwin.iso
// I hope this is noteworthy for some of HMGiants.

Code: Select all

#include "minigui.ch"  // 2.9.5

func main
para myfile
local buffer:=space(300)
local xx:=1
fin=fopen("c:\hmg.3.0.44\resources\hmg.rc")
fout=fcreate("_temp.rc",3)
do while (xx> 0)
          xx:=fread(fin,@buffer,256)
          fwrite(fout,@buffer,xx)
enddo
fclose(fin)
//------------
fin=fcreate("_hmg_resconfig.h",3)
fwrite(fin,"#define HMGRPATH c:\hmg.3.0.44\resources   ",42)
fclose(fin)
//--------------
xx:=1
if file(myfile)
          if filesize( myfile )> 10
          fin=fopen(myfile)
          do while (xx> 0)
          xx:=fread(fin,@buffer,256)
          fwrite(fout,@buffer,xx)
          enddo
          fclose(fin)   
          endif
endif

fwrite(fout,chr(13)+chr(10),2)
fclose(fout)

return nil
// Just a quick and dirty approach.

so if you substitute c:\hmg.3.0.44\build.bat with the above and comple the little mycopy.exe
you can compile from CmdLine with c:\hmg.3.0.44\build.bat

The IDE works but I can't compile yet.
Happy HMGing :D

KlausKugel
Attachments
compile_tutor19.png
compile_tutor19.png (264.98 KiB) Viewed 4291 times
User avatar
Rathinagiri
Posts: 5480
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: HMG 3.0.44 compiles and works under Wine 1.5 and REACTOS

Post by Rathinagiri »

KlausKugel, that looks so pretty and simple. Thanks a lot for your effort.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
klauskugel
Posts: 90
Joined: Tue Oct 09, 2012 2:28 pm

Re: HMG 3.0.44 compiles and works under Wine 1.5 and REACTOS

Post by klauskugel »

download the actual daily build http://iso.reactos.org/bootcd/bootcd-57639-dbgwin.7z
P7zip or 7zip (Windows) to unzip the ISO-CD.

Create the raw image -> qemu-img create -f raw react4.hdd 5G
qcow2
qed
-f raw image in clusters, qcow2 - qemu used format to save space , qed - new qemu-format but faster+save space
raw means that empty clusters are stored too.

kvm -cpu core2duo -m 4096 -vga std -cdrom bootcd-57639-dbgwin.iso -hda react4.hdd -net nic,model=rtl8139 -net user -boot d

-boot d = boot from CD/DVD
-cpu core2duo = set cpu pentium3,pentium2,phenom,Opteron_G1....
-m 4096 = RAM in Megabytes
-hda react4.hdd = use raw-img created with qemu-img
-net nic,model = rtl8139 -Realtek 10/100Mbit, ne2kisa -Novell Ne2000-compatible, e1000 - Intel EthernetPro 10/100/1000 Mbit
-net user = connect to outside Network to surf ...
-vga std = use Standard vga, cirrus=GD54.., vmware=VmWAre Vga II 16Mbyte

KVM/Qemu uses a rather old board from the old Pentium3-ages TRITON/NATOMA chipset
USB 2.0 is possible with KVM Qemu 1.0 upward to see more
at www.linux-kvm.com


Anyway VirtualBox 4.1.1.8 under Windows does the same and is based on QEMU/KVM.
And even Citrix Xen uses Qemu/KVM knowledge.

No magic. Just a lovely tool to test without using old PC's.

Qemu/KVM is just what everyone needs.
And it works with almost anything.
Even ARM and PowerPC-Cpu's are emulated.

Have a look here

http://dietpc.org/downloads/virtual_machines/

Paul Whittaker has a great page about Linux /ARM or Linux PPC
for the Windows-Users of Qemu.

http://wiki.qemu.org/Download




Hope the explanation helped somewhat.

Happy HMGing. ;)

klauskugel

P.S. Processors emulated with KVM

kvm -cpu ?
x86 Opteron_G3
x86 Opteron_G2
x86 Opteron_G1
x86 Nehalem
x86 Penryn
x86 Conroe
x86 [n270]
x86 [athlon]
x86 [pentium3]
x86 [pentium2]
x86 [pentium]
x86 [486]
x86 [coreduo]
x86 [kvm32]
x86 [qemu32]
x86 [kvm64]
x86 [core2duo]
x86 [phenom]
x86 [qemu64]
User avatar
danielmaximiliano
Posts: 2625
Joined: Fri Apr 09, 2010 4:53 pm
Location: Argentina
Contact:

Re: HMG 3.0.44 compiles and works under Wine 1.5 and REACTOS

Post by danielmaximiliano »

Many years ago I look ReactOS development, every so often I see it grow and much work as wxp .
I am very happy have a free OS like Gnu/Linux.
congratulations

Hace muchos años miro el desarrollo de Reactos, cada tanto veo como crece y muchas cosas funcionan como en Wxp me alegra mucho tener un S.O libre como Linux.
Felicitaciones
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*

Saludos / Regards
DaNiElMaXiMiLiAnO

Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Post Reply