Page 2 of 2

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 10:56 pm
by cnavarro
Puedes poner el fichero que utilizas para la creacion de la aplicacion?

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:03 pm
by informaticaeloy
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:\Harbour
CPATH = c:\bcc55

HPATHL = $(HPATH)\LIB
CPATHL = $(CPATH)\LIB

HOPT = /n /gc0 /q $(Compiler Options) /i$(HPATH)\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

LOPT = -Gn -aa -Tpe -s -v
LIBS1 = $(FWH)\LIB\FiveH.lib $(FWH)\LIB\FiveHC.lib
LIBS2 =  $(HPATHL)\hbrtl.lib $(HPATHL)\hbvm.lib $(HPATHL)\gtgui.lib $(HPATHL)\hblang.lib $(HPATHL)\hbmacro.lib $(HPATHL)\hbrdd.lib $(HPATHL)\rddntx.lib $(HPATHL)\rddcdx.lib $(HPATHL)\rddfpt.lib $(HPATHL)\hbsix.lib $(HPATHL)\hbdebug.lib $(HPATHL)\hbcommon.lib $(HPATHL)\hbpp.lib $(HPATHL)\hbcpage.lib $(HPATHL)\hbwin.lib $(HPATHL)\xhb.lib $(HPATHL)\hbcplr.lib $(HPATHL)\hbpcre.lib $(HPATHL)\hbct.lib
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 $(CPATHL)\psdk\psapi.lib
LIBS = $(LIBS1) $(LIBS2) $(LIBS3)

[Environment]
PATH = $(HPATH)\BIN;$(CPATH)\BIN;%PATH%
INCLUDE = $(HPATH)\INCLUDE;$(CPATH)\INCLUDE;$(FWH)\INCLUDE
LIB = $(HPATH)\LIB;$(CPATH)\LIB
BuildMode = %UESMode%

[General]
TargetExt = .EXE
ReleaseOut = Release
DebugOut = Debug
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 = $(DCon)

[Show Makefile]
Title=Show makefile
Cmd0=uestudio makefile
ShowWindow=1
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 = ilink32 $(LOPT) $(CPATHL) 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 $(COPT) -o$O $I

[.RC]
Out = $In.res
Cmd0 = brc32 -r -fo$O $I

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

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:08 pm
by cnavarro
Aqui
$(CPATHL) c0w32.obj


te falta \
$(CPATHL)\c0w32.obj

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:17 pm
by informaticaeloy
OK. Funcionó!!! Ahora me da este fallo:
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Fatal: Unable to open file 'UUID.LIB'
menu.EXE - 1 error(es), 0 advertencia(s)

Esta LIB la tengo en c:\bcc55\lib y el fichero ilink.cfg de borland es:
Code: Select all  Expand view
-L"c:\bcc55\lib,C:\harbour\lib"

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:24 pm
by cnavarro
Pon un ; y no , a ver que pasa y añade
-L"c:\Borland\Bcc55\lib; c:\Borland\bcc55\lib\psdk"

Recuerda que tambien esta el fichero Bcc32.cfg

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:29 pm
by cnavarro
Eloy, deberias plantearte usar por lo menos la version 5.82 de Borland

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:34 pm
by informaticaeloy
Hola.
Si pongo
Code: Select all  Expand view
-L"c:\bcc55\lib, C:\harbour\lib, c:\bcc55\lib\psdk"
 

sigue saliendo el mismo error:
Fatal: Unable to open file 'UUID.LIB'

y si pongo los ; en lugar de , sale esto:
Code: Select all  Expand view
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_png_get_io_ptr' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_read_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_read_fn' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_info' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_valid' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_tRNS_to_alpha' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_gray_to_rgb' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_bgr' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_strip_16' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_IHDR' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_update_info' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_channels' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_rowbytes' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_image' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_destroy_read_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_sig_cmp' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_write_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_info_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_longjmp_fn' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_IHDR' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_malloc' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_init_io' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_rows' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_write_png' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_free' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_destroy_write_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
menu.EXE - 26 error(es), 0 advertencia(s)
 


el borland que uso es la 5.8.2:
Borland C++ 5.82 for Win32 Copyright (c) 1993, 2005 Borland

aunque sobreescribí encima de la carpeta bcc55

Gracias.

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:39 pm
by cnavarro
Has de dejar los ; y añadir en las librerias del linkado la libreria Png.lib
A ver que tal

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:45 pm
by cnavarro
Tambien te hara falta seguramente añadir la libreria hbzlib.lib

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:52 pm
by informaticaeloy
Siiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii

He añadido la PNG.LIB y la HBZLIB.LIB en los PATH de las LIBS en el fichero application:
Code: Select all  Expand view
LIBS2 =  $(HPATHL)\hbrtl.lib $(HPATHL)\hbvm.lib $(HPATHL)\gtgui.lib $(HPATHL)\hblang.lib $(HPATHL)\hbmacro.lib $(HPATHL)\hbrdd.lib $(HPATHL)\rddntx.lib $(HPATHL)\rddcdx.lib $(HPATHL)\rddfpt.lib $(HPATHL)\hbsix.lib $(HPATHL)\hbdebug.lib $(HPATHL)\hbcommon.lib $(HPATHL)\hbpp.lib $(HPATHL)\hbcpage.lib $(HPATHL)\hbwin.lib $(HPATHL)\xhb.lib $(HPATHL)\hbcplr.lib $(HPATHL)\hbpcre.lib $(HPATHL)\hbct.lib $(HPATHL)\hbzlib.lib
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 $(CPATHL)\psdk\psapi.lib $(CPATHL)\png.lib
LIBS = $(LIBS1) $(LIBS2) $(LIBS3)
 


poniendo el ilink32.cfg:
Code: Select all  Expand view
-L"c:\bcc55\lib; C:\harbour\lib; c:\bcc55\lib\psdk"
 


y ahora la esperada respuesta:

--------------------Configuración: fuentes - Release--------------------
Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
menu.EXE - 0 error(es), 0 advertencia(s)


Muchas gracias. Os debo una, gracias !!!

Re: Primeros minutos con FWH

PostPosted: Sun Dec 22, 2013 11:55 pm
by cnavarro
Me alegro Eloy
Por aqui seguiremos si no nos toca la loteria

Re: Primeros minutos con FWH

PostPosted: Mon Dec 23, 2013 8:57 am
by Antonio Linares
elimina lib.obj de todo el proyecto. Si aparece ese error es que aun intenta enlazarlo

Re: Primeros minutos con FWH

PostPosted: Mon Dec 23, 2013 10:30 am
by informaticaeloy
Gracias Antonio, ayer por la noche me recomendó una serie de pistas cnavarro y conseguí mi primer exe. Gracias.