Page 1 of 1

Borland make sample doesn't work

PostPosted: Wed Jul 23, 2008 6:39 pm
by hag
Tried using bormake.zip rmk file it doesn't work

Message i get: .PRG: not recognized etc. etc.

If I comment it out ,PRG: I get "can't find alert.exe."

Please let me know whats happening.
Using files one.prg, alert.prg.


code:
#Borland make sample, (c) FiveTech Software 2005

HBDIR=F:\harbour
BCDIR=c:\Borland\bcc55
FWDIR=F:\fwh

#change these paths as needed

.path.OBJ = .\obj
.path.PRG = .\
.path.CH = $(FWDIR)\include;$(HBDIR)\include
.path.C = .\
.path.rc = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG = \
alert.PRG \
one.PRG

# C = \
# two.C

PROJECT : Alert.exe

Alert.exe : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) Alert.res

echo off
echo $(BCDIR)\lib\c0w32.obj + > b32.bc
echo obj\alert.obj obj\one.obj, + >> b32.bc
echo alert.exe, + >> b32.bc
echo alert.map, + >> b32.bc

echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc

echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\hblang.lib + >> b32.bc
echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc


#rem Uncomment these two lines to use Advantage RDD
#rem echo $(HBDIR)\lib\b32\rddads.lib + >> b32.bc
#rem echo $(HBDIR)\lib\b32\Ace32.lib + >> b32.bc

echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc

IF EXIST Alert.res echo Alert.res >> b32.bc
ECHO $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc

del b32.bc

.PRG.OBJ:

#$(HBDIR)\bin\b32\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include

$(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

.C.OBJ:

echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp

Alert.res : Alert.rc
$(BCDIR)\bin\brc32.exe -r Alert.rc

end code.

PostPosted: Thu Jul 24, 2008 10:49 am
by Antonio Linares
Harvey,

Do you use Harbour or xHarbour ?

That make file is for Harbour. You have to implement some easy modifications to adapt it to xHarbour.

We can help you on that

Sample Script for xHARBOUR

PostPosted: Thu Jul 24, 2008 11:13 am
by ukoenig
Hello Harvey,

my sample script in a toppic before works for xHarbour.
I use and modify it for new applications.
I think, you didn't try it ?

Once again with your changes :

Code: Select all  Expand view

1. create a batchfile :  GO.bat
----------------------------------

IF not exist obj md obj
c:\borland\bcc55\bin\make -f PROGFILE.rmk

2. create a file PROGFILE.rmk
----------------------------------

#Borland make sample, (c) FiveTech Software 2005

# your BORLAND, HARBOUR and FWH directorys
--------------------------------------------------------


HBDIR=F:\harbour
BCDIR=c:\Borland\bcc55
FWDIR=F:\fwh

.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

# the list of the PRG-files ( PRG has to be uppercase )
//
------------------------------------------------------------


PRG = \
Alert.PRG \
One.PRG

// the same with c-files if needed
// -----------------------------------

# C =          \
# two.C

PROJECT    : ALERT.exe

// the resource-file
// -------------------

ALERT.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) ALERT.res
echo off
echo $(BCDIR)\bin\c0w32.obj + > b32.bc

# OBJ-Liste
# -------------
echo obj\Alert.obj \
obj\One.obj, + >> b32.bc

echo ALERT.exe, + >> b32.bc
echo ALERT.map, + >> b32.bc

# Fivewin Lib`s für xHARBOUR
# --------------------------------------

echo $(FWDIR)\lib\Fivehx.lib $(FWDIR)\lib\FiveHC.lib +
>> b32.bc

# xHARBOUR-Lib`s
# -----------------------

echo $(HBDIR)\lib\rtl.lib + >> b32.bc
echo $(HBDIR)\lib\vm.lib + >> b32.bc
echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
echo $(HBDIR)\lib\lang.lib + >> b32.bc
echo $(HBDIR)\lib\macro.lib + >> b32.bc
echo $(HBDIR)\lib\rdd.lib + >> b32.bc
echo $(HBDIR)\lib\dbfntx.lib + >> b32.bc
echo $(HBDIR)\lib\dbfcdx.lib + >> b32.bc
echo $(HBDIR)\lib\dbffpt.lib + >> b32.bc
echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
echo $(HBDIR)\lib\debug.lib + >> b32.bc
echo $(HBDIR)\lib\common.lib + >> b32.bc
echo $(HBDIR)\lib\pp.lib + >> b32.bc
echo $(HBDIR)\lib\codepage.lib + >> b32.bc
echo $(HBDIR)\lib\pcrepos.lib + >> b32.bc

# Uncomment these two lines to use Advantage RDD
# echo $(HBDIR)\lib\rddads.lib + >> b32.bc
# echo $(HBDIR)\lib\Ace32.lib + >> b32.bc

echo $(BCDIR)\lib\cw32.lib + >> b32.bc
echo $(BCDIR)\lib\import32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc


IF EXIST ALERT.res echo ALERT.res >> b32.bc
$(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s -v @b32.bc
#   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
del b32.bc

.PRG.OBJ:
$(HBDIR)\bin\harbour $< /N /W /Oobj\
/I$(FWDIR)\include;$(HBDIR)\include > clip.log
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$&
obj\$&.c

.C.OBJ:
echo -c -tWM -D__HARBOUR__ -DHB_API_MACROS > tmp
echo -I$(HBDIR)\include;$(FWDIR)\include >> tmp
$(BCDIR)\bin\bcc32 -oobj\$& @tmp $&.c
del tmp

ALERT.res : ALERT.rc
$(BCDIR)\bin\brc32.exe -r ALERT.rc




Best Regards
Uwe :lol:

PostPosted: Thu Jul 24, 2008 4:51 pm
by hag
Reinstalled Harbour. Doesn't come with the dbfntx,dbcfcdx,dbfftp.
I copied them in from my clipper lib's. Is this OK?
Or do I need newer files?
I notive xhourbor come with the files.

Am I missing something?


Antonio and Uwe my code is for Harbour. Exactly as the code sent converted to harbour.

Strange error message when compling

unresolved external "AlphaBlend" refrenced from f:fwh\lib\fivehc.lib|brushes

PostPosted: Thu Jul 24, 2008 5:11 pm
by Antonio Linares
Harvey,

> Reinstalled Harbour. Doesn't come with the dbfntx,dbcfcdx,dbfftp.

Libraries names have been changed. Names are in the make file or in samples\buildh.bat. Look for hb...lib and rdd...lib

> I copied them in from my clipper lib's. Is this OK?

No! Never! :-) You can't mix 16 and 32 bits libraries.

> Or do I need newer files?

Use the ones provided in our Harbour.exe setup \lib folder.

>
Strange error message when compling

unresolved external "AlphaBlend" refrenced from f:fwh\lib\fivehc.lib|brushes
>

You have to link Borland msimg32.lib too

PostPosted: Thu Jul 24, 2008 6:48 pm
by hag
Antonio:
Thanks for the quick response.
My stupidity...I'll fix everything when I leave work and let you know.

By the way I really like the txbrowse. looks and works great.

PostPosted: Thu Jul 24, 2008 11:55 pm
by hag
I'm getting frustrated using the .rmk file.

The program stops at .PRG.OBJ:
If I comment out #PRG.OBJ:

I get the error message below.
I'm compiling alert.prg and one.prg fropm the samples. Nothing in the prgs looks out of order.

Please HELP. :(

ERROR MESSAGE:

Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x02'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x04'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x0f'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0001 Illegal character: '\x00'
Alert.exe(1) Error E0030 Syntax error: "syntax error at ''"

PostPosted: Fri Jul 25, 2008 12:39 am
by Antonio Linares
Harvey,

We have modified bormake.zip to use the current Harbour libraries names, tested here and working fine.

We have already emailed all files to you :-)

PostPosted: Fri Jul 25, 2008 5:47 am
by hag
Antonio:

Got the files and working great on alert....

Tried linking my own file which includes a xbrowse.ch was working fine with buildh.bat.

With the bormake i get an error message missing function "toleauto". According to the 'Whats new" file it is a required lib. and needs to be linked. It said was included in buildh. Can't find the library.

Need the library or some kind of fix.
Thanks for you quick help in these matters.

PostPosted: Fri Jul 25, 2008 7:39 am
by Antonio Linares
Harvey,

You have to link Harbour hbw32.lib

PostPosted: Fri Jul 25, 2008 4:36 pm
by hag
it works :D