Pessoal estou perdido aqui ...
Ambiente:
Maquina virtual - Windows 32
Harbour = caminho: c:\hb32
hwgui = caminho: c:\hwgui
1) Baixei e instalei o Harbou32 ( harbour-nightly-win.exe ), eu já tenho um BAT[1] que em um dos tantos locais que eu li, me orientaram a fazer, com isso, compilei com sucesso um programa Clipper.
Se não me engano (e vocês me corrijam por favor) o compilador C é o MinGW.
2) Agora quero fazer uns testes com HwGui e estou apanhando.
2.1) Baixei o HwGui ( hwgui-2.20-b3.mingw.zip )
inclui uma linha no BAT que estou usando para compilar os programas em Harbour
[ set HB_PATH=c:\hb32 ]
2.2) Na pasta C:\hwgui criei uma pasta teste (c:\hwgui\teste)
nessa pasta coloquei um programa exemplo bem simples[2]
copiei para essa pasta o arquivo HBMK.BAT[3] que uso para compilar os arquivos na pasta c:\hwgui\samples (que funcionam)
ESTOU RECEBENDO MSG DE ERRO:
C:\hwgui\teste>hbmk2 ola.prg hwgui_xp.rc -i..\include -L..\lib -lhwgui -lprocmis
c -lhbxml -lhwgdebug -gui
hbmk2: Processando opções do ambiente: -comp=mingw
Harbour 3.2.0dev (r1706271037)
Copyright ( c ) 1999-2016, http://harbour-project.org/
Compiling 'ola.prg'...
Lines 3484, Functions/Procedures 1
Generating C source output to 'C:\Users\Loja\AppData\Local\Temp\hbmk_92h35u.dir\
ola.c'... Done.
gcc: error: hwgui_xp.rc: No such file or directory
gcc: warning: '-x c' after last input file has no effect
gcc: fatal error: no input files
compilation terminated.
C:\hb32\comp\mingw\bin\windres.exe: preprocessing failed.
hbmk2: Erro: Ao executar o compilador de recursos. 1
C:\hb32\comp\mingw\bin\windres.exe -IC:/hb32/include -I../include hwgui_xp.rc -O
coff -o C:/Users/Loja/AppData/Local/Temp/hbmk_92h35u.dir/hwgui_xp.reso
Onde estou errando ?
Att.
Carlos Susviela
[1] -----------------------------------------------------------------------------
@echo off
set path=C:\hb32\bin;C:\hb32\comp\mingw\bin;%path%
set HB_COMPILER=mingw
set HB_PATH=c:\hb32
cd\
%SystemRoot%\system32\cmd.exe
---------------------------------------------------------------------------------
[2]----------------------------------------------------------------------------
#include "hwgui.ch"
Function Test
Local oMain
INIT WINDOW oMain MAIN TITLE "My First HwGUI sample" AT 100, 100 SIZE 400, 300
/* Here you can place definitions of menu and window controls
* Then the window must be activated - it appears on the screen
* and the application goes to the main loop of handling messages.
*/
ACTIVATE WINDOW oMain
Return Nil
-------------------------------------------------------------------------------
[3]-----------------------------------------------------------
rem set path=c:\hb30\bin;c:\hb30\comp\mingw\bin
rem set path=c:\hb30\bin;c:\borland\bcc55\bin
hbmk2 %1 hwgui_xp.rc -i..\include -L..\lib -lhwgui -lprocmisc -lhbxml -lhwgdebug -gui
--------------------------------------------------------------