Forum > PDAs and Smartphones
makeing interfaces for wince?
roozbeh:
Hi...
i am trying to build interfaces and other things for wince but i cand fine any instructions!
i made this fpc.cfg file in interfaces dir
--- Code: ----Twince
-Fue:\fpc\fpc\units\arm-wince
-Fie:\fpc\lazarus\lcl
-Fue:\fpc\source\fcl\inc
-Fue:\fpc\lazarus\lcl\widgetset
-Fie:\fpc\lazarus\lcl\widgetset
-Fue:\fpc\source\fcl\image
-Fie:\fpc\lazarus\lcl\include
-Fue:\fpc\lazarus\lcl
-XParm-wince-
-FDe:\fpc\arm
--- End code ---
but it ends in interfaces.ppu with error "Can't find unit Unix"
and when i add -dWin32 then it builds everything but give error about override problem!
besides is there anyway to do this in lazarus?instead of creating a .bat file and running that?
felipemdc:
Take a look at the wiki: http://wiki.lazarus.freepascal.org/index.php/Windows_CE_Interface
Step 2 will compile LCL
If you want to compile FCL and other things, there are instructions here:
http://www.freepascal.org/wiki/index.php/WinCE_port#Building_FPC_libraries
roozbeh:
well thanks i managed to compile everything and it also compiled my one form application
but the problem is it doesnt run.
error message is file not found or one of its componenets.
seems like a missing dll file is linked or i dont know.
felipemdc:
What components did you drop on the Form? Currently only TForm itself, TButton and TEdit work.
It's really easy to add new components and new properties, just look at the current wince code, at the win32 code and try to follow the same guidelines. I can guide you if you need help doing this.
The code is located at: /lcl/interfaces/wince
There is information about it here: http://wiki.lazarus.freepascal.org/index.php/LCL_Internals
and here: http://wiki.lazarus.freepascal.org/index.php/Windows_CE_Interface#How_to_add_a_new_control
roozbeh:
well just a simple form...but i tried a lot and couldnt make it run.
can you see if your simple form exe also have these dependencies?
dependency walker report me these dependencies:
coredll.dll
coredll.dll
commdlg.dll
commctrl.dll
ceshell.dll
aygshell.dll
also with simply those instruction given in wiki i couldnt compile lcl.
in gtk directory it exit with error code of glib unit not found.
well anyway i dont think gtk is neccessary.
my project1.lpr
--- Code: ---program project1;
{$mode objfpc}{$H+}
uses
Interfaces, // this includes the LCL widgetset
Forms
{ add your units here }, Unit1;
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
--- End code ---
my unit1.pas
--- Code: ---unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Buttons;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
initialization
{$I unit1.lrs}
end.
--- End code ---
my unit1.lfm
--- Code: ---object Form1: TForm1
Caption = 'Form1'
ClientHeight = 300
ClientWidth = 400
PixelsPerInch = 96
HorzScrollBar.Page = 399
VertScrollBar.Page = 299
Left = 290
Height = 300
Top = 149
Width = 400
object Button1: TButton
BorderSpacing.InnerBorder = 2
Caption = 'Button1'
TabOrder = 0
Left = 101
Height = 25
Top = 41
Width = 75
end
end
--- End code ---
well i can only think of wrong ppcrossarm.exe being built to produce this errors?
maybe if you send me yours i can figure that too.
Navigation
[0] Message Index
[#] Next page