Página 1 de 1
Não consigo compilar HwGui com MsVC ??
Enviado: 18 Set 2010 20:45
por Cezar
Boa noite,
Não estou conseguindo compilar ( gerar as Libs ) da HwGui com MsVC .
1. Instalei MsVC 2008 express
Acrescentei no Path MeuComputador\Variaveis de ambiente:
c:\Msvc\VC\bin
2. Instalei o Harbour versão 2.0 Beta ( já compilada com Bcc,Mingw,Msvc )
Criei "Hello.prg" e compilei com Msvc, Ok.
3. Instalei uma nova copia HwGui ( cvs )
4. Criei a variavel de ambiente HB_PATH=c:\Hb21
5. No arquivo Make_vc.bat que esta no raiz da HwGui.
nmake /I /Fmakefile.vc %1 %2 %3 > make_vc.log
**** Inclui a flag "/I", senão dá erro.
if errorlevel 1 goto BUILD_ERR
Rodando o Make_vc.bat, gera os ".C" na pasta \Hwgui\Obj,
mas não gera as LIBS da HwGui.
Agradeço
v_cez@yahoo.com.br
Re: Não consigo compilar HwGui com MsVC ??
Enviado: 21 Set 2010 11:34
por Cezar
Bom dia,
Estou apanhando pra compilar o Harbour+HwGui+MsVc.
Já li e reli tudo, desinstalei reintalei, revi todos os paths e nada.
Na pasta \HwGui tem os 2 arquivos para a compilação: make_vc.bat e makefile.vc
Depois de tudo isso estou verificando que os arquivo de cabeça~lhos ".h" que
estão na pasta \MSVC\VC\INCLUDE não são localizados na hora da compilação.
Código: Selecionar todos
c:\Hb21\bin\harbour.exe source\hipedit.prg -n -w /es2 -ic:\Hb21\include -ic:\msvc\vc\include -ic:\hwgui\include -d__WINDOWS__ -oobj\hipedit.c
cl /W3 /nologo /c /Ic:\msvc\vc\include /Ic:\hwgui\include /Ic:\Hb21\include /Foobj\hipedit.obj obj\hipedit.c
hipedit.c
cl /W3 /nologo /c /Ic:\hwgui\include /Ic:\Hb21\include /Foobj\animat.obj source\animat.c
animat.c
c:\hwgui\include\windows.h(28) : warning C4068: unknown pragma
c:\hwgui\include\excpt.h(23) : warning C4068: unknown pragma
c:\hwgui\include\excpt.h(180) : warning C4068: unknown pragma
c:\hwgui\include\stdarg.h(27) : fatal error C1083: Cannot open include file: 'vadefs.h': No such file or directory
Parece que qdo o arquivo .h que pertence ao MSVC é chamado de dentro
de outro .ch o path não funciona.
Voces conseguem compilar Harbour+HwGui+MSVC sem problemas,
ou, sou eu que estou ou eu que estou comendo bola?
Grato.
v_cez@yahoo.com.br
Re: Não consigo compilar HwGui com MsVC ??
Enviado: 21 Set 2010 12:54
por sygecom
Boa Tarde,
Eu consigo utilizar sim a Hwgui com Msvc e Harbour, para compilar a LIB da Hwgui uso os comandos abaixo:
hbmk2 @hbactivex.hbp
hbmk2 @hbxml.hbp
hbmk2 @hwg_qhtm.hbp
hbmk2 @hwgui.hbp
hbmk2 @procmisc.hbp
Re: Não consigo compilar HwGui com MsVC ??
Enviado: 25 Set 2010 17:59
por Cezar
Boa tarde,
Baixei hoje, pelo Tortoise, o HwGui.
Durante a compilação com MsVC apresenta erros no arquivo
\Hwgui\include\Hwingui.h e não gera as libs correspondente
A principio, me parece um problema especifico com sintaxe C .
Agradeço a orientação!
v_cez@yahoo.com.br
Meu .bat pra compilar:
Código: Selecionar todos
@echo off
CLS
if "%1" == "clean" goto CLEAN
if "%1" == "CLEAN" goto CLEAN
if not exist lib md lib
if not exist obj md obj
:BUILD
hbmk2 @hbactivex.hbp
hbmk2 @hbxml.hbp
hbmk2 @hwg_qhtm.hbp
hbmk2 @hwgui.hbp
hbmk2 @procmisc.hbp
goto EXIT
:CLEAN
del lib\*.lib
del lib\*.bak
del obj\*.obj
del obj\*.c
goto EXIT
:EXIT
pause
Este é o relatorio dos erros:
Código: Selecionar todos
hbmk2: Processando arquivo de configuração: c:\Hb21\bin\hbmk.cfg
hbmk2: Processando: hwgui.hbc
hbmk2: Processando arquivo de configuração: c:\Hb21\bin\hbmk.cfg
hbmk2: Processando: hwgui.hbc
hbmk2: Harbour: Compilando módulos...
hbmk2: Compilando...
hbmk2: Criando biblioteca estáticas... lib/libhbxml.a
hbmk2: Processando arquivo de configuração: c:\Hb21\bin\hbmk.cfg
hbmk2: Processando: hwgui.hbc
hbmk2: Harbour: Compilando módulos...
hbmk2: Compilando...
In file included from source/qhtm/hwg_qhtm.c:19:
include/hwingui.h:44: error: expected declaration specifiers or '...' before 'HB
_SIZE'
include/hwingui.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' be
fore 'hwg_strcopy'
include/hwingui.h:46: error: expected declaration specifiers or '...' before 'HB
_SIZE'
source/qhtm/hwg_qhtm.c: In function 'HB_FUN_QHTM_INIT':
source/qhtm/hwg_qhtm.c:73: error: too many arguments to function 'hwg_strget'
source/qhtm/hwg_qhtm.c: In function 'HB_FUN_QHTM_MESSAGE':
source/qhtm/hwg_qhtm.c:178: error: too many arguments to function 'hwg_strget'
source/qhtm/hwg_qhtm.c:179: error: too many arguments to function 'hwg_strget'
source/qhtm/hwg_qhtm.c: In function 'HB_FUN_QHTM_PRINTSETTEXT':
source/qhtm/hwg_qhtm.c:321: error: too many arguments to function 'hwg_strget'
source/qhtm/hwg_qhtm.c: In function 'HB_FUN_QHTM_PRINTSETTEXTFILE':
source/qhtm/hwg_qhtm.c:338: error: too many arguments to function 'hwg_strget'
source/qhtm/hwg_qhtm.c: In function 'HB_FUN_QHTM_PRINTSETTEXTRESOURCE':
source/qhtm/hwg_qhtm.c:355: error: too many arguments to function 'hwg_strget'
hbmk2: Erro: Executando compilador C. 1
c:\Hb21\comp\mingw\bin\gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame
-pointer -Ic:/Hb21/include -Iinclude source/qhtm/hwg_qhtm.c -o lib/.hbmk/win/mi
ngw/hwg_qhtm.o
hbmk2: Processando arquivo de configuração: c:\Hb21\bin\hbmk.cfg
hbmk2: Processando: hwgui.hbc
hbmk2: Harbour: Compilando módulos...
hbmk2: Compilando...
In file included from source/hcombo.prg:25:
include/hwingui.h:44: error: expected declaration specifiers or '...' before 'HB
_SIZE'
include/hwingui.h:45: error: expected '=', ',', ';', 'asm' or '__attribute__' be
fore 'hwg_strcopy'
include/hwingui.h:46: error: expected declaration specifiers or '...' before 'HB
_SIZE'
source/hcombo.prg: In function 'HB_FUN_COPYDATA':
source/hcombo.prg:30: error: too many arguments to function 'hwg_strget'
hbmk2: Erro: Executando compilador C. 1
c:\Hb21\comp\mingw\bin\gcc.exe -c -O3 -march=i586 -mtune=pentiumpro -fomit-frame
-pointer -Ic:/Hb21/include -Iinclude lib\.hbmk\win\mingw\hcombo.c -o lib/.hbmk/
win/mingw/hcombo.o
hbmk2: Processando arquivo de configuração: c:\Hb21\bin\hbmk.cfg
hbmk2: Processando: hwgui.hbc
hbmk2: Harbour: Compilando módulos...
hbmk2: Compilando...
hbmk2: Criando biblioteca estáticas... lib/libprocmisc.a
Pressione qualquer tecla para continuar. . .
c:\hwgui>
Re: Não consigo compilar HwGui com MsVC ??
Enviado: 26 Set 2010 10:03
por sygecom
Está usando o Harbour do SVN ?
Re: Não consigo compilar HwGui com MsVC ??
Enviado: 26 Set 2010 14:14
por Cezar
Boa tarde Sygecom,
O MsVC express instalado na pasta \MSVC
Entrei no harbour-project.org, download binaries & source, e baixei:
o arquivo
Harbour-2.0.0beta3-win, porque as Libs ja estão compiladas para Bcc, Mingw, Msvc
Fiz um: Hbmk2 Hello.prg, funcionou.
Baixei o Hwgui pelo Tortoise.
Fiz o .Bat ( topico anterior ) no raiz da Hwgui, executei e mostrou esses erros.
Grato
v_cez@yahoo.com.br
Re: Não consigo compilar HwGui com MsVC ??
Enviado: 26 Set 2010 14:48
por sygecom
Olá Cersar,
Houve determinadas época que não se consegui compilar a Hwgui com Harbour e pode ser que numa dessas foi feito essa versão do Harbour que você baixou, tente baixar pelo Tortoise SVN ou
Harbour do SVN e compilar com MSVC e depois compilar a Hwgui da CVS que da certo, fiz isso hoje e compilou tudo 100%.
Re: Não consigo compilar HwGui com MsVC ??
Enviado: 28 Set 2010 11:45
por Cezar
Bom dia,
Fiz como me sugeriu, baixei Harbour p/SVN, Hwgui/VCS, deu certo.
Grato pela ajuda!
v_cez@yahoo.com.br