All information is in these files:
package/winuni/HARBOUR_README_MINGWARM
package/winuni/RELNOTES
INSTALL
Viktor
Oh, for Linux. I'm not sure I ever tried that case.
> Any Idea ?
Check autodetection locations in config/global.mk
Viktor
It's already done for Windows. Read it
and report what's unclear.
Viktor
If everyone wait for someone else's result, we will get nowhere.
Is there an epidemic here? Everyone keep asking questions
and ignoring help, or unwilling to do any homework or even giving
any feedback.
Let me note that's not how free software work.
Or maybe this just falls into the case when someone doing
an effort which no one needs or appreciates, so the effort is
useless.
Viktor
Well, this file is installed into <harbour_root>/comp/mingwarm/
in binary installations, and it's meant to guide those users, so
if you translate it into this context, /opt should go to f.e.
C:\hb20\comp\mingwarm\opt\mingw32ce
In such way it will be automatically used by hbmk2 shipped with
Harbour binary distro.
If you want to use it to build Harbour itself, just unpack it
to _anywhere_, and it to PATH. Nothing special.
Viktor
You force compiler value using an environment variable. Delete it.
> C:\harbour>hbmk2 test.prg -platform=wce -compiler=mingwce
> hbmk2: Processing environment options: -compiler=mingw
> hbmk2: Error: Compiler value unknown: mingwce
> enviroment
The name of mingw compiler for wce is mingwarm. Pls
use INSTALL doc.
Viktor
Seems like incomplete/corrupt source tree.
Viktor
You can use win-make.exe for simplicity.
Yes, cygwin can be a bitch to install, this step seems
familiar (though it was out of scope for my documents).
> Then, I restarted the process and it finished (with an error in lib lzf) but
> finished !!!!
Good!
Looks good. The lzf problem... I remember having it
fix once already, seems it was not enough.
I'd be grateful if Petr could fix this, it was listed as
TOFIX since the first commit.
> Obviously, I can't test it until I get an ARM device.
>
> Questions:
>
> a.- Can I test my hello program for win ce in my Windows XP Host?
With a WinCE emulator. I don't know the details though.
> c.- Is posible add support to Qt in cross build?
Depends on QT, Harbour has no problem with it.
> d.- Is posible to make Harbour for WinCE directly in WinCE?
No, it's a target only platform.
Viktor
Windows mobile 6.1:
Windows mobile 6.5:
2011/4/17 CarozoDeQuilmes <carozod...@gmail.com>
>
> Hi Viktor, many thanks.
> Questions:
>
> a.- Can I test my hello program for win ce in my Windows XP Host?
>
> CdQ
>
>
>
>
> --
> CdQ
--
Massimo Belgrano
No. You cannot use mingw for Windows to build wce apps.
Wrong.
Basic steps if you want to build the whole Harbour yourself:
1) Install cegcc (*aka 'mingwarm' or 'mingw for wince')
2) Install mingw
3) Setup PATH for mingw
4) Build Harbour for win/mingw (run 'win-make' from source root)
5) Setup PATH for cegcc
6) Build Harbour for wce/mingwarm (run 'win-make' from source root)
7) Run <harbour>/bin/win/mingw/hbmk2 <my.prg>
Basic steps if you want to use 2.0 win binary distro:
1) Install cegcc in <harbour>/comp/mingwarm/
(as described in HARBOUR_README_MINGWARM in that very dir)
2) Run <harbour>/bin/hbmk2 -platform=wce <my.prg>
Viktor
I'm building a harbour cross-compiler, host is linux, target is wce.
pisolo:/usr/local/src/harbour-project/harbour # ll bin/wce/mingw/
total 5924
-rw-r--r-- 1 root root 104050 Apr 19 13:24 harbour-21-wce-x86.def
-rwxr-xr-x 1 root root 2956098 Apr 19 13:24 harbour-21-wce-x86.dll
-rwxr-xr-x 1 root root 624660 Apr 19 13:19 harbour.exe
-rwxr-xr-x 1 root root 32722 Apr 19 13:24 hbi18n.exe
-rwxr-xr-x 1 root root 1770688 Apr 19 13:24 hbmk2.exe
-rwxr-xr-x 1 root root 143242 Apr 19 13:19 hbpp.exe
-rwxr-xr-x 1 root root 424332 Apr 19 13:24 hbtest.exe
pisolo:/usr/local/src/harbour-project/harbour # file bin/wce/mingw/hbpp.exe
bin/wce/mingw/hbpp.exe: PE32 executable for MS Windows (console) Intel
80386 32-bit
hbmk2 -platform=wce -trace -debug hello.prg
hbmk2: Processing environment options: -platform=wce
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Harbour compiler command (embedded):
(/usr/local/src/harbour-project/harbour/bin/linux/gcc/harbour.exe) -n2
hello.prg -w3 -o/tmp/hbmk_tqcxuu.dir/
-i/usr/local/src/harbour-project/harbour/include -undef:.ARCH.
-D__PLATFORM__WINDOWS -D__PLATFORM__WINCE -D__LITTLE_ENDIAN__
-D__ARCH32BIT__
Harbour 2.1.0rc2 (Rev. -1)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'hello.prg'...
Lines 11, Functions/Procedures 1
Generating C source output to '/tmp/hbmk_tqcxuu.dir/hello.c'... Done.
hbmk2: C/C++ compiler command:
/opt/x86mingw32ce/bin/i386-mingw32ce-gcc -c -O3 -march=i586
-mtune=pentiumpro -g -W -Wall -pipe -DUNICODE -DUNDER_CE
-I/usr/local/src/harbour-project/harbour/include
/tmp/hbmk_tqcxuu.dir/hello.c /tmp/hbmk_9cna5h.c
hbmk2: Linker command:
/opt/x86mingw32ce/bin/i386-mingw32ce-gcc /tmp/hbmk_tqcxuu.dir/hello.o
/tmp/hbmk_tqcxuu.dir/hbmk_9cna5h.o -Wl,--start-group -lhbextern
-lhbdebug -lhbvm -lhbrtl -lhblang -lhbcpage -lgtcgi -lgtpca -lgtstd
-lgtwvt -lgtgui -lhbrdd -lhbuddall -lhbusrrdd -lrddntx -lrddcdx
-lrddnsx -lrddfpt -lhbrdd -lhbhsx -lhbsix -lhbmacro -lhbcplr -lhbpp
-lhbcommon -lhbmainwin -lcoredll -lws2 -lceshell -luuid -lole32
-loleaut32 -lwininet -lcommdlg -lcommctrl -lhbpcre -lhbzlib
-Wl,--end-group -ohello.exe
-L/usr/local/src/harbour-project/harbour/lib/wce/mingw
-L/usr/local/src/harbour-project/harbour/bin/wce/mingw
pisolo:/usr/local/src/harbour-project/harbour/tests # file hello.exe
hello.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit
Now I should move it to the mobile.... :-)
Thanks for noticing, I'll correct it, though it should be
told, that nobody should use this target. Maybe on Linux
there exist mingw compiler for Intel based x86 devices,
but it's surely a very niche area.
Maybe I will rather delete it, because it seems to confuse
users to a great deal.
Viktor
Only if you have an Intel x86 WinCE device,
which is not very widespread, to say the least.
Viktor
Oh yes, I did the wrong target !!!!
It should be ok:
pisolo:/opt/mingw32ce/bin # ./arm-mingw32ce-gcc -v
Using built-in specs.
Target: arm-mingw32ce
pisolo:/usr/local/src/harbour-project/harbour/tests # file hello*
hello.exe: PE32 executable for MS Windows 32-bit
hello.prg: ASCII C++ program text
Is it ok ???
... I don't know if it is a deprecated way or not... the toolchain was
obviously in the expected directory /opt/xxxx
To compile programs I used
hbmk2 -platform=wce wcecon.prg
then I tested the tests/wcecon.prg and it works... but... how can I
exit from browse() ???? I don't have the ESC key... can I simulate it
???
fp> real device, htc tytan II
From what i know, in this model of HTC is installed WM6 .
Can you take a look at this thread ?
"WIndows Mobile - the same problems Fri, 17 Dec 2010 14:00:58 +0100"
Could you compile the code below and let us know the results?
(code by Przemek)
------------------------------------------------------
proc main()
local i, h, n1, n2
? "test2"
for i:=1 to 1024
if h==NIL
? "starting at", hb_ntos(i)
endif
h:=fcreate("_tst2.dat")
n1:=i*32
n2:=fwrite(h,space(n1))
fclose(h)
if n1!=n2
? str(i,4), str(n1,5), str(n2,5), h
if inkey(10) != 13
exit
endif
endif
next
wait
return
----------------------------------------------------
and then modified version with:
for i:=641 to 1024
After tests paste here screens please.
TIA
--
Regards,
Jaroslaw Ksdziola
(any idea on missing ESC key from the keyboard ?? do you use
alternative soft-keywords ??)
fp> ok, I will later today
Thanks for info.
fp> (any idea on missing ESC key from the keyboard ?? do you use
fp> alternative soft-keywords ??)
Install on handheld any soft-keyboard with Esc key
- or -
insert 3 lines to wcecon.prg
------------------------------------------
Set Key 97 To proc_exit // (letter 'a')
****************
Proc proc_exit
****************
Keyboard Chr(27)
-------------------------------------------
--
Regards,
Jaroslaw Kadziola
Hi Francesco,
> (any idea on missing ESC key from the keyboard ?? do you use
> alternative soft-keywords ??)
Do you have CTRL emulator?
If yes then CHR( 64 + 27 ) == "[" so you can use
CTRL + [
and it should give the same keycode as ESC.
best regards,
Przemek
Do you know of a good instllable softkeyboard that is configurable ?
(the trick to map a key to ESC in prg ode is good, but I'd like a
"real" esc...)
BWT: I'm going to start a crossbuild of Qt for windows ce from
linux... somebody was able to do it... just testing... it may be
really interesting....
2011/4/21 Przemysław Czerpak <dru...@acn.waw.pl>:
fp> Do you know of a good instllable softkeyboard that is configurable ?
fp> (the trick to map a key to ESC in prg ode is good, but I'd like a
fp> "real" esc...)
I'm using good keyboard from :
http://firma.sunnysoft.cz/htc/
It's localization for cee or greek language.
--
Regards,
Jaroslaw Kadziola
By problems I mean this IF:
thanks
> Both tests completed withour problems.
Strange... i have few devices with WM5, WM6 and WM6.5.
On WM5 all is OK but on WM6 and WM6.5 i have big problems
with RDD. At this moment i haven't access to my
'harbour host' but after Easter i'll be back
to this topic.
Happy Easter !
--
Regards
Jaroslaw Kadziola