Clipper/FiveWin - windres: can't popen `gcc -E -xc -DRC_INVOKED _temp.rc': No such file or directory

 
Vista:

windres: can't popen `gcc -E -xc -DRC_INVOKED _temp.rc': No such file or directory

Publicado por carlos segundo (52 intervenciones) el 23/09/2012 05:46:20
Hola amigos del foro

Estoy tratando de aprender a programar HMG Minigui, basandome en los ejemplos que estan en la carpeta samples de hmg, y de repente no pude seguir compilando los ejemplos. me sale el siguiente mensaje.

windres: can't popen `gcc -E -xc -DRC_INVOKED _temp.rc': No such file or directory

No he cambiado nada de los archivos de configuracion, estaba usando para compilar el IDE que viene en la version HMG 3.0.1.44, es la ultima version subida del sistema HMG.
Agradecere mucho si alguien tiene alguna solucion a este impase.

Carlos Munoz
Iquique Chile
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

windres: can't popen `gcc -E -xc -DRC_INVOKED _temp.rc': No such file or directory

Publicado por SuperIndio (64 intervenciones) el 25/09/2012 16:40:36
Es muy probable que el error este en el archivo de recursos, lo que tenes que hacer para sacarte la duda es
1) Abrir una ventana modod console (cmd)

2) asignarte al directorio donde esta tu archivo.Rc ejemplo:
cd c:\hmg3\misejemplos\demo1\

3) Modificar Temporalmente la variable de sistema PATH asi:
SET PATH=c:\hmg3\mingw\bin\

4) Probar el wiendres.exe es facil

c:\HMG3\SAMPLES\GRID.30>windres --help
Usage: windres [option(s)] [input-file] [output-file]
The options are:
-i --input=<file> Name input file
-o --output=<file> Name output file
-J --input-format=<format> Specify input format
-O --output-format=<format> Specify output format
-F --target=<target> Specify COFF target
--preprocessor=<program> Program to use to preprocess rc file
-I --include-dir=<dir> Include directory when preprocessing rc file
-D --define <sym>[=<val>] Define SYM when preprocessing rc file
-U --undefine <sym> Undefine SYM when preprocessing rc file
-v --verbose Verbose - tells you what it's doing
-c --codepage=<codepage> Specify default codepage
-l --language=<val> Set language when reading rc file
--use-temp-file Use a temporary file instead of popen to read
the preprocessor output
--no-use-temp-file Use popen (default)
-r Ignored for compatibility with rc
@<file> Read options from <file>
-h --help Print this help message
-V --version Print version information
FORMAT is one of rc, res, or coff, and is deduced from the file name
extension if not specified. A single file name is an input file.
No input-file is stdin, default rc. No output-file is stdout, default rc.
windres: supported targets: pe-i386 pei-i386 elf32-i386 elf32-little elf32-big srec symbolsrec verilog tekhex binary
Report bugs to <http://www.sourceware.org/bugzilla/>


Aqui compile un ejemplos mira:

c:\HMG3\SAMPLES\SPLASH.DEMO>SET PATH=c:\HMG3\MINGW\BIN\

c:\HMG3\SAMPLES\SPLASH.DEMO>windres -i demo.rc -o demo.o

c:\HMG3\SAMPLES\SPLASH.DEMO>

me genero un .o de 270kb

si tuvieras un error el windres.exe muestra un mensaje con el error,
Supongamos que tu programa se llama "demo01.Prg" tu archivo .rc debe llamarse "demo01.Rc"

Sino postea las definiciones del .rc
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

windres: can't popen `gcc -E -xc -DRC_INVOKED _temp.rc': No such file or directory

Publicado por carlos segundo (52 intervenciones) el 25/09/2012 17:13:30
Sr.
SuperIndio

Le saludo atte. y le agradesco mucho su atencion, voy a probar sus sugerencias y luego le comentare como me fue, espero no molestar mucho.
Reitero mis agradecimientos.

Carlos Muñoz
Iquique Chile
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

windres: can

Publicado por carlos segundo (52 intervenciones) el 02/10/2012 19:07:07
Sr.
Superindio

Gracias por sus sugerencias, hice las pruebas pero igual me da los mismos mensajes de error, revise los paths y aparentemente estan bien. le adjunto el BUILD.BAT de esta version, a lo mejor por ahi puede que este el error.


BUILD.BAT
@echo off

rem *******************************************************************************
rem SYNTAX
rem *******************************************************************************
rem build [ /n ] [ /d ] [ /c ] <program.prg> | <project.hbp> [<hbmk2 params>]
rem
rem /n no run after build
rem /d enabled debugger
rem /c console mode
rem
rem
rem This batch file passes information to hbmk2 to make possible an easy (zero
rem configuration build of HMG applications).
rem
rem You can achieve a customized build passing parameters directly to hbmk2.
rem Please, take a look at hbmk2 help:
rem
rem hbmk2 --help

rem *******************************************************************************
rem SET DEFAULT OPTIONS
rem *******************************************************************************

set gtdrivers=-gtgui -gtwin
set runafterbuild=.t.
set debug=

rem ******************************************************************************
rem DELETE FILES FROM PREVIOUS BUILD
rem ******************************************************************************

if exist build.log del build.log
if exist error.log del error.log

rem ******************************************************************************
rem SET HMGPATH
rem ******************************************************************************
rem
rem Using %~dp0 the HMGPATH is automatically set to current (hmg) folder making it
rem portable (zero config)

SET HMGPATH=%~dp0

rem ******************************************************************************
rem SET BINARIES PATHS
rem ******************************************************************************

SET PATH=%HMGPATH%\harbour\bin;%HMGPATH%\mingw\bin;%PATH%

rem *******************************************************************************
rem PROCESS PARAMETERS
rem *******************************************************************************
rem
rem /n no run after build
rem /d enabled debugger
rem /c console mode
rem

if "%1"=="/n" set runafterbuild=.f.
if "%1"=="/n" shift

if "%1"=="/d" set gtdrivers=-gtwin -gtgui
if "%1"=="/d" set debug=-b
if "%1"=="/d" echo options norunatstartup > init.cld
if "%1"=="/d" shift

if "%1"=="/c" set gtdrivers=-gtwin -gtgui
if "%1"=="/c" shift

rem ******************************************************************************
rem COMPILE RESOURCES
rem ******************************************************************************

echo #define HMGRPATH %HmgPath%\RESOURCES > _hmg_resconfig.h
COPY /b %HMGPATH%\resources\hmg.rc+%~n1.rc+%HMGPATH%\resources\filler _temp.rc >NUL
windres -i _temp.rc -o _temp.o >windres.log 2>&1

rem *******************************************************************************
rem SET PROJECT OUTPUT FILE NAME
rem *******************************************************************************
rem
rem The first parameter sent to hbmk2 is -o%~n1.exe. I've added to it create the
rem application with the project basename (<projectname.hbp> specified by the user.

rem *******************************************************************************
rem SET DEFAULT CONFIGURATION FILE
rem *******************************************************************************
rem
rem The second parameter sent to hbmk2 is the hmg.hbc script to set config required.

rem *******************************************************************************
rem SET QUIET MODE
rem *******************************************************************************
rem
rem The third parameter sent to hbmk2 is -q (Harbour quiet mode)

rem ******************************************************************************
rem CALL HBMK2
rem ******************************************************************************

HBMK2 -mt -o%~n1.exe %HMGPATH%\hmg.hbc %gtdrivers% %debug% -q %1 %2 %3 %4 %5 %6 %7 %8 >hbmk.log 2>&1

rem ******************************************************************************
rem CREATE LOGS
rem ******************************************************************************

if errorlevel 1 if exist windres.log copy /a windres.log+hbmk.log error.log >nul
if errorlevel 1 if not exist windres.log copy /a hbmk.log error.log >nul

if errorlevel 0 if exist windres.log copy /a windres.log+hbmk.log build.log >nul
if errorlevel 0 if not exist windres.log copy /a hbmk.log build.log >nul

rem ******************************************************************************
rem CLEANUP
rem ******************************************************************************

if exist windres.log del windres.log
if exist hbmk.log del hbmk.log
if exist _hmg_resconfig.h del _hmg_resconfig.h
if exist _temp.rc del _temp.rc
if exist _temp.o del _temp.o

rem ******************************************************************************
rem SHOW LOG
rem ******************************************************************************

if exist error.log type error.log
if exist build.log type build.log

rem ******************************************************************************
rem RUN APPLICATION
rem ******************************************************************************

if "%runafterbuild%"==".t." if exist %~n1.exe %~n1.exe


Muchas gracias por su atencion, y reitero mis saludos a su gentileza.

Carlos Muñoz
Iquique Chile

ps. Estoy usando la version HMG 3.0.44 que es la ultima que subieron.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

windres: can

Publicado por SuperIndio (64 intervenciones) el 10/10/2012 16:45:08
Bueno hay que verificar si esta sentencia esta funcionando bien:

COPY /b %HMGPATH%\resources\hmg.rc+%~n1.rc+%HMGPATH%\resources\filler _temp.rc >NUL


para ello habria que anular estos deletes

if exist windres.log del windres.log
if exist hbmk.log del hbmk.log
if exist _hmg_resconfig.h del _hmg_resconfig.h
if exist _temp.rc del _temp.rc
if exist _temp.o del _temp.o

ASI:

REM if exist windres.log del windres.log
REM if exist hbmk.log del hbmk.log
if exist _hmg_resconfig.h del _hmg_resconfig.h
REM if exist _temp.rc del _temp.rc
if exist _temp.o del _temp.o


y despues ver el contenido de:

_temp.Rc (creo que esto quedada en la carpeta %TEMP%)
windres.log
hbmk.log


Si podesp postear que contene _temp.Rc y windres.Log
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

windres: can't popen `gcc -E -xc -DRC_INVOKED _temp.rc': No such file or directory

Publicado por carlos segundo (52 intervenciones) el 17/10/2012 02:09:29
Hola Amigo

Mucho gusto en saludarle y a la vez reiterar mis agradecimientos por su atencion a mis consultas, aun me encuentro dando la hora para poder compilar con la version de HMG.3.0.44, hice los cambios que me indico mas arriba, pero me sigue dando el mismo error. le adjunto el contenido de los archivos que me indica.

_TEMP.RC

#include "_hmg_resconfig.h"

// MANIFEST FOR CREATE 'XP-STYLE' APPLICATIONS

1 24 HMGRPATH\WindowsXP.Manifest

HMG_FINGER CURSOR HMGRPATH\FINGER.CUR
HMG_DRAGLIST CURSOR HMGRPATH\draglist.cur
HMG_DRAGUP CURSOR HMGRPATH\dragup.cur
HMG_DRAGDOWN CURSOR HMGRPATH\dragdown.cur

// EDIT COMMAND IMAGE BUTTONS

HMG_EDIT_CANCEL BITMAP HMGRPATH\edit_cancel.bmp
HMG_EDIT_CLOSE BITMAP HMGRPATH\edit_close.bmp
HMG_EDIT_COPY BITMAP HMGRPATH\edit_copy.bmp
HMG_EDIT_DELETE BITMAP HMGRPATH\edit_delete.bmp
HMG_EDIT_EDIT BITMAP HMGRPATH\edit_edit.bmp
HMG_EDIT_FIND BITMAP HMGRPATH\edit_find.bmp
HMG_EDIT_NEW BITMAP HMGRPATH\edit_new.bmp
HMG_EDIT_OK BITMAP HMGRPATH\edit_ok.bmp
HMG_EDIT_PRINT BITMAP HMGRPATH\edit_print.bmp
HMG_EDIT_ADD BITMAP HMGRPATH\edit_add.bmp
HMG_EDIT_DEL BITMAP HMGRPATH\edit_del.bmp
HMG_EDIT_SET BITMAP HMGRPATH\edit_set.bmp

ZZZ_AAAWINDOW ICON HMGRPATH\WINDOW.ICO
ZZZ_LED_ON ICON HMGRPATH\LED_ON.ICO
ZZZ_LED_OFF ICON HMGRPATH\LED_OFF.ICO

HP_END BITMAP HMGRPATH\HP_END.BMP
HP_TOP BITMAP HMGRPATH\HP_TOP.BMP
HP_NEXT BITMAP HMGRPATH\HP_NEXT.BMP
HP_BACK BITMAP HMGRPATH\HP_BACK.BMP
HP_PRINT BITMAP HMGRPATH\HP_PRINT.BMP
HP_ZOOM BITMAP HMGRPATH\HP_ZOOM.BMP
HP_GOPAGE BITMAP HMGRPATH\HP_GOPAGE.BMP
HP_CLOSE BITMAP HMGRPATH\HP_CLOSE.BMP
HP_SAVE BITMAP HMGRPATH\HP_SAVE.BMP
HP_THUMBNAIL BITMAP HMGRPATH\hp_thumbnail.bmp
HP_GLASS CURSOR HMGRPATH\HP_GLASS.CUR

GRID_MSAV BITMAP HMGRPATH\grid_msav.bmp
GRID_MCAN BITMAP HMGRPATH\grid_mcan.bmp
AGENDA ICON IMAGES\AGENDA.ICO
MSG02 AVI IMAGES\MENSAGEM02.AVI

WINDRES.LOG
windres: can't popen `gcc -E -xc -DRC_INVOKED _temp.rc': No such file or directory

HBMK.LOG
Harbour 3.2.0dev (Rev. 18042)
Copyright (c) 1999-2012, http://harbour-project.org/
gcc.exe: error: C:/HMG30~1.44/SAMPLES/AGENDA/_temp.o: No such file or directory
hbmk2: Error: Running linker. 1
gcc.exe C:/DOCUME~1/ADMINI~1/CONFIG~1/Temp/hbmk_p5z5g0.dir/agenda.o C:/DOCUME~1/ADMINI~1/CONFIG~1/Temp/hbmk_p5z5g0.dir/hbmk_4jy63v.o C:/HMG30~1.44/SAMPLES/AGENDA/_temp.o -mwindows -Wl,--start-group -lhmg -lcrypt -ledit -leditex -lgraph -lhfcl -lini -lreport -lmsvfw32 -lvfw32 -lhbct -lhbwin -lhbmzip -lminizip -lhbmemio -lhbmisc -lhbmysql -lmysql -lhbtip -lsqlite3 -lhbsqlit3 -lsddodbc -lrddsql -lsddmy -lhbodbc -lodbc32 -lhbhpdf -lhbfimage -lhbpgsql -lhbnetio -lxhb -lhbextern -lhbdebug -lhbvmmt -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd -lgtwin -lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx -lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp -lhbcommon -lhbmainwin -lkernel32 -luser32 -lgdi32 -ladvapi32 -lws2_32 -lwinspool -lcomctl32 -lcomdlg32 -lshell32 -luuid -lole32 -loleaut32 -lmpr -lwinmm -lmapi32 -limm32 -lmsimg32 -lwininet -lhbpcre -lhbzlib -Wl,--end-group -oagenda.exe -LC:/HMG30~1.44/harbour/lib/win/mingw -LC:/HMG30~1.44/lib

Me llama la atencion que en el archivo hbmk.log, el slash (\) fue reemplazado por backslash (/), sera correcto eso, normalmente para separar directorios de subdirectorios utilizamos el slash (\), ojala que vaya por ahi la cosa.

Desde ya muy agradecido por su atencion.

Saludos Carlos Muñoz
Iquique Chile

ps. En respuesta a su consulta. le contare que esta zona donde vivo en estos momentos esta en total desarrollo de la gran mineria por lo tanto hay posibilidades para profesionales del area informatica, mas aun recien se estan incorporando procesos al uso de factura electronica atravez de webservice area en que la mayoria estamos dando tumbos.
Por ser un pais angosto, tenemos la suerte de amanecer en la cordillera, almorzar en el desierto y dormir en el puerto, que tal todo un regalo de Dios.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar