Forum > Windows CE

KControls 1.7 + WinCE

(1/3) > >>

CrazyDron:
Good day!

I try to install KControls package on clean build of Lazarus Win32+cross_arm_ce. Operating system - Win7 x64.

I add control TKGrid on form, compile it and run. It works.

But when I change project options to:
1. Target OS: WinCE
2. Target CPU: arm

compilation stops at unit CairoCanvas and says
cairocanvas.pas(17,13) Fatal: Cannot find unit Cairo, used in CairoCanvas of package cairocanvas_pkg.

Units Pango, PangoCairo, GLib2 are not founded too.

As I understand - cannot put i386-units into arm-ce compiler.

Maybe someone can help me?

UPD: my first step was writing to developer. He says:
I think your Lazarus installation or build configuration is corrupt under Linux or not ready for cross compiling. I am not expert here. Please search or ask on Lazarus forum http://forum.lazarus.freepascal.org/. There are many clever people that might be able to help you.

zmoky:
I have a similar problem.

I installed from sourceforge:

lazarus-1.6.2-fpc-3.0.0-win32.exe
lazarus-1.6.2-fpc-3.0.0-cross-arm-wince-win32.exe

And for LCL Widget Type: wince, Target OS: WinCE, Target CPU: arm I get:


--- Code: ---Hint: (11030) Start of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.0.0 [2016/11/12] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: WinCE for ARM
(3104) Compiling cairocanvas_pkg.pas
(3104) Compiling cairocanvasall.pas
(3104) Compiling cairocanvas.pas
C:\lazarus\components\cairocanvas\cairocanvas.pas(17,13) Fatal: (10022) Can't find unit Cairo used by CairoCanvas
Fatal: (1018) Compilation aborted
Error: C:\lazarus\fpc\3.0.0\bin\i386-win32\ppcrossarm.exe returned an error exitcode
Hint: (11030) Start of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.0.0 [2016/11/12] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: WinCE for ARM
(3104) Compiling lhelpcontrolpkg.pas
Free Pascal Compiler version 3.0.0 [2016/11/12] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: WinCE for ARM
(3104) Compiling pascalscript.pas
(3104) Compiling PascalScript_Core_Reg.pas
Hint: (11030) Start of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.0.0 [2016/11/12] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: WinCE for ARM
(3104) Compiling datetimectrls.pas
Hint: (11030) Start of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.0.0 [2016/11/12] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: WinCE for ARM
(3104) Compiling dbflaz.pas
Hint: (11030) Start of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.0.0 [2016/11/12] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: WinCE for ARM
(3104) Compiling externhelp.pas
Hint: (11030) Start of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.0.0 [2016/11/12] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: WinCE for ARM
(3104) Compiling fpcunitide.pas
Hint: (11030) Start of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file C:\lazarus\fpc\3.0.0\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.0.0 [2016/11/12] for arm
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: WinCE for ARM
(3104) Compiling instantfpclaz.pas
(3104) Compiling instantfpcregisterlaz.pas

--- End code ---

CrazyDron:
zmoky, I try lot of variants.

Works only one: Lazarus 0.9.28 beta + latest KControls. Works both under x86 and arm/ce.

So I'm using two versions together. When I need to build very small exe - working in 0.9.28+KControls, normal work is doing in 1.4.4/1.6.2.

tk:
Since I am the author of KControls, can I somehow simulate WinCE target on Windows?
I don't have a physical WinCE device.

I would like to test it with Lazarus 1.7.
If it works with 0.9.28 then clearly there are only some minor issues.

Shortly reviewed this http://wiki.lazarus.freepascal.org/WinCE_Programming_Tips
but did not find anything.

Btw. Are there still many people using WinCE? Thought it was a dead technology.

CrazyDron:
tk, it's good to see author here  :)
Yes, some people uses WinCE-programming.

For example, here is my software: http://4pda.ru/forum/index.php?showtopic=721507
At spoiler "Additional software" (Дополнительный софт) - first file is WinCE-emulator from Microsoft, tuned for our tasks. Therefore - you can use it for launching arm/ce-exe's.

Navigation

[0] Message Index

[#] Next page

Go to full version