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


r]