Página 1 de 1

Harbour no WM6

Enviado: 20 Nov 2008 10:29
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

Re: Harbour no WM6

Enviado: 21 Nov 2008 20:41
por sygecom
Sera que a LIB da Hwgui gera para WinCE tmb. usando Harbour ? ai é uma mão na roda, alias duas mãos....

Re: Harbour no WM6

Enviado: 15 Dez 2008 16:11
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

Re: Harbour no WM6

Enviado: 18 Dez 2008 09:49
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.

Re: Harbour no WM6

Enviado: 22 Dez 2008 11:07
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