Recent

Author Topic: synaser compile problem using cross-arm-wince-win32 complier  (Read 7741 times)

allen_lins

  • New member
  • *
  • Posts: 7
synaser compile problem using cross-arm-wince-win32 complier
« on: March 25, 2009, 05:31:35 am »
HELP!!!!!!!!!!!!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I have written an application to open virtual serial port(bluetooth) using 5dpo and synaser.
When compile (set as LCL widget type: wince (beta); Target Platform: wince, arm);
 It gives error message as

C:\lazarus\Sdpo\SdpoSerial\synaser.pas(1,1) Fatal: Can't find unit termio used by synaser


what does it mean?

The compile is successful if I do not use coss-compiler.

the unit termio is in the following section of synaser. the baseunix, unix also can not be found.

unit synaser;

interface

uses
{$IFNDEF WIN32}
  {$IFNDEF NO_LIBC}
  Libc,
  KernelIoctl,
  {$ELSE}
  termio, baseunix, unix,
  {$ENDIF}
  {$IFNDEF FPC}
  Types,
  {$ENDIF}
{$ELSE}
  Windows, registry,
  {$IFDEF FPC}
  winver,
  {$ENDIF}
{$ENDIF}
  synafpc,
  Classes, SysUtils, synautil; 

I have used:

lazarus-0.9.26-fpc-2.2.2-win32.exe
Lazarus-0.9.26-fpc-2.2.2-cross-arm-wince-win32.exe
Sdpo-0.1.6.zip
synaser.zip-2007-12-21 - release no. 16

Thank you very much~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

allen_lins

  • New member
  • *
  • Posts: 7
Re: synaser compile problem using cross-arm-wince-win32 complier
« Reply #1 on: March 25, 2009, 04:20:06 pm »
I have recieved reply form Synapse project

'It is because I never try to compile it for WinCE, and current IFDEFs not identifying this platform correctly.'

'> That means I can not use synaser under windows mobile system in PDA or> Smartphone?
---Yes. It means - nobody ported Synaser to this platform yet.'

It is a pity that I can not use synaser in windows mobile PDA or Smart Phone.
So if I want to use serial port component in windows mobile(Wince), any other serial port component supported LAZARUS except Synaser?

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: synaser compile problem using cross-arm-wince-win32 complier
« Reply #2 on: September 25, 2012, 08:19:39 am »
Perhaps adjusting the compiler defines is enough. Don't have a wince device handy, typing this in the post and haven't even compiled, so no guarantees:
Code: [Select]
unit synaser;

interface

uses
{$IFDEF MSWINDOWS}
  // Any Windows version (Delphi+FPC define)
  // Windows desktop x86, x64, Windows CE
  Windows, registry,
{$ELSE}
    // Linux, Unix
{$IFNDEF NO_LIBC}
Libc,
KernelIoctl,
{$ELSE}
termio, baseunix, unix,
{$ENDIF}
{$IFNDEF FPC}
Types,
{$ENDIF}
{$ENDIF} //MSWINDOWS
  {$IFDEF FPC}
  winver,
  {$ENDIF}
{$ENDIF}
  synafpc,
  Classes, SysUtils, synautil; 
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

TinyPortal © 2005-2018