Recent

Author Topic: KOL-CE. Compiler defines  (Read 10063 times)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
KOL-CE. Compiler defines
« on: January 14, 2009, 11:22:25 pm »
Hi,
I installed KOL-CE latest 2.80.2 version. Lazarus snapshot Lazarus-0.9.27-18282-fpc-2.2.3 and this same version of cross arm. I installed KOL step by step like in http://wiki.lazarus.freepascal.org/KOL-CE. I create new KOL Toolkit application, changing widget to WinCE (beta) and Target Platform to WinCE, CPU family: arm. When I try build it can't find TKolForm, so I add -dLAZIDE_MCK defines. But now it cand find mirrors, so I add kol mck folder to unit files. Now it can't find CodeToolManager, so I add this path to unit files too, but now it cant find unix file, when I add it then it can't find another file and over over again. What's going on? Which compiler defines I must add to build WinCE project?
Greetings

System: Windows Vista 32
« Last Edit: January 14, 2009, 11:24:40 pm by Dibo »

alepio

  • New Member
  • *
  • Posts: 23
Re: KOL-CE. Compiler defines
« Reply #1 on: January 15, 2009, 06:51:02 pm »
All correct.
But you must save the project before of compiling.

Before SAVE PROJECT
Quote
unit1.pas(12,23) Error: Identifier not found "TKOLForm"
After SAVE PROJECT
Quote
La build del progetto "project1" è stata completata con successo. :)
I try to translate: The project build was complitly with success

Hi
alessandro

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: KOL-CE. Compiler defines
« Reply #2 on: January 15, 2009, 08:10:06 pm »
First what I always do is saving project :) (for safety). So, this is not reason :/ . I think the problem is in compiler defines. I remember, when I few year ago write some in KOL in Delphi, KOL Projects automaticaly fill required defines. But in Lazarus this field is empty. I always have problems with paths in lazarus (I don't have any space in installation directory)

P.S. Sorry for my english ;)

Dibo

  • Hero Member
  • *****
  • Posts: 1048
Re: KOL-CE. Compiler defines
« Reply #3 on: January 17, 2009, 09:49:34 pm »
I resolved problem. I add only KOL_MCK define and paths to KOL and MCK files. But I have few questions:

1. I have windows mobile 6.1 and Samsung i780. My application have another header with caption and close button, but don't have close button on top-right screen position (windows taskbar). Why? I try with various border style and windows state, but it doesn't help. Only with fbsToolWindow close button on taskbar is visible, but when I click on it nothing is happen.

2. Default KOL project with empty form have 186 kB. It's normal? When I try to use strip.exe i have error "File format not recognized". When I write programs in KOL on Windows32 my exec have ~30 kB

PepiDavi

  • Newbie
  • Posts: 1
Re: KOL-CE. Compiler defines
« Reply #4 on: February 02, 2009, 10:58:56 pm »
Hi all.

I have read carefully almost all topics and posts concerning WinCE, but I still can't compile my KOL-CE "Hello World" first project.

The error message is
"MIRROR.PAS(95,15) Fatal: Can't find unit CodeToolManager used by mirror"

I have followed all installation instructions found.
I use Lazarus 0.9.27 with FPC 2.2.2.
The ARM cross compiler is also 0.9.27

I have had exactly the same problems with the "official" 0.9.26 version.


Does anybody have an idea ?

Thx

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
Re: KOL-CE. Compiler defines
« Reply #5 on: March 20, 2009, 08:43:37 pm »
I resolved problem. I add only KOL_MCK define and paths to KOL and MCK files. But I have few questions:

1. I have windows mobile 6.1 and Samsung i780. My application have another header with caption and close button, but don't have close button on top-right screen position (windows taskbar). Why? I try with various border style and windows state, but it doesn't help. Only with fbsToolWindow close button on taskbar is visible, but when I click on it nothing is happen.

2. Default KOL project with empty form have 186 kB. It's normal? When I try to use strip.exe i have error "File format not recognized". When I write programs in KOL on Windows32 my exec have ~30 kB

Can you give me more detaisl where add the paths, and what folder did you add?
I have the same problem
Thanks
/BLueIcaro

BlueIcaro

  • Hero Member
  • *****
  • Posts: 792
    • Blog personal
Re: KOL-CE. Compiler defines
« Reply #6 on: March 21, 2009, 03:17:23 pm »
Well, I found the problem.

/BlueIcaro

 

TinyPortal © 2005-2018