Harbour no WM6

Projeto [x]Harbour - Compilador de código aberto compatível com o Clipper.

Moderador: Moderadores

Avatar do usuário
Itamar M. Lins Jr.
Administrador
Administrador
Mensagens: 7929
Registrado em: 30 Mai 2007 11:31
Localização: Ilheus Bahia
Curtiu: 1 vez

Harbour no WM6

Mensagem por Itamar M. Lins Jr. »

Como construir binários para o WinCE.
Começando a empreitada.
Para as férias ;)

Saudações,
Itamar M. Lins Jr.
I hope that this post of Przemek will be usefull:

You will have to change C compiler and use one which supports ARM
processors and linker which can create WinCE binaries. You can try MSVC,
POCC or POGCC, CeGCC and probably others I haven't tested.
My tests with new POCC version shows that this compiler has some
problems/bugs when generate ARM binaries so probably it's not good
choice today. POGCC was not developed for long time. So you should chose
between MSVC and CeGCC. I've chosen CeGCC with MinGW RTL (MinGW-CE). See
http://cegcc.sourceforge.net/ It can be installed on x86 Windows and
Linux and then you can create PocketPC(ARM)-WinCE binaries. Such
binaries cannot be executed on x86 computers natively but you can
install PocketPC emulator (Virtual Machine) and test them and of course
you can copy them to your mobile device controlled by WinCE and execute.
If you decide to use MinGW-CE then I suggest to use *nix like shell
environment, f.e. MSYS in Windows. In such case you will be able to use
hb* scripts updated for this compiler. If you are using RPM based Linux
distribution then creating WinCE binaries is very easy. Run
./make_rpm.sh from non root account and in few minutes in
${HOME}/RPM/RPMS/<arch>/ you will have ready to install RPMs with native
harbour build. Then run ./make_rpmce.sh and it will create RPM with
Harbour binaries for PocketPC in the same directory.
Install new RPMs using root account and now you can easy create PocketPC
binaries. For .prg compilation use hbcecmp and for linking hbcelnk. See
/usr/share/doc/harbour-ce-1.1.1/README.RPM for detail description of
hbce* scripts. They are working in exactly the same way as normal hb*
scripts which are used for standard native builds.
If you want to compile and link .prg file in one command then use
hbcemk. F.e.:
hbcemk -n -w -es2 -gtwvt wcecon

If you will create binaries linked with harbour shared library
(harbour.dll), f.e. by:
hbcemk -n -w -es2 -gtwvt wcecon -shared

then please remember that you will have to copy to your PocketPC also
harbour.dll (you will find it in /usr/lib/harbour-ce).

HTH.

best regards,
Przemek

ps. For Linux users who want to easy create Win32 binaries and
are using RPM based distributions I'll add soon make_rpmw32.sh
which will create RPM with Harbour binaries for Windows and
hbw* scripts.
>From harbour-devel list.... little howto build harbour for WinCE on Linux
=======================
1.Get http://www.abix.info.pl/files/mpkg_rpm_from_svn.tgz and unpack
on non-root account, then simply run; more info at my site:
http://www.abix.info.pl/kompilator-harbour,56.html

2. install from root account newly created RPMs at ~user/RMP/RPMS/i586

3. Download from http://cegcc.sourceforge.net/
cegcc-mingw32ce-0.50-1.i586.rpm and install it.

4. run from non root account: mpkg_rpm_wce.sh
it will create binary RPM harbour-ce-<ver>.<arch>.rpm with
WinCE/PocketPC cross build Harbour compiler in $HOME/RPM/RPMS/<arch>/
directory

5. install from root account newly created RPM

And now you can use hbce* scripts to create WinCE binaries.
In /usr/share/doc/harbour-ce-<ver> you will find README.RPM with
additional information about hbce* scripts.

If you also want to create x86/Win32 binaries in your Linux box then
install MingGW32 cross compiler (you can download ready to install RPMs
from http://mirzam.it.vu.nl/mingw/) and then run: make_rpmw32.sh
It will create harbour-w32-<ver>.<arch>.rpm in $HOME/RPM/RPMS/<arch>/
Install it and you will be able to use hbw* to create Win32 binaries
in you Linux box.


But if you want descition for Windows then it will be a problem for
me and I hope that MS-Windows users will help you.
First you should download MinGW and MSYS binaries for Windows.
On SF you should find self installing binaries. I do not know
what this *.exe packages exactly contain so I cannot say which
additional files you will have to download and install. Hope MS-Win
users will help here.

Now you can try to create normal Harbour binaries by simple running
./make_gnu.sh install
from Harbour source using MSYS shell (it's bash).
If everything is OK then you should be able to use hb* scripts.
Read in harbour/doc/howtobld.txt about them. If you want to create
self installing archive then you can run ./make_tgz.sh.

Then you should download from http://cegcc.sourceforge.net/
cegcc-mingw32ce-0.50-cygwin.tar.gz and decompress it root / MSYS
directory (in /opt/mingw32ce you should have MinGW32-CE cross compiler)
It's CYGWIN build so the exe files inside will probably need cygwin*.dll
You can install whole cygwin environment but probably cygwin*.dll will
be enough.
Finally run:
./make_xmingwce.sh install
to create WinCE/PocketPC binaries. If you want to create self installing
archive then you can run:
./make_gnu_xmingwce.sh tgz

I hope that MS-Windows users will give you more precise description.

best regards,
Przemek
Saudações,
Itamar M. Lins Jr.
Avatar do usuário
sygecom
Administrador
Administrador
Mensagens: 7131
Registrado em: 21 Jul 2006 10:12
Localização: Alvorada-RS
Contato:

Re: Harbour no WM6

Mensagem por sygecom »

Sera que a LIB da Hwgui gera para WinCE tmb. usando Harbour ? ai é uma mão na roda, alias duas mãos....
Leonardo Machado
xHarbour.org + Hwgui + PostgreSql
Avatar do usuário
Ale SB
Usuário Nível 3
Usuário Nível 3
Mensagens: 201
Registrado em: 20 Jul 2004 17:30
Localização: Campo Grande / MS

Re: Harbour no WM6

Mensagem por Ale SB »

Eu gostaria de fazer uns testes com o MinGwCe+HarbourCE, pelo q eu entendi..para desenvolver em Windows eu teria q recompilar as Libs do harbour com o MinGwCe, correto ?

Mas antes devo baixar o : cegcc-mingw32ce-0.50-1.i586.rpm, alguem tem ai o Link dele ai, pq nao achei ela nao.

Oq eu achei no sourceForge, soh foi estes aki:

mandriva-cegcc-mingw32ce-c++dlls-0.51.0.tar.gz Notes Mirror
mandriva-cegcc-mingw32ce-0.51.0-1.i586.rpm Notes Mirror
cegcc-cegcc-0.51.0-1.i586.rpm Notes Mirror
mandriva-cegcc-cegcc-0.51.0.tar.gz Notes Mirror
cygwin-cegcc-cegcc-0.51.0-1.tar.gz Notes Mirror
cygwin-cegcc-mingw32ce-0.51.0-1.tar.gz

Mas acho q eles sao pra linux, certo ?!

Além do cegcc-mingw32ce-0.50-1.i586.rpm, eu preciso de mais alguma coisa ?

Gracias pela atençao.

@braços Ale
Imagemr]
Avatar do usuário
binho_fasa
Usuário Nível 2
Usuário Nível 2
Mensagens: 93
Registrado em: 06 Jul 2004 12:53
Localização: Brazil
Contato:

Re: Harbour no WM6

Mensagem por binho_fasa »

Amigos, tenho visto algumas empresas usando o Terminal Server client no Windows Mobile e um servidor com Windows XP/2000/2003. Com isso, o aplicativo é desenvolvido em qualquer linguagem (xHarbour, Delphi, etc) usando a resolução baseada no padrão do Windows Mobile. Eu pessoalmente nunca testei a solução, mas acredito ser menos dolorosa.

Abraços,

Fabio Souza.
Avatar do usuário
rochinha
Administrador
Administrador
Mensagens: 4664
Registrado em: 18 Ago 2003 20:43
Localização: São Paulo - Brasil
Contato:

Re: Harbour no WM6

Mensagem por rochinha »

Amiguinhos

Também usei TS em um Windows Mobile configurado e rodando num emulador, precisei apenas criar uma versão com as dimensões da tela do PocketPC e pronto.

Como existe TS para PocketPC e Palm, acho até que seja possivel usar PalmTX ou Tungsten, que são muito baratos, para acessar via TS uma aplicação empresarial.

Para quem quizer testar o Mobile TS para Palm http://www.palmgear.com/index.cfm?fusea ... odID=52506
OPS! LINK QUEBRADO? Veja ESTE TOPICO antes e caso não encontre ENVIE seu email com link do tópico para [url=mailto://fivolution@hotmail.com]fivolution@hotmail.com[/url]. Agradecido.

@braços : ? )

A justiça divina tarda mas não falha, enquanto que a justiça dos homens falha porque tarda.
Responder