UEStudio - Harbour 3.1 - BCC

UEStudio - Harbour 3.1 - BCC

Postby frose » Tue Dec 27, 2011 3:14 pm

Hi,

trying to build an app with Harbour and BCC with the following UEStudio application file:

Code: Select all  Expand view
# --------- Harbour y FWH configuration --------
# --- general --------------------------------------
# $P  - project name
# $Pp - path to project directory
# $Pn - project name
# --- compile --------------------------------------
# $I  - input full name
# $Ip - input path
# $In - input name
# $Ie - input extension
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for compiler
# --- build ----------------------------------------
# $T  - target full name
# $Tp - target path
# $Tn - target name
# $O  - output file
# $Op - path to output file
# $On - output filename (without path)
# $Oe - output extension
# $R  - release/debug setting for linker

[Settings]
Target =
Category&01 = DEFAULT RUN CONFIGURATION
Working Directory =.
Command Line Arguments =

Category&02 = Harbour Options
Automatic Memvar Declaration = no|yes
Variables Are Assumed = no|yes
Generate Preprocessed Output = no|yes
Warning Level = 1|2|3|4|0
User Include Path =
User Defines =

Compiler Options =
Linker Options =

Excluded Files = Excludes

[SettingsInfo]
Target = Provides a space for you to specify an output file and location of the program that the linker creates.
Working Directory = Provides a space for you to specify the directory in which executing occurs. If you do not specify a directory, executing occurs in the directory where the executable is located.
Command Line Arguments = Provides a space for you to specify command-line arguments you want to pass to the program at startup.
Compiler Options = Provides a space for you to specify an additional compiler options.
User Defines = Shows the switches the tool will use to build. Use ';' as delimiter.
Linker Options = Provides a space for you to specify an additional linker options.
Excluded Files = This will exclude the file(s) included in this UE project group from the build.

[SettingsReps]
User Defines = @[;|-D%s]
Automatic Memvar Declaration = no=|yes=/a
Variables Are Assumed = no=|yes=/v
Generate Preprocessed Output = no=|yes=/p
User Include Path = ^^@[;|;%s]
User Include Path&1 = ^^@[;| /i%s]
Use Multi Thread Library = no|yes
Warning Level = @/w%s

[Variables]
FWH = c:\fwh
HPATH = C:\hb_bcc
CPATH = C:\Program Files (x86)\Embarcadero\RAD Studio\9.0
SDKPATH = C:\Program Files (x86)\Embarcadero\RAD Studio\9.0

FPATHL = $(FWH)\LIB
# Path for the Harbour-Libs:
HPATHL = $(HPATH)\LIB
CPATHL = $(CPATH)\lib\win32\release
SDKPATHL = $(SDKPATH)\lib\win32\release

HOPT = /n /gc0 /q0 $(Compiler Options) /i$(HPATH)\INCLUDE /i$(FWH)\INCLUDE $(User Include Path&1) $(User Defines) $(Automatic Memvar Declaration) $(Variables Are Assumed) $(Generate Preprocessed Output) $(Warning Level)
COPT = -O2 -M -c -v -I$(HPATH)\INCLUDE -I$(fwh)\INCLUDE

LOPT = -Gn -aa -Tpe -s -v

# Five Win libraries
LIBS1 = $(FWH)\LIB\FiveHX.lib $(FWH)\LIB\FiveHC.lib
# Harbour Libraries
LIBS2 = $(HPATHL)\hbrtl.lib $(HPATHL)\hbvm.lib $(HPATHL)\gtgui.lib $(HPATHL)\gtwin.lib $(HPATHL)\hblang.lib $(HPATHL)\hbmacro.lib $(HPATHL)\hbrdd.lib $(HPATHL)\rddntx.lib $(HPATHL)\rddcdx.lib $(HPATHL)\rddfpt.lib $(HPATHL)\hbsix.lib
LIBS3 = $(HPATHL)\hbdebug.lib $(HPATHL)\hbcommon.lib $(HPATHL)\hbpp.lib $(HPATHL)\hbwin.lib $(HPATHL)\hbcpage.lib $(HPATHL)\hbct.lib $(HPATHL)\xhb.lib $(HPATHL)\hbpcre.lib $(HPATHL)\png.lib $(HPATHL)\hbzlib.lib $(HPATHL)\hbxpp.lib $(HPATHL)\hbziparc.lib
# BCC libraries
LIBS4= $(CPATHL)\cw32.lib $(CPATHL)\import32.lib $(CPATHL)\psdk\odbc32.lib $(CPATHL)\psdk\msimg32.lib $(CPATHL)\psdk\nddeapi.lib $(CPATHL)\psdk\iphlpapi.lib $(CPATHL)\psdk\rasapi32.lib
# 3rd Party libraries
# LIBS6 = [i][b]add any user libs here[/b][/i]
# LIBS = $(LIBS1) $(LIBS2) $(LIBS3) $(LIBS4) $(LIBS5) $(LIBS6)
LIBS = $(LIBS1) $(LIBS2) $(LIBS3) $(LIBS4)

[Environment]
PATH = $(HPATH)\BIN;$(CPATH)\BIN;%PATH%
INCLUDE = $(FWH)\INCLUDE;$(HPATH)\INCLUDE;$(CPATH)\include\windows\crtl;$(SDKPATH)\include\windows\sdk
LIB = $(FPATHL);$(HPATHL);$(CPATHL);$(SDKPATHL)
BuildMode = %UESMode%

[General]
TargetExt = click.exe
ReleaseOut =
DebugOut =
UseFullPaths = 1
UseDosNames = 0
Excludes = $(Excluded Files)
GenerateEDGroup=$(External Dependencies)
.CPP = .C

[MakeCommands]
run = Execute Application
makef = Show Makefile

[Execute Application]
Title = Execute $T
Cmd0 = $(Command Line Arguments)
Depends = $T
ShowWindow = 1
DisplayConsole = 0

[Show Makefile]
Title=Show makefile
Cmd0=uestudio makefile
ShowWindow=0
DisplayConsole=0

[InsertFiles]

[FileGroups]
FGO = .obj;
FGR = .res;
FGL = .lib;
FGD = .def;

[GroupFormats]
FGO = %s
FGR = %s
FGL = %s

[Build]
Out = $T
Depends = $FGO $FGR
DebugFlag =
ReleaseFlag =
#Cmd0 = LINK $(LOPT) $FGO [i][b]yourfile[/b][/i].res $(LIBS)
#Cmd0 = LINK $(LOPT) $FGO fwdbg.res $(LIBS)
#Cmd0 = LINK $(LOPT) $FGO $(LIBS)
Cmd0 = ilink32 $(LOPT) c0w32.obj $FGO, $T,, $(LIBS),, $FGR

[.PRG]
Out = $In.c
DebugFlag = /b
ReleaseFlag = /l
Cmd0 = harbour $I $(HOPT) $R /o$O

IncFiles = 1
CaseSensitive = 0
IncDirs = .;$(INCLUDE);
IncKeyWords = #include;
Comments = /*.*/.//.eol.

[.C]
Out = $In.obj
#Cmd0 = bcc32.exe $(COPT) $I
Cmd0 = $(CPATH)\bin\bcc32 $(COPT) -o$O $I

[.RC]
Out = $In.res
Cmd0 = C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\Bin\rc.exe -r -fo$O $I

IncFiles = 1
CaseSensitive = 0
IncDirs = .;$(INCLUDE);
IncKeyWords = #include;
Comments = /*.*/.//.eol.
 


Compiling is ok, the Linker stops with this message:
Code: Select all  Expand view
Fatal: Datei 'PROGRAM.LIB' kann nicht geöffnet werden

Has somebody an idea whats wrong?
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg

Re: UEStudio - Harbour 3.1 - BCC

Postby ADutheil » Tue Dec 27, 2011 4:37 pm

My guess is it has something to do with the (86) from CPATH = C:\Program Files (x86)... or SDKPATH = C:\Program Files (x86)... My first try would be to copy the libs from LIBS4 to C:\FWH\LIB and change CPATHL = $(CPATH)\lib to CPATHL = $(FWH)\lib
Regards,

André Dutheil
FWH 13.04 + HB 3.2 + MSVS 10
ADutheil
 
Posts: 368
Joined: Sun May 31, 2009 6:25 pm
Location: Salvador - Bahia - Brazil

Re: UEStudio - Harbour 3.1 - BCC

Postby Antonio Linares » Tue Dec 27, 2011 6:23 pm

Frank,

As André is pointing, try to replace all Program Files... ocurrences with %ProgramFiles%...
regards, saludos

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

Re: UEStudio - Harbour 3.1 - BCC

Postby frose » Wed Dec 28, 2011 6:53 pm

Probably there is a double path definition which cause the error, changing from:

Code: Select all  Expand view
LIBS3 = $(CPATHL)\cw32.lib $(CPATHL)\import32.lib $(CPATHL)\psdk\odbc32.lib $(CPATHL)\psdk\msimg32.lib $(CPATHL)\psdk\nddeapi.lib $(CPATHL)\psdk\iphlpapi.lib $(CPATHL)\psdk\rasapi32.lib

to
Code: Select all  Expand view
LIBS3 = cw32.lib import32.lib odbc32.lib msimg32.lib nddeapi.lib iphlpapi.lib rasapi32.lib

solves it.

André, thank you for your tip, it leads me in the right direction.
Windows 11 Pro 22H2 22621.1848
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384
Harbour 3.2.0dev (r2008190002)
FWH 23.10 x86
User avatar
frose
 
Posts: 392
Joined: Tue Mar 10, 2009 11:54 am
Location: Germany, Rietberg


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 90 guests