[Xastir] Xastir + Cygwin

Jack Twilley jmt at twilley.org
Fri Jun 13 16:55:17 EDT 2003


WARNING: Unsanitized content follows.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>>>>> "Curt" == Curt Mills <Curt> writes:

James> The problem is I cannot get Xastir to connect to my radio thru
James> Cygwin.  Always give a 'Hard Fail'. I was able to fix this on
James> my RH9 machine by modifying the permisions on the /dev/ttyS0
James> file, however. On cygwin the 'device' that it is trying to open
James> is 'com1' and cygwin has no /dev folder :)

Curt> When I configured a GPS device on a serial port for testing, I
Curt> used just "com2".

Curt> Later on we should tweak Xastir so that "com1" or "com2" show up
Curt> as Cygwin defaults instead of "/dev/ttyS0".

Curt> Actually, I just tried creating a new serial TNC interface on
Curt> Cygwin and it defaulted to "com1", so perhaps we already did
Curt> this...

Yep.  The first fruits of my acinclude.m4 revolution:

# test for devices
AC_DEFUN([XASTIR_DETECT_DEVICES],
[
AC_MSG_CHECKING([for devices])
if test -c com1 ; then
ac_tnc_port=com1
ac_gps_port=com2
elif test -c /dev/cuaa0 ; then
ac_tnc_port=/dev/cuaa0
ac_gps_port=/dev/cuaa1
elif test -c /dev/ttyS0 ; then
ac_tnc_port=/dev/ttyS0
ac_gps_port=/dev/ttyS1
elif test -c /dev/cua/a ; then
ac_tnc_port=/dev/cua/a
ac_gps_port=/dev/cua/b
else
ac_tnc_port=none
ac_gps_port=none
fi

AC_DEFINE_UNQUOTED([TNC_PORT], "$ac_tnc_port", [Default TNC port.])
AC_DEFINE_UNQUOTED([GPS_PORT], "$ac_gps_port", [Default GPS port.])
AC_MSG_RESULT(found $ac_tnc_port and $ac_gps_port)
])

Jack.
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (FreeBSD)

iD8DBQE+6jo8GPFSfAB/ezgRAmoxAJ0eYz3+qD54FfByatsB9vrNA/KjvgCglLdV
Tm8TJz99OAtojGVoAJjH4Gw=
=DVMr
-----END PGP SIGNATURE-----



More information about the Xastir mailing list