Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?

Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?

Postby hua » Mon Jul 11, 2011 8:09 am

Anyone has any sample .hbp to compile app using MingW+Harbour+FWH+hbmk2 ?

TIA
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?

Postby hua » Mon Jul 11, 2011 8:24 am

So far using fwh\samples\buildg.bat to build any of the samples is unsuccessful :(
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?

Postby Antonio Linares » Mon Jul 11, 2011 9:10 am

Hua,

Using this Harbour for MinGW:
http://harbour-and-xharbour-builds.googlecode.com/files/harbour_mingw_20110711.zip

And this samples\buildg.bat, it works fine except that AlphaBlend() external is not solved:
Code: Select all  Expand view
@ECHO OFF
CLS
ECHO ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO ³ FiveWin for Harbour 11.06 and GCC - Jun. 2011   Harbour development power  ³Ü
ECHO ³ (c) FiveTech, 1993-2011    for Microsoft Windows  9X/NT/200X/ME/XP/Vista/7 ³Û
ECHO ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙÛ
ECHO ÿ ßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßßß

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

ECHO Compiling...

set hdir=%HBDIR%
set hdirc=%hdir%\bin\harbour.exe
set hlibs=%hdir%\lib\gcc
set fwh=c:\fwteam
set mingw=c:\mingw
set path=c:\mingw\bin

%hdirc% %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
@type comp.log

%mingw%\bin\gcc -c %1.c -o%1.o -I%hdir%\include -I%mingw%\include -Wall
IF ERRORLEVEL 1 GOTO COMPILEERROR

if exist %1.rc %mingw%\bin\windres -D__FLAT__ -DDIALOG=DIALOGEX -i%1.rc -o_%1.o
IF ERRORLEVEL 1 GOTO RESOURCESERROR

if not exist %1.rc %mingw%\bin\gcc -o%1.exe %1.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lwinspool -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -loleaut32 -luuid -lwinmm -lvfw32 -lwsock32 -lmsimg32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -Wl,--end-group
if exist %1.rc %mingw%\bin\gcc -o%1.exe %1.o _%1.o -Wall -s -mwindows -L%mingw%\lib -L%hlibs% -L%fwh%\lib -mno-cygwin -Wl,--start-group -lfivehg -lfivehgc -lgtgui -luser32 -lwinspool -lcomctl32 -lcomdlg32 -lgdi32 -lole32 -loleaut32 -luuid -lwinmm -lvfw32 -lwsock32 -lmsimg32 -lhbcommon -lhbcpage -lhbcplr -lhbct -lhbhsx -lhblang -lhbmacro -lhbmainstd -lhbmzip -lodbc32 -lhbpcre -lhbpp -lhbrdd -lhbrtl -lhbsix -lhbsqlit3 -lhbtip -lhbusrrdd -lhbvm -lhbwin -lhbzlib -lrddcdx -lrddfpt -lrddntx -lxhb -Wl,--end-group

IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
%1
rem delete temporary files
@del %1.c
@if exist %1.rc del _%1.o
GOTO EXIT
ECHO

:RESOURCESERROR
ECHO * Resources errors *
GOTO EXIT

:COMPILEERROR
@type comp.log
ECHO * Compile errors *
GOTO EXIT

:LINKERROR
ECHO * Link errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: Buildg [Program]     {-- No especifiques la extensi¢n PRG
ECHO                                 {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:EXIT
regards, saludos

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

Re: Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?

Postby hua » Mon Jul 11, 2011 10:03 am

That's good to know. I'll try redownloading the latest MingW, run a svn update for Harbour source and retry everything again.

Your buildg.bat also seems to be newer than mine by having the following additional libs:
i. hbclipsm
ii. hbhpdf
iii. hbmisc
iv. hbnf
v. hbodbc

Thanks Antonio.
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am

Re: Anyone has any mingw+harbour+hbmk2+fwh .hbp sample?

Postby hua » Tue Jul 12, 2011 1:27 am

Still couldn't make it work. I compiled Harbour from r16910 using MingW 4.5.2.

Here's the error I get even after using the latest buildg.bat
Code: Select all  Expand view

rbdesign.o:rbdesign.c:(.data+0x798): undefined reference to `HB_FUN_CHOOSEGRADIENT'
j:\harbour\fwh\lib/fivehg.lib(CONTROL.o):CONTROL.c:(.data+0xe78): undefined reference to `HB_FUN_APPHASMANIFEST'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x198): undefined reference to `HB_FUN_REDLLVERSION'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1b8): undefined reference to `HB_FUN_REGETPARAFORMAT'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1d8): undefined reference to `HB_FUN_REGETBULLET'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1e8): undefined reference to `HB_FUN_REGETCHARFORMAT'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x208): undefined reference to `HB_FUN_REGETHIGHLIGHT'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x278): undefined reference to `HB_FUN_REGETNUMBERING'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x2d8): undefined reference to `HB_FUN_REGETZOOM'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x398): undefined reference to `HB_FUN_REINSERTPICTURE'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x438): undefined reference to `HB_FUN_RELEN'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x4c8): undefined reference to `HB_FUN_REPAGEBREAK'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x4f8): undefined reference to `HB_FUN_REPASTESPECIAL'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x578): undefined reference to `HB_FUN_RESAVEASRTF'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x628): undefined reference to `HB_FUN_RESETFONTNAME'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x638): undefined reference to `HB_FUN_RESETFONTSIZE'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x658): undefined reference to `HB_FUN_RESETHIGHLIGHT'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x688): undefined reference to `HB_FUN_RESETOLEINIT'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x6a8): undefined reference to `HB_FUN_RESETOLECALLBACK'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x6b8): undefined reference to `HB_FUN_REGETOLEINTERFACE'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x6d8): undefined reference to `HB_FUN_RESETPOS'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x6f8): undefined reference to `HB_FUN_RESETSELECTION'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x718): undefined reference to `HB_FUN_RESETTEXTCOLOR'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x728): undefined reference to `HB_FUN_RESETZOOM'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xaf8): undefined reference to `HB_FUN_RESETCHARFORMAT'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xc78): undefined reference to `HB_FUN_REFINDTEXT'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xcb8): undefined reference to `HB_FUN_REGETINDENT'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xce8): undefined reference to `HB_FUN_REGETPARAGRAPH'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xd28): undefined reference to `HB_FUN_REGETSELECTION'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xd78): undefined reference to `HB_FUN_LOCKWINDOWUPDATE'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xf38): undefined reference to `HB_FUN_RELOADASRTF'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0xfc8): undefined reference to `HB_FUN_REGETNMHDRLINK'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1058): undefined reference to `HB_FUN_REPREVIEW'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x10a8): undefined reference to `HB_FUN_REPRINT'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1108): undefined reference to `HB_FUN_REPRINTBOX'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x12c8): undefined reference to `HB_FUN_RESETPARAFORMAT'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x12d8): undefined reference to `HB_FUN_RESETATTRIBUTE'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x12e8): undefined reference to `HB_FUN_RESETAUTOURLDETECT'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x12f8): undefined reference to `HB_FUN_RESETBULLET'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1328): undefined reference to `HB_FUN_RESETINDENT'

j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1338): undefined reference to `HB_FUN_RESETNUMBERING'
j:\harbour\fwh\lib/fivehg.lib(TRICHEDI.o):TRICHEDI.c:(.data+0x1348): undefined reference to `HB_FUN_RESETPARAGRAPH'

j:\harbour\fwh\lib/fivehg.lib(RPREVIEW.o):RPREVIEW.c:(.data+0x12e8): undefined reference to `HB_FUN_WINWORDOBJ'
j:\harbour\fwh\lib/fivehgc.lib(BRUSHES.o):BRUSHES.C:(.text+0x23f3): undefined reference to `AlphaBlend'

 


It's kinda perplexing as libmsimg32.a and libcomctl32.a have been linked-in and should have resolved all of this.

Saving a link of a post that might be related
FWH 11.08/FWH 19.12
BCC5.82/BCC7.3
xHarbour/Harbour
hua
 
Posts: 1072
Joined: Fri Oct 28, 2005 2:27 am


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 86 guests