Jump to content

Compiling setserial on Mac OS X


2 posts in this topic

Recommended Posts

In trying to get the digitizer working on the HP TC1100, I looked into compiling setserial.

 

Here are the steps I took to compile setserial on Mac OS X:

1. Download setserial source code here

 

2. Untar the archive and add the following include and defines to setserial.c (stdlib.h is needed for exit() and I found the defines here):

#include <stdlib.h>
#define TIOCGSERIAL	 0x541E
#define TIOCSERCONFIG   0x5453
#define TIOCSSERIAL	 0x541F
#define TIOCSERGWILD	0x5454
#define TIOCSERSWILD	0x5455

 

3. Run configure -- you will need the proper host type for the machine you are compiling on (i.e. i686-apple)

./configure i386-apple

 

4. Make it

make

 

Questions remain:

Are the TIOC* values correct? I assumed they would be the same as I've seen elsewhere.

Does it work? The resulting binary hasn't been tested.

Is there any reason for doing this? Under Mac OS X, this many not even be aplicable.

Can IOKit be used to perform the functions setserial is used to? Anyone?

 

I've attached the modified setserial.c. Input is appreciated!

setserial.c.zip

Link to comment
Share on other sites

  • 5 months later...

I compiled setserial from this thread in trying to get the digitizer working on a TC1100,

 

I've placed it in /usr/bin so it's handy, on anything I try with it:

 

setserial ttys0

Cannot get serial info: Inappropriate ioctl for device

 

Of course, there's apparently no serial port enabled on this so I'm not totally surprised, but thats part of what i'm trying to figure out is how to get the serial port to be enabled so TabletMagic can find it.

 

The digitizer is identifiable as discussed in this thread:

http://www.insanelymac.com/forum/index.php...p;#entry1246976

Link to comment
Share on other sites

 Share

×
×
  • Create New...