[IGSTK-Developers] Mac issue redux

David Gobbi dgobbi at atamai.com
Wed Oct 19 10:52:28 EDT 2005


Hi Kevin,

I'll check to see if CMake has its own #define for this, but otherwise your
suggestion is fine.

Note that this change will allow IGSTK to compile on OSX, but serial
communication won't actually work on OSX until the proper code is
added for discovering the serial device names.

I know that I promised to get a dashboard build of IGSTK going on my
mac one of these days... hasn't hapenned yet.

 - David

Kevin Gary wrote:

> David,
>
> I am getting the termio include issue again on the Mac. We
> discussed this problem before (June 10), I just did a clean
> checkout and still get it. Output:
>
> Building object file igstkSerialCommunicationForPosix.o...
> In file included from 
> /Users/kgary/work/ISIS/IGSTK/dev/IGSTK/Source/igstkSerialCommunicationForPosix.cxx:27: 
>
> /Users/kgary/work/ISIS/IGSTK/dev/IGSTK/Source/igstkSerialCommunicationForPosix.h:25:21: 
> termio.h: No such file or directory
> In file included from 
> /Users/kgary/work/ISIS/IGSTK/dev/IGSTK/Source/igstkSerialCommunicationForPosix.cxx:27: 
>
> /Users/kgary/work/ISIS/IGSTK/dev/IGSTK/Source/igstkSerialCommunicationForPosix.h:113: 
> error: '
>    termios' is used as a type, but is not defined as a type.
> ...
>
> When I conditionally include termios.h instead of termio.h on the
> Mac in igstkSerialCommunicationForPosix.h, things go off without
> a hitch:
>
> #if defined(__APPLE__)
> #include <termios.h>
> #else
> #include <termio.h>
> #endif
>
> I don't know if this is the best solution. I cannot check in
> anyway.
>
> Kevin G.
>
>------------------------------------------------------------------------
>
>_______________________________________________
>IGSTK-Developers mailing list
>IGSTK-Developers at public.kitware.com
>http://public.kitware.com/cgi-bin/mailman/listinfo/igstk-developers
>  
>




More information about the IGSTK-Developers mailing list