Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 38 total
Thread Compiling
Thu, Oct 15 2009 6:43 AMPermanent Link

Richard Harding
I am working through the tutorial Building an Windows CE Application with Lazarus and
ElevateDB.

I have installed Lazarus on Windows XP and have an Windows CE emulator installed.  I can
compile an application in Lazarus to run in an Windows 32 environment.  How do I get
Lazarus to compile an application for Windows CE?

Richard Harding
Thu, Oct 15 2009 8:58 AMPermanent Link

Leslie
Thu, Oct 15 2009 2:08 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< I have installed Lazarus on Windows XP and have an Windows CE emulator
installed.  I can compile an application in Lazarus to run in an Windows 32
environment.  How do I get Lazarus to compile an application for Windows CE?
>>

You need to change the target compiler properties for the project.  See here
for steps on how to do so in Lazarus:

http://www.elevatesoft.com/newsgrp?action=openmsg&group=16&msg=9323&page=1#msg9323

--
Tim Young
Elevate Software
www.elevatesoft.com

Fri, Oct 16 2009 2:54 AMPermanent Link

Richard Harding
Thank you Leslie and Tim.

I am making progress.  Lazarus seems to be configured to produce the right output.

I still have not managed to get a Windows CE emulator for ARM running despite downloading
hundreds of MBs.  Can you point me to the right place to download what I need?

Thank you.

Richard Harding
Fri, Oct 16 2009 3:09 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< I still have not managed to get a Windows CE emulator for ARM running
despite downloading hundreds of MBs.  Can you point me to the right place to
download what I need? >>

Do you have Visual Studio 2005 or 2008 ?  Those products are the easiest way
to get the emulators and the emulator manager.

--
Tim Young
Elevate Software
www.elevatesoft.com

Sun, Oct 18 2009 9:32 PMPermanent Link

Richard Harding
Tim,

>>Do you have Visual Studio 2005 or 2008 ?  Those products are the easiest way to get the
emulators and the emulator manager.

No, I do not have Visual Studio.  I have managed to get an emulator working.  Below are a
couple pointers which may help others if they are trying the same thing.


I found Microsoft's Download Device Emulator 3.0 at:
http://www.microsoft.com/downloads/details.aspx?familyid=A6F6ADAF-12E3-4B2F-A394-356E2C2FB114&displaylang=en


The Windows Mobile 6 SDK contains a number of OS kernel image files which can be obtained at:
http://www.microsoft.com/downloads/details.aspx?FamilyID=20686a1d-97a8-4f80-bc6a-ae010e085a6e&displaylang=en


Below a couple links I found useful.

http://dotnet.sys-con.com/node/315038
http://blog.enterprisemobile.com/2008/05/device-emulator-setup-1/


All I need to do now is install ElevateDB in Lazarus.


--
Richard Harding
Mon, Oct 19 2009 7:35 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< All I need to do now is install ElevateDB in Lazarus. >>

Just install the design-time package, and then rebuild Lazarus, and you
should be all set.  Then you can use the project's compiler options to
switch back and forth between the Win32 and WinCE compilers.

If you run into a snag, feel free to call or Skype and I can walk you though
the process.

--
Tim Young
Elevate Software
www.elevatesoft.com

Mon, Oct 19 2009 8:49 PMPermanent Link

Richard Harding
>>If you run into a snag, feel free to call or Skype and I can walk you though the process.

Thank Tim - I may need to do that soon.

When I compile the Shopping list project, I receive 4 "Identifier not found:" errors in
the edbenv unit: GetCurrentDirectoryW, GetSystemDirectoryW, GetComputerNameW, GetUserNameW.

These functions are defined in the file "unifun.inc" which is included in the file
\source\rtl\win32\windows.pas in the Lazarus directory.

However, these functions do not appear to be defined in the file
\units\arm-wince\rtl\windows.ppu in the Lazarus directory which is the unit that is being
used with the options that I am using.


I replaced these functions with string constants to temporarily resolve these errors.
(Constants have already been defined in edbenv unit for WINCE_COMPUTER_NAME and
WINCE_USER_NAME.)


I then received "Identifier not found: " errors in edbosfilemgr unit: LockFile,
UnlockFile, SetErrorMode.  



My Lazarus settings are:

Compiler Options
===========
Paths tab
----------

Other Unit files - C:\lazarus\fpc\2.2.4\units\arm-wince\;C:\Program Files\ElevateDB LCL
Standard with Source\Version 2\Lazarus (Win32-Unicode) 0.926\code\source\
Include files - C:\lazarus\fpc\2.2.4\units\arm-wince\
LCL Gadget Type - wince

Parsing tab
-------------

Assembler style - Default

Code tab
----------

Target Platform - Wince
Target CPU family - ARM
Target Processor - default
Optimization - Level 1

Linking tab
------------

All unchecked except Strip Symbols from Executable

Environment Options
=============

Lazarus directory - C:\lazarus\
Compiler path - C:\lazarus\fpc\2.2.4\bin\i386-win32\fpc.exe
FPC source directory - C:\lazarus\fpc\2.2.4\source\
Make path - C:\lazarus\fpc\2.2.2\bin\i386-win32\make.exe




Richard Harding
Tue, Oct 20 2009 5:24 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< Thank Tim - I may need to do that soon. >>

No problem.

<< When I compile the Shopping list project, I receive 4 "Identifier not
found:" errors in the edbenv unit: GetCurrentDirectoryW,
GetSystemDirectoryW, GetComputerNameW, GetUserNameW. >>

These means that the WINCE compiler directive is not getting set.  Did you
do a Run/Build All ?

<< My Lazarus settings are: >>

Can you just hit the Show Options button and copy and paste that here ?
It's just easier to read exactly what the compiler will be doing. Smiley

--
Tim Young
Elevate Software
www.elevatesoft.com

Tue, Oct 20 2009 6:07 AMPermanent Link

Richard Harding
>>Can you just hit the Show Options button and copy and paste that here ?
It's just easier to read exactly what the compiler will be doing. Smiley

Hi Tim,

The compiler options are:
-MObjFPC -Sgi -O1 -TWinCE -Parm -Xs -vewni -l -FiC:\lazarus\fpc\2.2.4\units\arm-wince\
-FuC:\lazarus\fpc\2.2.4\units\arm-wince\ "
-FuC:\Program Files\ElevateDB LCL Standard with Source\Version 2\Lazarus (Win32-Unicode)
0.926\code\source\"
-FuC:\lazarus\lcl\units\arm-wince\ -FuC:\lazarus\lcl\units\arm-wince\wince\
-FuC:\lazarus\packager\units\arm-wince\
-Fu. -oshoplist.exe -dEDB_UNICODE -dLCL -dLCLwince

Yes, I did a Build All.

--
Richard Harding
Page 1 of 4Next Page »
Jump to Page:  1 2 3 4
Image