Recent

Author Topic: Compiled app doesn't run on device itself  (Read 14373 times)

ertank

  • Full Member
  • ***
  • Posts: 244
Re: Compiled app doesn't run on device itself
« Reply #15 on: August 29, 2015, 05:10:26 pm »
Hi vincocoka,

There is no problem with console applications. They run OK. I intend to run regular, graphical "form" application. They are the ones causing problem.

vincococka

  • Full Member
  • ***
  • Posts: 101
Re: Compiled app doesn't run on device itself
« Reply #16 on: August 29, 2015, 06:49:01 pm »
Have you tried to build debug version and run it via gdb?
---
  Guide me God and I`ll find you

ertank

  • Full Member
  • ***
  • Posts: 244
Re: Compiled app doesn't run on device itself
« Reply #17 on: August 30, 2015, 01:19:18 am »
I don't know how to do that. We might try this via TeamViewer. I'm on GMT+2 European timezone.

avra

  • Hero Member
  • *****
  • Posts: 1662
    • Additional info
Re: Compiled app doesn't run on device itself
« Reply #18 on: August 31, 2015, 11:40:35 am »
Device I am testing is running on Windows CE 6.00, Samsung Processor, Cortex A-8-S5PV2 which seems to be claimed as ARMv7-A.
According to http://wiki.lazarus.freepascal.org/WinCE_port last WinCE supported is 5.2.1 (Windows Mobile 6.5). However, you might want to check these links:
http://forum.lazarus.freepascal.org/index.php/topic,23237.msg138709.html#msg138709
http://forum.lazarus.freepascal.org/index.php/topic,23277.msg165343.html#msg165343
http://wiki.freepascal.org/WinCE_Programming_Tips#Platform_specific_Tips
« Last Edit: August 31, 2015, 11:51:48 am by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

ertank

  • Full Member
  • ***
  • Posts: 244
Re: Compiled app doesn't run on device itself
« Reply #19 on: September 01, 2015, 08:25:08 am »
Hi Avra,

I checked out these links. I suppose I will not be able to code for WinCE 6.0 with Lazarus, until it is supported (if ever) in the future.

Thanks for clarifying the problem.


avra

  • Hero Member
  • *****
  • Posts: 1662
    • Additional info
Re: Compiled app doesn't run on device itself
« Reply #20 on: September 01, 2015, 09:33:48 am »
I checked out these links. I suppose I will not be able to code for WinCE 6.0 with Lazarus, until it is supported (if ever) in the future.
Only maintainer can answer that...
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

ertank

  • Full Member
  • ***
  • Posts: 244
Re: Compiled app doesn't run on device itself
« Reply #21 on: November 13, 2015, 07:55:12 pm »
I have finally found my problem.

First of all, anybody can use "fpc -Parm -i" to see what CPUs are supported. I see that ARM7 is supported.

Additionally, there are several people helping bug solve process on WinCE 6.5 versions. So, I can say WinCE version supported is at least 6.5.

Regarding my problem, it turned out that I need to use below code in the OnLoad event of main form to be able to see my form.

Code: Pascal  [Select]
  1. Self.Top := 0;
  2. Self.Left := 0;
  3.  

If need to see Title bar set Top to 25 or 26.

For some reason below properties are not working on WinCE platform:
BorderStyle
WindowSize

BorderStyle seems to be bsDialog or bsSingle with no sizing available. Linked to this, WindowSize := wsMaximized is not working.

Just my findings related with my problem. Putting here to support people that hit same problem as me.

Regards,
Ertan

LazaAbrunhosa

  • New member
  • *
  • Posts: 5
Re: Compiled app doesn't run on device itself
« Reply #22 on: November 19, 2015, 05:46:42 pm »
Hi

I'm with the same problem on the device.  Motorola MC2180  WinCE.
When I try to run it, I get no error messages. It does nothing.

Windows CE 6.0  and Lazarus 1.4.4   and   fpc 2.6.4 

I try everything but it d'nt work, did you solve this problem?

Best regards


Laksen

  • Hero Member
  • *****
  • Posts: 616
    • J-Software
Re: Compiled app doesn't run on device itself
« Reply #23 on: November 19, 2015, 06:58:55 pm »
Does it show up in the WinCE taskbar?
Did you set the forms left and top properties to zero?
Does a ShowMessage('test'); show a message dialog?

LazaAbrunhosa

  • New member
  • *
  • Posts: 5
Re: Compiled app doesn't run on device itself
« Reply #24 on: November 19, 2015, 07:16:36 pm »
Hi

   1-No it d'nt appear on the taskbar.

   2-Yes I set the form1 letf and top to Zero

   3-No it d'nt show the  message dialog
       He does nothing

    I was program the pidion M-150  windows CE 5.0 and it works fine
    But this device  motorola MC2180 windows CE 6.0 d'nt work
   







avra

  • Hero Member
  • *****
  • Posts: 1662
    • Additional info
Re: Compiled app doesn't run on device itself
« Reply #25 on: November 19, 2015, 08:47:51 pm »
Additionally, there are several people helping bug solve process on WinCE 6.5 versions. So, I can say WinCE version supported is at least 6.5.
You are confused a little. Windows Mobile 6.5 existed, but WinCE 6.5 never existed. There was WinCE 6.0 and after that WinCE 7.0 was next. Windows Mobile 6.5 was built on WinCE 5.2. Lazarus supports up to WinCE 5.2.1 (so not WinCE 6.0 and 7.0).

https://en.wikipedia.org/wiki/Windows_CE#History
https://en.wikipedia.org/wiki/Windows_Mobile#Windows_CE
http://stackoverflow.com/questions/474770/what-version-of-ce-is-window-mobile-6-5-built-on
http://forum.lazarus.freepascal.org/index.php/topic,29489.msg186580.html#msg186580
http://wiki.freepascal.org/WinCE_port
« Last Edit: November 19, 2015, 08:54:14 pm by avra »
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

ertank

  • Full Member
  • ***
  • Posts: 244
Re: Compiled app doesn't run on device itself
« Reply #26 on: November 19, 2015, 11:17:27 pm »
I'm confused again. I have attached screen capture. Is this a WinCE 6.0 or Windows Mobile 6.0 device I am using in my case? And, how can I understand the kernel version if I can?

Just want to clarify my own situation here.

LazaAbrunhosa

  • New member
  • *
  • Posts: 5
Re: Compiled app doesn't run on device itself
« Reply #27 on: November 20, 2015, 01:24:57 pm »
Hi

Your device have the same OS (Windows CE Version 6.0) of mine motorola MC2180 but your processor is samsung  and mine is processor Marvell PXA32X-P.

Is because the type of CPU  Lazarus applications do not work?

The program sqliteviewer for sqlite db not work too on my device.

I think is something on the WinCE that block the applications, or memory is too Low,
i don't know.

Could you send a simple app compiled on lazarus that work on your device to test?

Best Regars
« Last Edit: November 20, 2015, 02:20:29 pm by LazaAbrunhosa »

avra

  • Hero Member
  • *****
  • Posts: 1662
    • Additional info
Re: Compiled app doesn't run on device itself
« Reply #28 on: November 20, 2015, 03:52:18 pm »
Is this a WinCE 6.0 or Windows Mobile 6.0 device I am using in my case?

The answer is on your screenshot. "Microsoft Windows CE Version 6.00" is WinCE 6.0, which is not officially supported by Lazarus.
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

LazaAbrunhosa

  • New member
  • *
  • Posts: 5
Re: Compiled app doesn't run on device itself
« Reply #29 on: November 23, 2015, 11:55:21 am »

Hi

Lazarus compile application for the windows embedded handheld 6.5, it works or not?
I want to develop an application to a  device ( Dolphin 60s Scanphone) with windows embedded handheld 6.5.

Can anybody help

Thanks