synaser compile problem using cross-arm-wince-win32 complier lazarus / 13-General ---------------------------------------------------------------------- allen_lins · 2009-03-25 04:31 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 · 2009-03-25 15:20 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 · 2012-09-25 06:19 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;