« Return to Thread: termios.h on Windows/MinGW

Re: termios.h on Windows/MinGW

by Daniel Gollub-2 :: Rate this Message:

Reply to Author | View in Thread

On Friday 03 April 2009 05:29:55 pm Henrik /KaarPoSoft wrote:

> Hi,
>
> I am trying to port OpenSync in general - and SyncML and mozilla-sync in
> particular - to Windows under MinGW/MSYS.
>
> I have looked at http://opensync.org/wiki/devel/compilingForWindows
> which does not contain too many details ))-:
> My approach, in case you care, is documented here:
> http://kaarposoft.dk/bluezync/building.html#building_windows
>
> Although the basic OpenSync now compiles (except for a few issues for
> which I have created ticket with patches), I do have one problem with
> libsyncml:
> Compiling libsyncml complains that "termios.h" is not found.
> I have looked extensively for a package containing this (probably
> termcap), but found nothing so far.

In GNU/Linux this is shipped by glibc.

>
> So:
> 1) Does anyone know where to find a library/package including
> "termios.h" for Windows/MinGW/MSYS ?

http://www.gnu.org/software/hello/manual/gnulib/termios_002eh.html

> 2) Does anyone have experiences with Windows/MinGW/MSYS porting they
> want to share?

Yes - but not with regards to termios.
Looking at the code where this is used in libsyncml - i would say quick an
easy fix would by check for the termios.h and if not declared disable the
ClientCableConnect transport. This ObexCableConnect is used by (old?) Samsungs
and LG(?) mobiles and some other - which require some AT-command-chatting to
enable the OBEX-Server on the mobile.

Actually we would just need to #ifdef __WIN32__ this code and write it on the
Windows provided Serial API.

I checked other projects which could face the same problem - e.g. openobex has
a test application, which has a TODO for mingw builds ;)

Just #ifdef the libsyncml code until it builds for you - and send a patch for
review ;)


Best Regards,
Daniel

------------------------------------------------------------------------------
_______________________________________________
Opensync-devel mailing list
Opensync-devel@...
https://lists.sourceforge.net/lists/listinfo/opensync-devel

 « Return to Thread: termios.h on Windows/MinGW