Harbour - Using MingW

Harbour - Using MingW

Postby toninhofwi » Sun Aug 14, 2016 8:04 pm

Hi friends, this is a very little guide to use Harbour and FWH with Mingw32.

1) Download Harbour from:

https://github.com/harbour/core
or
https://github.com/vszakats/harbour-core

2) Download and install https://cygwin.com/install.html (64bit)

3) Download and install MSYS2 from https://msys2.github.io

--------------------------------------------------------------------------------

1) Start MSYS2
2) Update mirrors: pacman -S pacman-mirrors
3) Update MSYS2 system: pacman -Syu
4) Update MSYS2 system: pacman -Su
5) Install mingw: pacman -S VCS base-devel msys2-devel mingw-w64-{i686,x86_64}-toolchain

Use all in default (press enter in all choices)

--------------------------------------------------------------------------------

Compile fresh harbour-core using:

set PATH=c:\msys64\mingw32\bin;%PATH%
set HB_INSTALL_PREFIX=c:\harbour-install
win-make

--------------------------------------------------------------------------------

To compile samples from FWH I found problems with RC files but RES files Works perfect so,
use BRC32 to compile .RC into .RES files and use it in mingw32

--------------------------------------------------------------------------------

Here is my buildg.bat used to compile FWH samples: http://www.xtl.com.br/toninho/buildg.bat

In this .bat file I'm recompiling xbrowse and dababase from FWH because I found some function names incompatibilities with hashes.

I'm using BRC32, so you need brc32.exe, brcc32.exe and rw32core.dll from bcc 7.10 or another resource compiler.


Regards,

Toninho.
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am

Re: Harbour - Using MingW

Postby nageswaragunupudi » Mon Aug 15, 2016 5:05 am

In this .bat file I'm recompiling xbrowse and dababase from FWH because I found some function names incompatibilities with hashes.

May we know what are the incompatibilities and what do you suggest?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10632
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Harbour - Using MingW

Postby Antonio Linares » Mon Aug 15, 2016 9:14 am

Toninho,

I use the MinGW distribution that comes with QT.

It installs automatically and quite friendly.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42094
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Harbour - Using MingW

Postby toninhofwi » Mon Aug 15, 2016 11:54 am

Antonio Linares wrote:Toninho,
I use the MinGW distribution that comes with QT.
It installs automatically and quite friendly.


Hi Antônio, nice !!! One more alternative for us !
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am

Re: Harbour - Using MingW

Postby toninhofwi » Mon Aug 15, 2016 12:00 pm

nageswaragunupudi wrote:
In this .bat file I'm recompiling xbrowse and dababase from FWH because I found some function names incompatibilities with hashes.

May we know what are the incompatibilities and what do you suggest?


Hi, Problem with HSetCaseMatch()/HB_HCaseMatch(), but recompiling the prg
no problems at all.
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am

Re: Harbour - Using MingW

Postby toninhofwi » Fri Aug 19, 2016 9:54 pm

Times of speedtst.prg:

BCC 7.20 no cLang version:
[ total application time: ]....................................15.52
[ total real time: ]...........................................15.52

MingW32 6.1.0 from MSYS2:
[ total application time: ].....................................9.77
[ total real time: ]............................................9.81

Regards.
Last edited by toninhofwi on Sun Aug 21, 2016 1:53 pm, edited 1 time in total.
toninhofwi
 
Posts: 172
Joined: Tue Oct 18, 2005 10:01 am



Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 79 guests