Recent

Author Topic: KOL-CE - compact applications for WinCE  (Read 113982 times)

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 152
KOL-CE - compact applications for WinCE
« on: October 19, 2007, 12:51:15 am »
I finally made the first public release of KOL-CE library.
Here is a project page: http://wiki.freepascal.org/KOL-CE

KOL-CE is ideal for WinCE development. EXE size of project with empty form starts from 47KB.

I hope it will be useful for all.

Legolas

  • Full Member
  • ***
  • Posts: 117
    • http://itaprogaming.free.fr
RE: KOL-CE - compact applications for WinCE
« Reply #1 on: October 19, 2007, 11:34:37 am »
That's a gret news, really! I have just dropped a WinCE project because its big size :D
Just a question: do you think it could be possible to use KOLCE and SQLite in the same project?

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 152
RE: KOL-CE - compact applications for WinCE
« Reply #2 on: October 19, 2007, 01:09:10 pm »
Sure. You can use database access components from FCL in KOL project. It will add 300-500KB to exe.
Also you can use some lightweight SQLite units which is not based on TDataSet. In such case there will be less footprint on exe size.
Also dont forget KOL does not have specialized DB controls (TDataSet based). You need to display data from tables using standard listview or something else.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
RE: KOL-CE - compact applications for WinCE
« Reply #3 on: October 19, 2007, 01:43:05 pm »
Great news, Yuri, that you ported KOL to wince.

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 152
RE: KOL-CE - compact applications for WinCE
« Reply #4 on: October 19, 2007, 02:51:20 pm »
Yes. Currently it is the first production ready GUI toolkit for FPC and WinCE. :)
P.S: I already created commercial product using KOL-CE: http://www.cp-lab.com/windows-mobile.html
If you look at screenshots you will see how powerful KOL-CE.

kakarotv5

  • New Member
  • *
  • Posts: 42
RE: KOL-CE - compact applications for WinCE
« Reply #5 on: October 24, 2007, 01:06:20 pm »
I have installed Lazarus v0.9.23 fpc 2.2.1 with cross arm wince.

I have installed a KOL-CE without problems.

I have tried to compile a program under arm-wince but I got the next error:

Code: [Select]
C:\lazarus\components\kol\KOL.PAS(57901) Error: Error while linking

If I compile a Win32 application it works well.

Some idea to fix this?

Thanks.
I have installed:
Lazarus-0.9.23-fpc-2.1.5-win32
Lazarus-0.9.23-fpc-2.1.5-cross-arm-wince-win32

I do not have a PDA but I use the Microsoft Windows Mobile 5.0 MSFP Emulator Images and Microsoft Windows Mobile 6 Emulator

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 152
RE: KOL-CE - compact applications for WinCE
« Reply #6 on: October 24, 2007, 03:31:21 pm »
You need to edit Windows PATH environment variable and add path to folder where win32 fpc binaries are located.

kakarotv5

  • New Member
  • *
  • Posts: 42
RE: KOL-CE - compact applications for WinCE
« Reply #7 on: October 24, 2007, 06:30:19 pm »
I do not understand you.

You can help me more?

Thanks.
I have installed:
Lazarus-0.9.23-fpc-2.1.5-win32
Lazarus-0.9.23-fpc-2.1.5-cross-arm-wince-win32

I do not have a PDA but I use the Microsoft Windows Mobile 5.0 MSFP Emulator Images and Microsoft Windows Mobile 6 Emulator

Leledumbo

  • Hero Member
  • *****
  • Posts: 8112
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: KOL-CE - compact applications for WinCE
« Reply #8 on: October 25, 2007, 07:19:33 am »
Do you have the same version of cross arm-wince and fpc from lazarus (which is 2.2.1)?

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 152
RE: KOL-CE - compact applications for WinCE
« Reply #9 on: October 25, 2007, 10:17:03 am »
kakarotv5: Read here about editing PATH: http://wiki.freepascal.org/KOL-CE#Usage

kakarotv5

  • New Member
  • *
  • Posts: 42
Re: RE: KOL-CE - compact applications for WinCE
« Reply #10 on: October 25, 2007, 12:56:36 pm »
Quote from: "Leledumbo"
Do you have the same version of cross arm-wince and fpc from lazarus (which is 2.2.1)?


Yes, I have installed Lazarus (Lazarus-0.9.23-fpc-2.2.1-20071017-win32.exe) with cross arm wince (Lazarus-0.9.23-fpc-2.2.1-20070916-cross-arm-wince-win32).
I have installed:
Lazarus-0.9.23-fpc-2.1.5-win32
Lazarus-0.9.23-fpc-2.1.5-cross-arm-wince-win32

I do not have a PDA but I use the Microsoft Windows Mobile 5.0 MSFP Emulator Images and Microsoft Windows Mobile 6 Emulator

kakarotv5

  • New Member
  • *
  • Posts: 42
Re: RE: KOL-CE - compact applications for WinCE
« Reply #11 on: October 25, 2007, 01:16:13 pm »
Quote from: "yury_sidorov"
kakarotv5: Read here about editing PATH: http://wiki.freepascal.org/KOL-CE#Usage


Thank you very much, I have solved the problem.

KOL-CE is a very good tool for the programmers of pocket computers.
I have installed:
Lazarus-0.9.23-fpc-2.1.5-win32
Lazarus-0.9.23-fpc-2.1.5-cross-arm-wince-win32

I do not have a PDA but I use the Microsoft Windows Mobile 5.0 MSFP Emulator Images and Microsoft Windows Mobile 6 Emulator

aji

  • New Member
  • *
  • Posts: 13
Cannot install
« Reply #12 on: October 26, 2007, 09:41:21 pm »
After trying to install Kol-ce since it was released a week ago without any luck, I though I would do a clean reinstall of everything.  However, I still can't get the package to install. This is what I  have done:

Installed FPC 2.2.0 and Lazarus 0.9.2.23 to default directories.
Installed Lazarus cross arm to default.
Copied Kol-ce dir. to Lazarus directory.

Started Lazarus.
Opened MirrorKOLPackage

Entered install:
"The package "MirrorKOLPackage 2.80" was marked for installation. Currently lazarus only supports static linked packages. The real installation need rebuilding and restarting of lazarus. Do you want to rebuild Lazarus now?"
Answering yes => "C:\lazarus\kol-ce-2.80\mck\MIRROR.PAS(88,15) Fatal: Can't find unit Forms used by mirror"

Removed package from installation
Recompiled Lazarus via tools rebuild. No errors.

Tried opening MirrorKOLPackage again, installed. It asks to rebuild lazarus:
=> "Unable to find file "forms.pp"
Check search path in Project->Compiler Options...->Search Paths->Other Unit Files."

Added path to forms.pp and wslclclasses.pp and tried install again.
=> "C:\lazarus\lcl\actnlist.pas(342,2) Fatal: Can't open include file "containedaction.inc""

Added path to include in include files under compiler action.
=> same error.

Added absolute path to include file =>
"Unable to find file "componenteditors.pas" Check search path in Project->Compiler Options...->Search Paths->Other Unit Files."

Added paths to ideintf and lcl\forms.=>
"Ambiguos unit found.
The unit baseideintf exists twice in the unit path of the IDE:
1."C:\lazarus\kol-ce-2.80\mck\lib\i386-win32\baseideintf.ppu"
2. "c:\lazarus\ideintf\units\i386-win32\baseideintf.ppu"
Hint: Check if two packages contain a unit with the same name."
Abort or ignore, Entered ignore. Same errors with
+ checkgroupeditordlg.ppu, checklistboxedirodlg.ppu, columndlg.ppu
componenteditors.ppu, frmselectprops.ppu, ideexterntoolintf.ppu,
dewindowintf.ppu,lazideintf.ppu +75 others.
Entered ignore on all. =>

Unable to find mirror.pas

I tried to add the path to this under compiler options, other units, but
after selecting it and clicking ok, it didn't show up on the path line. I
also tried typing it in, but it disappeared when I went out of compiler
options.

I guess I'm really stuck. Any ideas? I was really hoping that I could use
this to program for my Pocket PC, so that the exe file wasn't so big.

Thanks!

Leledumbo

  • Hero Member
  • *****
  • Posts: 8112
  • Programming + Glam Metal + Tae Kwon Do = Me
RE: Cannot install
« Reply #13 on: October 27, 2007, 07:38:07 am »
I made it to compile at the first time compilation simply by putting the kol-ce directory under components. Maybe this will help:
1. Copy all and hidden messages to clipboard, and check with a text editor (messages tab doesn't show everything). This message:
Quote
"C:\lazarus\kol-ce-2.80\mck\MIRROR.PAS(88,15) Fatal: Can't find unit Forms used by mirror"
possibly not the real error.
2. This one:
Quote
"C:\lazarus\lcl\actnlist.pas(342,2) Fatal: Can't open include file "containedaction.inc""
menas that Lazarus tries to recompile LCL, which shouldn't happened.
3. Don't add path to LCL source, it will only complicate the errors. That's why
Quote
"Ambiguos unit found.
The unit baseideintf exists twice in the unit path of the IDE:
1."C:\lazarus\kol-ce-2.80\mck\lib\i386-win32\baseideintf.ppu"
2. "c:\lazarus\ideintf\units\i386-win32\baseideintf.ppu"
Hint: Check if two packages contain a unit with the same name."
Abort or ignore, Entered ignore. Same errors with
+ checkgroupeditordlg.ppu, checklistboxedirodlg.ppu, columndlg.ppu
componenteditors.ppu, frmselectprops.ppu, ideexterntoolintf.ppu,
dewindowintf.ppu,lazideintf.ppu +75 others.
Entered ignore on all.
appears, because kol-ce package has also compiled the LCL, and if you see under its compiler options, in unit output directory you'll see "lib\$(TargetCPU)-$(TargetOS)". This means EVERYTHING that this package compiles will be in that directory.
4. Read this before going any further.

yuriy_sydorov

  • Full Member
  • ***
  • Posts: 152
Re: Cannot install
« Reply #14 on: October 27, 2007, 12:09:03 pm »
Quote from: "aji"

Installed FPC 2.2.0 and Lazarus 0.9.2.23 to default directories.


I suspect FPC versions conflict. Lazarus comes with some version of FPC already. Usually you dont need to install fpc separately. Maybe you downloaded Lazarus with fpc 2.2.1 bundled with it, but MCK package is compiled by fpc 2.2.0 or vice versa...