Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 28 total
Thread seeting up lazarus for wince
Sat, Jul 18 2009 6:28 AMPermanent Link

emanuel
hello,
I need to knowhow to setup lazarus for wince , I read many help documents and I post on
the lazarus forum but I did not get any help

Please advice

Thanks
Sat, Jul 18 2009 9:06 AMPermanent Link

Leslie
Emanuel,

I am new to Lazarus myself and have not used Lazarus for many months, but these should
still apply.

1. Get one of  the donwloads prepared for WinCe from here:
http://sourceforge.net/projects/lazarus/files/
2. Select "Project/Compiler options" from the Lazarus menu
3. Select the "Paths" tab  and set the  "LCL Widget type" ont he bottom to WinCE
4  Go to the "Code" tab and set Target OS to WinCE, and "Target CPU family" according the
device or emulator you want to compile for. (Most likely arm)

You should be all set now.

5. You will probably find the executable to be tooo large because of all the  debug info
compiled into it. For ARM CPU's you can use  arm-wince-strip.exe to compact the exe.
(Located int the "bin\i386-win32\" directory of the FPC compiler)

Leslie
Sat, Jul 18 2009 10:13 PMPermanent Link

emanuel
I dont know how to thank you not even moderators at Lazarus give me strait answer like
yours ,

yes the file is too big about 11 mb !! but one problem:
I tried to run it on the device (ce 4.2) and I get not a vlid windows ce applicaiotn error
!! any advice ?

another question please, can Lazarus really build all kinds of wince applications without
problems or I will get stuck later and get back to ms visual studio ?

Thanks
Sun, Jul 19 2009 7:20 AMPermanent Link

Leslie
Emanuel,



<<I tried to run it on the device (ce 4.2) and I get not a vlid windows ce applicaiotn error
!! any advice ?>>

If the compiler setttings were correct, than you must have copied the wrong file, or did
not succeed to overwrite the file on the device. WinCe does not close the apps as someone
with win32  would expect. You better check if the app is  still running in background
before trying to overwrite the file.

You could try to  delete all previously compiled exe files (PC & PDA) and than compile it
again. This way you can avoid most problems.

<<another question please, can Lazarus really build all kinds of wince applications without
problems or I will get stuck later and get back to ms visual studio ?>>

I was about to find that out myself,  but  was dragged away by a Java project by the time
the WinCe version of EDB became useable.  

Leslie

Thanks
Sun, Jul 19 2009 7:22 AMPermanent Link

Leslie
correction:

WinCe does not close the apps as someone with win32  EXPERIENCE would expect.
Sun, Jul 19 2009 7:26 AMPermanent Link

Leslie
Plus the "Thanks" atthe end remained there accidentaly from your post.

Sorry for the misstakes.
Sun, Jul 19 2009 9:18 AMPermanent Link

emanuel
I am aware that the application may not be closed so I deleted any previous versions, I
still got the error and I have no other wince devices to test on them but I tested on the
emulator and I got the same message

here is a screen shot
http://i26.tinypic.com/sec01z.jpg
Sun, Jul 19 2009 10:20 AMPermanent Link

"Raul"

I don't have any Lazarus and WinCE experience but used to write apps with
EVC.

Error you're seeing looks like exe is not for the correct cpu or platform
you're using - i'd suggest confirming the target platform and other settings
in Lazarus.

What's the architecture of your device (arm or other) ?

Raul



"emanuel" <emanuel22@gmail.com> wrote in message
news:5066C764-5E22-4028-8063-E58B1E84312B@news.elevatesoft.com...
>I am aware that the application may not be closed so I deleted any previous
>versions, I
> still got the error and I have no other wince devices to test on them but
> I tested on the
> emulator and I got the same message



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4258 (20090719) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



Sun, Jul 19 2009 8:33 PMPermanent Link

emanuel
Intel XScale 312 MHz processor

symbol mc1000
Mon, Jul 20 2009 12:36 AMPermanent Link

"Raul"
That is ARM so instructions Leslie gave before should work (wince widget
type, target os wince and target cpu arm).

So how is the environment setup. Specifically :
- what's the compiler you are using? (Environment-> options -> compiler
path)
- project -> compiler options -> Code : target platform settings ?
- project -> compiler options -> Linking : debugging settings ?


Raul

> Intel XScale 312 MHz processor
>
> symbol mc1000



__________ Information from ESET NOD32 Antivirus, version of virus signature database 4259 (20090719) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com



Page 1 of 3Next Page »
Jump to Page:  1 2 3
Image