Recent

Author Topic: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version  (Read 20623 times)

abrito

  • Jr. Member
  • **
  • Posts: 69
Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« on: August 26, 2009, 07:59:20 pm »
i try to compile a application for wince arm processor with rxdbgrid, lazarus compile ok
but when I test the application on device, if the rxdbgrid is in the first form the application don't start, no error, if the rxdbgrid is on a second form then the application start but when I call a the second form all application close whithout open the form.

rxfcp is update svn version.

any solution for this issue.

thanks

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #1 on: August 26, 2009, 08:17:37 pm »
I can't even compile for WinCE with the latest 2.3.1 snapshots....
Lazarus/FPC on Linux

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #2 on: August 26, 2009, 09:42:53 pm »
that is because last snapshot don't compile lcl correct

you must compile by manual and its easy.
you must go to command line
go to lazarus dir
and enter

PATH=C:\lazarus\fpc\2.3.1\bin\i386-win32
make lcl LCL_PLATFORM=wince PP=ppcrossarm.exe CPU_TARGET=arm OS_TARGET=wince

then you can compile for wince

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #3 on: August 27, 2009, 09:06:09 am »
What last snapshot (of what date) did not compile the LCL correctly?
What is / was wrong with it?

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #4 on: August 27, 2009, 10:38:32 am »
Snapshots : Lazarus-0.9.29-21448-fpc-2.3.1-20090826-win32.exe and
                Lazarus-0.9.29-21448-fpc-2.3.1-20090826-cross-arm-wince-win32.exe

if you go to menu tools/Configure "Build Lazarus".../ select LCL Target Wince (beta)
 and then build, it compiles but the units go to \lcl\units\i386-win32\wince and the compiler can't find them here.


but if I in the advance build Options int Target OS put wince and target CPU put arm the lcl compiles ok.

« Last Edit: August 27, 2009, 10:47:26 am by abrito »

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #5 on: August 27, 2009, 10:41:48 am »
If you want to compiler for arm-wince, you should also change the target cpu (ARM) and target os (wince).

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #6 on: August 27, 2009, 10:48:24 am »
yes I see this today. and for rxlib any soluction?

if I put only a Trxmemorydata it compiles ok and the application runs ok.

the problem is with rxdbgrid, and other components.
« Last Edit: August 27, 2009, 10:51:42 am by abrito »

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #7 on: August 27, 2009, 11:35:23 am »
the color property of tbibtn as no effect. in the same snapshot.
the showmessage('teste'); closes the application.
tdateedit the bitbtn disapears on the device but if i click in the place it show the calendar.
« Last Edit: August 27, 2009, 11:59:30 am by abrito »

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #8 on: August 27, 2009, 05:50:49 pm »
but if I in the advance build Options int Target OS put wince and target CPU put arm the lcl compiles ok.

Doesn't work with the latest snapshots:

Lazarus-0.9.29-21460-fpc-2.3.1-20090827-win32.exe
Lazarus-0.9.29-21460-fpc-2.3.1-20090827-cross-arm-wince-win32.exe

Anyway, the daily snapshots are supposed to be unstable so I will stop complaining. ;)
Lazarus/FPC on Linux

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #9 on: August 27, 2009, 06:32:03 pm »
yes it, it compile with
Lazarus-0.9.29-21460-fpc-2.3.1-20090827-win32.exe
Lazarus-0.9.29-21460-fpc-2.3.1-20090827-cross-arm-wince-win32.exe

try 2 times it compiles

the snapshots are for test only and report bugs i think.

thanks

but I'm trying to debug the error in showmessage and find the problem in file Lresources.pp line 3005 FPResource := FindResource(HInstance, TResourceType(ResName), RT_RCDATA);
the resname is of type TDialogPrompt in the case of showmessage the error is "External: SIGSEGV".

any help please!!

thanks

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #10 on: August 27, 2009, 07:21:57 pm »
yes it, it compile

Sure it does, if in unit WinCEWSDialogs.pp, line 239, you replace

Code: [Select]
Dec(FilterComboBox.Top, SaveEdit.Height);
with

Code: [Select]
FilterComboBox.Top := FilterComboBox.Top - SaveEdit.Height;
Prior to that the error message was:

Code: [Select]
> wincewsdialogs.pp(239,66) Error: Can't take the address of constant expressions
Man, this was not very intuitive... The good news is, now I can build the project for WinCE.
« Last Edit: August 27, 2009, 07:39:20 pm by Troodon »
Lazarus/FPC on Linux

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #11 on: August 27, 2009, 07:56:51 pm »
yes I forget that issu.


now try put showmessage('Test'); and try run the aplication on emulator or device and you have surprise.

Troodon

  • Sr. Member
  • ****
  • Posts: 484
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #12 on: August 28, 2009, 03:31:34 am »
I can confirm the issue, both in the emulator and on the handheld device running Windows Mobile 6.1. ShowMessage('...') kills the application.
Lazarus/FPC on Linux

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #13 on: August 28, 2009, 09:53:09 am »
Thanks for the information. I have no idea about the ShowMessage problem.

I fixed the compilation with fpc 2.3.1 in r21473.

I tried to fix the build script for building the fpc 2.5.1 based installers (see ftp://ftp.hu.freepascal.org/pub/lazarus/) in r21744.

abrito

  • Jr. Member
  • **
  • Posts: 69
Re: Rxfpc Lazarus 0.9.29 fpc 2.3.1 Svn version
« Reply #14 on: August 28, 2009, 11:36:23 am »
I,
Vicent Snijders here can I find the realeas fpc 2.3.1 r21473 the ftp only gives 21469

thanks

 

TinyPortal © 2005-2018