我正在 Ubuntu 14.04 中从源代码 (r33116) 构建 Vice,并从以下位置获取./configure
:
INPUT
-----
Joystick support : yes
Mouse support : yes
Lightpen support : yes
Linux style joystick support: yes
BSD style joystick support : no
Digital joystick support : no
USB joystick support : no
我在configure.ac中看到这个部分:
dnl NetBSD/FreeBSD USB joystick support
usbhid_header=no
usbhid_lib=no
usb_lib=no
AC_CHECK_LIB(usbhid, hid_get_report_desc, usbhid_lib=yes)
if test x"$usbhid_lib" = "xyes" ; then
AC_CHECK_HEADER(usbhid.h,
[AC_DEFINE(HAVE_USBHID_H,1,
[Define to 1 if you have the <usbhid.h> header file.])
usb_header=yes])
AC_CHECK_HEADER(libusbhid.h,
[AC_DEFINE(HAVE_LIBUSBHID_H,1,
[Define to 1 if you have the <libusbhid.h> header file.])
usb_header=yes])
if test x"$usb_header" = "xyes" ; then
AC_DEFINE(HAS_USB_JOYSTICK,,[Enable emulation for USB joysticks.])
JOY_LIBS="-lusbhid"
HAS_USB_JOYSTICK_SUPPORT="yes"
fi
else
AC_CHECK_LIB(usb, hid_get_report_desc, usb_lib=yes)
if test x"$usb_lib" = "xyes"; then
AC_CHECK_HEADER(usb.h,
[AC_DEFINE(HAVE_USB_H,1,
[Define to 1 if you have the <usb.h> header file.])
usb_header=yes])
AC_CHECK_HEADER(libusb.h,
[AC_DEFINE(HAVE_LIBUSB_H,1,
[Define to 1 if you have the <libusb.h> header file.])
usb_header=yes])
if test x"$usb_header" = "xyes" ; then
AC_DEFINE(HAS_USB_JOYSTICK,,[Enable emulation for USB joysticks.])
JOY_LIBS="-lusb"
HAS_USB_JOYSTICK_SUPPORT="yes"
fi
fi
fi
我有/usr/include/libusb-1.0/libusb.h
(我不认为Ubuntu有带有libusbhid.h或usbhid.h的软件包),上面的内容不应该找到它吗?
答案1
整个部分的标题是“NetBSD/FreeBSD USB 操纵杆支持”,并且仅与 BSD 相关。在 Linux 上,使用“Linux 风格操纵杆支持”支持 USB 操纵杆(所有操纵杆都以相同的方式管理)。
Ubuntu 构建日志报告了完全相同的功能(请参阅最新的amd64 日志例如)。