Hello,
for some special hardware, e.g the STLink from ST Microelectronic for debugging an programming Arm microprocessors, I have translation dlls that translates the hardware access to libusb calls. To detect libusb, until recently I added the libusb detection code from ftp://ftp.etersoft.ru/pub/people/amorozov/usb/ However recenty Alexandre did some work around the configuration area and things no longer work.
I would appreciate if anybody can help me with coming up with a libusb detection rule for wine.
Thanks
On Mon, Dec 21, 2015 at 4:29 AM, Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de wrote:
Hello,
for some special hardware, e.g the STLink from ST Microelectronic for debugging an programming Arm microprocessors, I have translation dlls that translates the hardware access to libusb calls. To detect libusb, until recently I added the libusb detection code from ftp://ftp.etersoft.ru/pub/people/amorozov/usb/ However recenty Alexandre did some work around the configuration area and things no longer work.
I would appreciate if anybody can help me with coming up with a libusb detection rule for wine.
It would be helpful if you shared your previous patch / what you've tried that doesn't work.
"Austin" == Austin English austinenglish@gmail.com writes:
Austin> It would be helpful if you shared your previous patch / what Austin> you've tried that doesn't work.
Rule used so long: dnl **** Check for LIBUSB **** AC_SUBST(USBLIBS,"") AC_SUBST(USBINCL,"") if test "x$with_usb" != "xno" then AC_CHECK_HEADERS([usb.h], AC_CHECK_LIB(usb, usb_init, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have the libusb library and header]) USBLIBS="-lusb"])) ac_save_CPPFLAGS="$CPPFLAGS" if test "$PKG_CONFIG" != "false" then ac_usb_incl="`$PKG_CONFIG --cflags libusb-1.0`" ac_usb_libs="`$PKG_CONFIG --libs libusb-1.0`" CPPFLAGS="$ac_usb_incl $CPPFLAGS" fi AC_CHECK_HEADERS([libusb.h], AC_CHECK_LIB(usb-1.0, libusb_init, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have the libusb library and header]) USBLIBS="$ac_usb_libs" USBINCL="$ac_usb_incl"])) CPPFLAGS="$ac_save_CPPFLAGS" fi WINE_NOTICE_WITH(usb,[test "x$ac_cv_lib_usb_usb_init" != "xyes" -a "x$ac_cv_lib_usb_1_0_libusb_init" != "xyes"], [libusb ${notice_platform}development files not found, USB won't be supported.])
What I tried last:
dnl **** Check for LIBUSB **** if test "x$with_usb" != "xno" then WINE_PACKAGE_FLAGS(USB,[libusb-1.0],,,, [AC_CHECK_HEADERS([libusb-1.0/usb.h]) if test "$ac_cv_header_usb_h" = "yes" then WINE_CHECK_SONAME(usb-1.0, libusb_init,,[USB_CFLAGS=""],[$USB_LIBS]) else USB_CFLAGS="" fi]) fi
Cheers
Am 22.12.2015 um 18:35 schrieb Uwe Bonnes:
"Austin" == Austin English austinenglish@gmail.com writes:
Austin> It would be helpful if you shared your previous patch / what Austin> you've tried that doesn't work.
Rule used so long: dnl **** Check for LIBUSB **** AC_SUBST(USBLIBS,"") AC_SUBST(USBINCL,"") if test "x$with_usb" != "xno" then AC_CHECK_HEADERS([usb.h], AC_CHECK_LIB(usb, usb_init, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have the libusb library and header]) USBLIBS="-lusb"])) ac_save_CPPFLAGS="$CPPFLAGS" if test "$PKG_CONFIG" != "false" then ac_usb_incl="`$PKG_CONFIG --cflags libusb-1.0`" ac_usb_libs="`$PKG_CONFIG --libs libusb-1.0`" CPPFLAGS="$ac_usb_incl $CPPFLAGS" fi AC_CHECK_HEADERS([libusb.h], AC_CHECK_LIB(usb-1.0, libusb_init, [AC_DEFINE(HAVE_LIBUSB, 1, [Define if you have the libusb library and header]) USBLIBS="$ac_usb_libs" USBINCL="$ac_usb_incl"])) CPPFLAGS="$ac_save_CPPFLAGS" fi WINE_NOTICE_WITH(usb,[test "x$ac_cv_lib_usb_usb_init" != "xyes" -a "x$ac_cv_lib_usb_1_0_libusb_init" != "xyes"], [libusb ${notice_platform}development files not found, USB won't be supported.])
What I tried last:
dnl **** Check for LIBUSB **** if test "x$with_usb" != "xno" then WINE_PACKAGE_FLAGS(USB,[libusb-1.0],,,, [AC_CHECK_HEADERS([libusb-1.0/usb.h]) if test "$ac_cv_header_usb_h" = "yes" then WINE_CHECK_SONAME(usb-1.0, libusb_init,,[USB_CFLAGS=""],[$USB_LIBS]) else USB_CFLAGS="" fi]) fi
Cheers
Hi, This works fine here:
dnl **** Check for libusb **** if test "x$with_usb" != "xno" then WINE_PACKAGE_FLAGS(USB,[usb-1.0],,,, [AC_CHECK_HEADER([usb.h], [WINE_CHECK_SONAME(usb-1.0, libusb_init,,[USB_CFLAGS=""],[$USB_LIBS])], [USB_CFLAGS=""])]) fi
(note that you need to run autoconf and autoheader after you did your changes)