Recent

Author Topic: Application request: EXE launcher  (Read 14386 times)

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Application request: EXE launcher
« on: December 13, 2014, 07:57:21 am »
I would to ask if s.o. could make a simple application for me, to run on Win CE.
The application should do the following:
When the app is started it should open another EXE, which is stored in another folder. The path of the file to be launched is to be retrieved from a TEXT file.


This program would be useful, because the main startup application of my (an probably not only my) navigation device can launch an EXE, stored in a dedicated area of its internal flash drive. But actually after an application is run (i.e. 7ZFile manager), it has access to the full flash drive. My idea is to run the EXE, that hopefully s.o. would build for me, and from it to run the Windows explorer.


Of course, if someone would agree to do this for me, I would write the app myself and ask for some one to compile it for me to run on the Win CE.
« Last Edit: December 13, 2014, 07:59:01 am by paskal »
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

bambamns

  • Full Member
  • ***
  • Posts: 223
Lazarus 1.8.4 + FPC 2.6.4 x86 (rebuild) and Lazarus 2.0, Windows 7 x64, unless otherwise specified

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Application request: EXE launcher
« Reply #2 on: January 03, 2015, 07:54:24 am »
I don't really understand, are you asking for someone to write the app for you, or just compile it for you? Your first and last paragraph seems contradicting...

typo

  • Hero Member
  • *****
  • Posts: 3051
Re: Application request: EXE launcher
« Reply #3 on: January 03, 2015, 12:45:44 pm »
Why not to set on Project Options > Target OS > WinCE?

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Application request: EXE launcher
« Reply #4 on: January 03, 2015, 12:53:45 pm »
Upon writing the first post I expected that both would be fine for me. I expected that building for WinCE would be much more difficult.
Finally it occurred that Lazarus apps don't work on my device, so none would do.
« Last Edit: January 03, 2015, 01:00:44 pm by paskal »
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Application request: EXE launcher
« Reply #5 on: January 03, 2015, 02:36:30 pm »
Upon writing the first post I expected that both would be fine for me. I expected that building for WinCE would be much more difficult.
Finally it occurred that Lazarus apps don't work on my device, so none would do.
Have you tried a hello, world app?

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Application request: EXE launcher
« Reply #6 on: January 03, 2015, 03:38:59 pm »
I have created a single form app with a button on it. It runs in the emulator, but does not run on my device.
Forum member chrgra sent me an app, which as far as I understood works on his WinCE5 device, but it still does not run on mine.

Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Application request: EXE launcher
« Reply #7 on: January 03, 2015, 03:56:27 pm »
I have created a single form app with a button on it. It runs in the emulator, but does not run on my device.
Forum member chrgra sent me an app, which as far as I understood works on his WinCE5 device, but it still does not run on mine.
Could you check the WinCE version?

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Application request: EXE launcher
« Reply #8 on: January 03, 2015, 05:13:52 pm »
System properties says:
Microsoft Windows CE
MSB2531.UM.2014-10.15
(c) 2006 Microsoft Corp...

Processor Type: MStart Semiconductor

CPU should be:Mstar2531 800MHz
Manufacturer website sais it is Win 6.0 CE.

I have some Memory Settings (Storage Memory and Program Memory). I can adjust how to distribute it. Could this help?
« Last Edit: January 03, 2015, 05:56:47 pm by paskal »
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8757
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Application request: EXE launcher
« Reply #9 on: January 03, 2015, 06:28:19 pm »
Manufacturer website sais it is Win 6.0 CE.
Looks like it's unsupported (unless this wiki page is outdated): http://wiki.freepascal.org/WinCE_port

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Application request: EXE launcher
« Reply #10 on: January 03, 2015, 07:17:41 pm »
Applications which work on WinCE 6.0 in emulator do not run on my WinCE 6.0 device.
Probably I should contact some of the compiler developers but currently I cannot spend time for that.
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

chrgra

  • Jr. Member
  • **
  • Posts: 69
Re: Application request: EXE launcher
« Reply #11 on: January 04, 2015, 01:41:39 am »
Maybe thisc could  solve it (copied from the Lazarus for Android wiki)


The mysterious JNI Crash
See the thread: http://groups.google.com/group/android-ndk/browse_thread/thread/ba542483f062a828
The problem was that vm^^.GetEnv would crash in HTC Wildfire, Alcatel and in the emulator with SIGILL but not in Xperia Mini, HTC Desire HD, Motorola Atrix and other smartphones.
The answer was that one needs to specify -CpARMV6 when building because older instructions might fail in some devices

CM630

  • Hero Member
  • *****
  • Posts: 1091
  • Не съм сигурен, че те разбирам.
    • http://sourceforge.net/u/cm630/profile/
Re: Application request: EXE launcher
« Reply #12 on: January 04, 2015, 09:02:35 pm »
1. I changed Project-> Project Options->Config and target-> Target Processor= ARMV6
Same errors as shown on the image.
2.  In Project-> Project Options-> Other -> Custom Options I added -CpARMV6.
App did not compile and I got in the message window:
Code: [Select]
Options changed, recompiling clean with -B
D:\ok\wince\lib\arm-wince\project1.s: Assembler messages:
D:\ok\wince\lib\arm-wince\project1.s:26: Error: cannot represent BFD_RELOC_ARM_PCREL_BLX relocation in this object file format
D:\ok\wince\lib\arm-wince\project1.s:41: Error: cannot represent BFD_RELOC_ARM_PCREL_BLX relocation in this object file format
D:\ok\wince\lib\arm-wince\project1.s:44: Error: cannot represent BFD_RELOC_ARM_PCREL_BLX relocation in this object file format
D:\ok\wince\lib\arm-wince\project1.s:45: Error: cannot represent BFD_RELOC_ARM_PCREL_BLX relocation in this object file format
project1.lpr(22) Error: Error while assembling exitcode 1
project1.lpr(22) Fatal: There were 2 errors compiling module, stopping




Should I put -CpARMV6 somewhere else?
Лазар 3,2 32 bit (sometimes 64 bit); FPC3,2,2; rev: Lazarus_3_0 on Win10 64bit.

Cyrax

  • Hero Member
  • *****
  • Posts: 836
Re: Application request: EXE launcher
« Reply #13 on: January 04, 2015, 09:24:38 pm »
Have you tried to use FPC trunk compiler to build your WinCE app?

engkin

  • Hero Member
  • *****
  • Posts: 3112
Re: Application request: EXE launcher
« Reply #14 on: January 04, 2015, 11:04:50 pm »
I have created a single form app with a button on it. It runs in the emulator, but does not run on my device.

MSB2531.UM.2014-10.15
(c) 2006 Microsoft Corp...

Processor Type: MStart Semiconductor

CPU should be:Mstar2531 800MHz
A quick search indicated that your CPU is *probably* a "Dual Core ARM Cortex-A7". I *guess* you need to use "ARMv7M". Whatever CPU you have, you need to rebuild the RTL and anything else that links into your project for your CPU. IAW, setting project options is *not* enough. Take a closer look at Setting up the Windows CE interface manually mentioned in the first answer you received in this thread from bambamns.

 

TinyPortal © 2005-2018