ApplicationVS para UEstudio

ApplicationVS para UEstudio

Postby acuellar » Tue Nov 30, 2021 11:48 pm

Estimados

Me sale éste error con Visual Studio 2019
Code: Select all  Expand view  RUN

--------------------Configuración: ACR - Release--------------------
Harbour 3.2.0dev (r1904111533)
Copyright (c) 1999-2019, https://harbour.github.io/
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30133 for x86
Copyright (C) Microsoft Corporation.  All rights reserved.
ACR.c
El sistema no puede encontrar la ruta especificada.
LINK : fatal error LNK1181: cannot open input file 'ACR.res'
ACR.EXE - 1 error(es), 0 advertencia(s)
 


éste es Application
Code: Select all  Expand view  RUN

# --------- 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 = D:\SISTEMAS\COMPILER\FWH
HPATH = D:\SISTEMAS\COMPILER\HarbourVS
VSPATH = D:\Sistemas\Compiler\VS2019

HPATHL = $(HPATH)\LIB
VSPATHL = $(VSPATH)\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 = -TP -W3 -c -I$(HPATH)\INCLUDE
LOPT = /nologo /subsystem:windows /force:multiple /NODEFAULTLIB:libc

LIBS1 = $(FWH)\LIB\FiveH32.lib $(FWH)\LIB\FiveHC32.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)\xhb.lib $(HPATHL)\png.lib $(HPATHL)\hbzlib.lib $(HPATHL)\hbcpage.lib $(HPATHL)\hbwin.lib $(HPATHL)\hbct.lib $(HPATHL)\hbcplr.lib $(HPATHL)\hbpcre.lib
LIBS3 = $(VSPATHL)\kernel32.lib $(VSPATHL)\user32.lib $(VSPATHL)\gdi32.lib $(VSPATHL)\winspool.lib $(VSPATHL)\comctl32.lib $(VSPATHL)\comdlg32.lib $(VSPATHL)\advapi32.lib $(VSPATHL)\shell32.lib $(VSPATHL)\ole32.lib $(VSPATHL)\oleaut32.lib $(VSPATHL)\uuid.lib $(VSPATHL)\odbc32.lib $(VSPATHL)\odbccp32.lib $(VSPATHL)\iphlpapi.lib $(VSPATHL)\mpr.lib $(VSPATHL)\version.lib $(VSPATHL)\wsock32.lib $(VSPATHL)\msimg32.lib $(VSPATHL)\oledlg.lib $(VSPATHL)\psapi.lib $(VSPATHL)\gdiplus.lib $(VSPATHL)\winmm.lib
LIBS = $(LIBS1) $(LIBS2) $(LIBS3)

[Environment]
PATH = $(HPATH)\BIN;$(VSPATH)\BIN;%PATH%
INCLUDE = $(FWH)\INCLUDE;$(HPATH)\INCLUDE;$(VSPATH)\INCLUDE
LIB = $(HPATHL);$(VSPATHL);$(FWH)\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 = 0

[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 = $(VSPATH)\BIN\LINK $(LOPT) $FGO $FGR $(LIBS1) $(LIBS2) "$(VSPATHL)"\kernel32.lib "$(VSPATHL)"\user32.lib "$(VSPATHL)"\gdi32.lib "$(VSPATHL)"\winspool.lib "$(VSPATHL)"\comctl32.lib "$(VSPATHL)"\comdlg32.lib "$(VSPATHL)"\advapi32.lib "$(VSPATHL)"\advapi32.lib "$(VSPATHL)"\shell32.lib "$(VSPATHL)"\ole32.lib "$(VSPATHL)"\oleaut32.lib "$(VSPATHL)"\uuid.lib "$(VSPATHL)"\odbc32.lib "$(VSPATHL)"\odbccp32.lib "$(VSPATHL)"\iphlpapi.lib "$(VSPATHL)"\mpr.lib "$(VSPATHL)"\version.lib "$(VSPATHL)"\wsock32.lib "$(VSPATHL)"\msimg32.lib "$(VSPATHL)"\oledlg.lib "$(VSPATHL)"\psapi.lib "$(VSPATHL)"\gdiplus.lib "$(VSPATHL)"\winmm.lib
[.PRG]
Out = $In.c
DebugFlag = /b
ReleaseFlag =
Cmd0 = $(HPATH)\BIN\harbour $I $(HOPT) $R /o$O

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

[.C]
Out = $In.obj
Cmd0 = $(VSPATH)\BIN\cl.exe $(COPT) $I

[.RC]
Out = $In.res
Cmd0 = $(SDKPATH)\bin\rc -r -fo$O $I

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


Con BCC compila bien, También con GO.BAT
Code: Select all  Expand view  RUN

 @ECHO OFF
CLS

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

if "%FWDIR%" == "" set FWDIR=D:\Sistemas\Compiler\FWH
if "%HBDIR%" == "" set HBDIR=D:\Sistemas\Compiler\HarbourVS

set GT=gtgui

set HDIRLIB=%HBDIR%\lib
set VCDIR=D:\Sistemas\Compiler\VS2022
set VCDIRBIN=%VCDIR%\bin
set VCDIRLIB=%VCDIR%\lib

ECHO Compiling...

%HBDIR%\bin\harbour %1 /n /w /p /i%FWDIR%\include;%HBDIR%\include /d__FLAT__ %2 %3 > comp.log 2> warnings.log
IF ERRORLEVEL 1 GOTO COMPILEERROR
@type comp.log
@type warnings.log
Echo Pasa
%VCDIRBIN%\cl.exe -nologo -TC -W3 -c /GS- /I%VCDIR%\include /I%HBDIR%\include /GA %1.c
IF ERRORLEVEL 1 GOTO COMPILEERROR

IF EXIST %1.rc %VCDIRBIN%\rc -nologo -r -d__FLAT__ -I%VCDIR%\include %1
IF ERRORLEVEL 1 GOTO RESOURCESERROR

echo %1.obj                    > msvc.tmp

echo %FWDIR%\lib\fiveh32.lib %FWDIR%\lib\fivehc32.lib >> msvc.tmp
echo %HDIRLIB%\hbrtl.lib        >> msvc.tmp
echo %HDIRLIB%\hbvm.lib         >> msvc.tmp
echo %HDIRLIB%\%GT%.lib         >> msvc.tmp
echo %HDIRLIB%\hblang.lib       >> msvc.tmp
echo %HDIRLIB%\hbmacro.lib      >> msvc.tmp
echo %HDIRLIB%\hbrdd.lib        >> msvc.tmp
echo %HDIRLIB%\rddntx.lib       >> msvc.tmp
echo %HDIRLIB%\rddcdx.lib       >> msvc.tmp
echo %HDIRLIB%\rddfpt.lib       >> msvc.tmp
echo %HDIRLIB%\hbsix.lib        >> msvc.tmp
echo %HDIRLIB%\hbdebug.lib      >> msvc.tmp
echo %HDIRLIB%\hbcommon.lib     >> msvc.tmp
echo %HDIRLIB%\hbpp.lib         >> msvc.tmp
echo %HDIRLIB%\hbcpage.lib      >> msvc.tmp
echo %HDIRLIB%\hbwin.lib        >> msvc.tmp
echo %HDIRLIB%\hbcplr.lib       >> msvc.tmp
echo %HDIRLIB%\hbpcre.lib       >> msvc.tmp
echo %HDIRLIB%\hbct.lib         >> msvc.tmp
echo %HDIRLIB%\xhb.lib          >> msvc.tmp
echo %HDIRLIB%\png.lib          >> msvc.tmp
echo %HDIRLIB%\hbzlib.lib       >> msvc.tmp
echo %HDIRLIB%\hbziparc.lib     >> msvc.tmp
echo %HDIRLIB%\hbmzip.lib       >> msvc.tmp
echo %HDIRLIB%\minizip.lib      >> msvc.tmp
echo %HDIRLIB%\hbtip.lib        >> msvc.tmp
echo %HDIRLIB%\hbzebra.lib      >> msvc.tmp
echo %HDIRLIB%\hbusrrdd.lib     >> msvc.tmp

rem Uncomment these two lines to use Advantage RDD
rem echo %HDIRLIB%\rddads.lib >> msvc.tmp
rem echo %HDIRLIB%\ace32.lib  >> msvc.tmp

rem echo %FWDIR%\lib\libmysql.lib >> msvc.tmp

echo user32.lib               >> msvc.tmp
echo gdi32.lib                >> msvc.tmp
echo winspool.lib             >> msvc.tmp
echo comctl32.lib             >> msvc.tmp
echo comdlg32.lib             >> msvc.tmp
echo advapi32.lib             >> msvc.tmp
echo shell32.lib              >> msvc.tmp
echo ole32.lib                >> msvc.tmp
echo oleaut32.lib             >> msvc.tmp
echo version.lib              >> msvc.tmp
echo msimg32.lib              >> msvc.tmp
echo oledlg.lib               >> msvc.tmp
echo gdiplus.lib              >> msvc.tmp
echo winmm.lib                >> msvc.tmp
echo kernel32.lib             >> msvc.tmp
echo uuid.lib                 >> msvc.tmp
echo odbc32.lib               >> msvc.tmp
echo odbccp32.lib             >> msvc.tmp
echo iphlpapi.lib             >> msvc.tmp
echo mpr.lib                  >> msvc.tmp
echo wsock32.lib              >> msvc.tmp
echo psapi.lib                >> msvc.tmp
echo vfw32.lib                >> msvc.tmp
echo runtimeobject.lib        >> msvc.tmp
echo ws2_32.lib               >> msvc.tmp
echo shlwapi.lib              >> msvc.tmp
echo strmiids.lib             >> msvc.tmp

IF EXIST %1.res echo %1.res   >> msvc.tmp

%VCDIRBIN%\link @msvc.tmp -nologo /SUBSYSTEM:windows /FORCE:multiple /NODEFAULTLIB:msvcrt /LIBPATH:%VCDIRLIB%
IF ERRORLEVEL 1 GOTO LINKERROR

rem borrando archivos temporales y ejecutando aplicacion
ECHO * Delete temporal files *
@del %1.c
@del %1.obj
@del %1.ppo
@del warnings.log
@del comp.log
#@del msvc.tmp
ECHO * Application successfully built *
%1
GOTO EXIT
ECHO

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

:RESOURCESERROR
ECHO * Resources errors *
GOTO EXIT

:LINKERROR
ECHO * Linking errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: BuildH32 [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

Gracias por la ayuda
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1644
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia

Re: ApplicationVS para UEstudio

Postby acuellar » Tue Dec 07, 2021 5:30 pm

Estimado Antonio

Me puede compartir el ApplicationVS que funcione.

Muchas gracias.
Saludos,

Adhemar C.
User avatar
acuellar
 
Posts: 1644
Joined: Tue Oct 28, 2008 6:26 pm
Location: Santa Cruz-Bolivia


Return to FiveWin para Harbour/xHarbour

Who is online

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