Página 1 de 1

Harbour para Windows CE ( Duvida )

Enviado: 03 Abr 2014 17:06
por Wellington_systemup
Boa tarde,

Baixei o - HARBOUR: harbour_nyghtly ( Instalou no diretorio com o nome de hb32)
Baixei o - mingw32ce (Instalou no diretorio com o nome de mingw32ce)

Falta mais alguma coisa ?

Agora preciso gerar a partir de um PRG qualquer, um executável que rode em WINDOWS CE.

Duvida. Alguem poderia me passar um bat que utilizo para compilação do PRG em questão o qual gerara um executável que rode em WINDOWS CE, eu estou trabalhando em uma máquina com windows 7 64 bits.

Cordialmente,


Wellington

HARBOUR PARa WINDOWS CE ( DUVIDA )

Enviado: 03 Abr 2014 19:15
por Itamar M. Lins Jr.
Já leu o Readme.md do Harbour ?
# Build Examples

## on Windows 32-bit hosts

> NOTES:
>
> - All code below should be copied to batch files or typed at command
> line.
> - Naturally, you'll need to adapt dirs to valid ones on your system.
> Don't use spaces in dirs.
> - You can use additional `clean`, `install` or `clean install`
> make parameters depending on what you want to do.
> - To redirect all output to a log file, append this after the make
> command: `> log.txt 2>&1`

```batchfile
```batchfile
rem MinGW GCC for Windows CE ARM
rem (requires Cygwin + preceding build for native target)
set PATH=C:\mingwce\opt\mingw32ce\bin;C:\cygwin\bin;%PATH%
rem optional:
set CYGWIN=nodosfilewarning
win-make
```
ou
```bash
# MinGW GCC for Windows CE ARM
[g]make HB_PLATFORM=wce
```
Saudações,
Itamar M. Lins Jr.

Harbour para Windows CE ( Duvida )

Enviado: 03 Abr 2014 19:48
por Wellington_systemup
Boa Noite,

Não li o arquivo readme.md ( Desculpe a ignorância, mais qual executavel utilizo par ver o arquivo)


Você pode me ceder os bat's para que eu configure de acordo com o que preciso.

O erro que esta dando é esse:

Harbour 3.2.0dev (r1404022052)
Copyright (c) 1999-2014, http://harbour-project.org/
Compiling '..\tests\hello.prg'...

Lines 7, Functions/Procedures 1
Generating C source output to 'C:\Users\rw\AppData\Local\Temp\hbmk_2dtidy.dir\hello.c'... Done.
cygwin warning:
MS-DOS style path detected: C:/Users/rw/AppData/Local/Temp/hbmk_2dtidy.dir/hello.c
Preferred POSIX equivalent is: /cygdrive/c/Users/rw/AppData/Local/Temp/hbmk_2dtidy.dir/hello.c
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.h ... -pathnames
hbmk2: Erro: Executando compilador C/C++. 1
"C:\hb32\comp\mingwarm\bin\arm-mingw32ce-gcc.exe" -c -O3 -fomit-frame-pointer -W -Wall -pipe -DUNICODE -DUNDER_CE -IC:/hb32/include C:/Users/rw/AppData/Local/Temp/hbmk_2dtidy.dir/hello.c C:/Users/rw/AppData/Local/Temp/hbmk_gcuzp2.c

Harbour para Windows CE ( Duvida )

Enviado: 03 Abr 2014 20:01
por Itamar M. Lins Jr.
Os Bats são esses que estão na tela.

Saudações,
Itamar M. Lins Jr.

Harbour para Windows CE ( Duvida )

Enviado: 03 Abr 2014 20:07
por Toledo
Wellington_systemup escreveu:Baixei o - HARBOUR: harbour_nyghtly ( Instalou no diretorio com o nome de hb32)
Você tem que baixar os fontes do Harbour para fazer a compilação. A versão nyghtly já vem compilada (Mingw para Windows).

https://github.com/harbour/core/archive/master.zip

Leia o README:
https://github.com/harbour/core/blob/master/README.md

Boa sorte!

Harbour para Windows CE ( Duvida )

Enviado: 03 Abr 2014 21:41
por Wellington_systemup
Boa noite,

Itamar,

Você teria os links, para que eu possa baixar o mingwce e link para baixar o cygwin

Agradeço desde já,.

Estou quase lá..


Wellington

Harbour para Windows CE ( Duvida )

Enviado: 03 Abr 2014 22:14
por Toledo
Wellington_systemup escreveu:Você teria os links, para que eu possa baixar o mingwce e link para baixar o cygwin
Consta no README:
MinGW CEGCC [win, *nix, free, open-source]
http://cegcc.sourceforge.net/
Cygwin [win, free, open-source]
http://www.cygwin.com/
Abraços,

Harbour para Windows CE ( Duvida )

Enviado: 03 Abr 2014 22:40
por Wellington_systemup
Toledo,

Sei que já é tarde, mas não consigo sair daqui na geração do harbour.exe

! Building Harbour 3.2.0dev from source - http://harbour-project.org
! MAKE: win-make 3.82 c:/cygwin/bin/sh.exe
! HB_HOST_PLAT: win (x86_64) HB_SHELL: nt
! HB_PLATFORM: wce (arm)
! HB_COMPILER: mingwarm (autodetected: c:/mingw32ce/bin/ [arm-mingw32ce-*])
config/global.mk:1505: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
! Component: 'zlib' found in C:/core-master/src/3rd/zlib (local)
! Component: 'pcre' found in C:/core-master/src/3rd/pcre (local)
! Component: 'gpm' not supported on wce platform
! Component: 'slang' not found. Configure with HB_WITH_SLANG.
! Component: 'curses' not found. Configure with HB_WITH_CURSES.
! Component: 'x11' not found. Configure with HB_WITH_X11.
! Component: 'wattcp/watt-32' not supported on wce platform
../config/global.mk:1505: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
win-make[1]: Nothing to be done for `all'.
../config/global.mk:1505: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
win-make[1]: Nothing to be done for `all'.
../config/global.mk:1505: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
../../config/global.mk:1505: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
../../../config/global.mk:1505: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
! 'hbpmcom' library skipped (platform or compiler not supported)
../../../config/global.mk:1505: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
../../../../../../config/global.mk:1505: ! Warning: HB_HOST_BIN not specified. Could not find host native build.
arm-mingw32ce-gcc -I. -I../../../../../../include -Wmissing-braces -Wreturn-type -Wformat -Wimplicit-int -Wimplicit-function-declaration -O2 -fomit-frame-pointer -DUNICODE -DUNDER_CE -IC:/core-master/src/3rd/zlib -DPNG_NO_STDIO -opng.o -c ../../../png.c
win-make[4]: *** [png.o] Error 1
win-make[3]: *** [descend] Error 2
win-make[2]: *** [png] Error 2
win-make[1]: *** [3rd] Error 2
win-make: *** [src] Error 2

Compilado harbour WindowsCe ( Dúvida )

Enviado: 04 Abr 2014 10:47
por Wellington_systemup
Boa Tarde,

Foi compilado e criado com sucesso o harbour para windowsCe.

Ele criou tres ( harbour.exe ) 1 - Na pasta c:\harbour\bin\harbour.exe 2 - Na pasta c:\harbour\bin\wce\mingwarm\harbour.exe => Estes dois quando executo no PC - ele diz que não é um aplicativo win32 vádio., somente o que esta na 3 - c:\harbour \bin\win\mingw é que funciona no desktop.

Obs. Nenhum dos 02 hbmk2.exe - gerados nas pastas c:\harbour\bin ou c:\harbour\bin\wce\mingwarm - também dão a mensagem que não é um aplicativo win32 válido.

Pergunta, como faço para gerar o executável para WINDOWS CE. É a partir do EMULADOR ?

[editado - Toledo: o texto abaixo foi retirado de uma outra mensagem postada pelo autor]
Então qual o procedimento para gerar executável a partir de um PRG para windows CE ? Por favor se alguem puder me dar uma explicação Agradeço..?

Cordialmente,

wellington

Harbour para Windows CE ( Duvida )

Enviado: 04 Abr 2014 13:07
por Toledo
Olá Wellington, primeiramente leia as suas Mensagens Privadas.
Wellington_systemup escreveu:diz que não é um aplicativo win32 válido
Estes EXE são aplicações para Windows CE, então não serão executados no Windows.
Wellington_systemup escreveu:qual o procedimento para gerar executável a partir de um PRG para windows CE ?
Este assunto sobre Harbour para Windows CE é novo aqui no fórum, então acho que poucos membros terão experiências para responder as suas dúvidas. Eu mesmo sou novato, então minhas mensagens serão baseadas nas instruções que estão disponíveis nos arquivos do código fonte do Harbour.

https://github.com/harbour/core/blob/master/README.md
https://github.com/harbour/core/blob/ma ... NGWARM.txt
https://github.com/harbour/core/blob/ma ... LNOTES.txt

Tente o seguinte:

SET PATH_=%PATH%
SET path=c:\mingw32ce\bin;c:\cygwin\bin;c:\harbour\bin\win\mingw;
SET CYGWIN=nodosfilewarning
hbmk2 arquivo.prg -platform=wce
SET PATH=%PATH_%

Boa sorte!

Abraços,