--disable-libusb option is missing
Versatile Commodore Emulator
Brought to you by:
blackystardust,
gpz
The addition of usb sid pico pulled in libusb as a dependency. It should be possible to disable it even if libusb is detected by configure.
Related: https://www.lemon64.com/forum/viewtopic.php?p=1076184#p1076184
@loud would you please have a look?
Hi gpz, usbsid compilation was disabled by default previously and had to be enabled with configuration, I removed this at your request in favour of enabling usbsid when libusb was present, see https://sourceforge.net/p/vice-emu/patches/400/#7131
The code in configure.ac does a check to see if it's enabled at each part with
if test x"$enable_usbsid" != "xno"and after that a separate check for libusb.I think adding an option to disable usbsid compilation should be as easy as adding an ARG_ENABLE for
enable_usbsid. Previously I this option here: https://github.com/LouDnl/Vice-USBSID/blob/main/vice/configure.acI will have a look if I can create an easy patch
Well the request was to enable it when detected, and optionally disable it - just like any other config option (and as you can see in the thread, i thought thats what you did)
Anyway, would be nice if you could look at it (If you have some time to waste, perhaps even fix that strange compilation error - no idea what would cause this)
Will have a look. haven't seen that error before, but could be a newer libusb version etc.
Here's a first patch for adding the
--disable-usbsidfeature.Thanks but... the option should disable libusb (and then everything that wants to use it, which now happens to be just usbsid) :)
the libusb check for.usbsid isn't done if usbsid is disabled, it's not the orher way around?
not sure what that is supposed to mean. the point is: the option should be named --disable-libusb, which den disables whatever uses libusb.
Think of the case when we have a dozen things that rely on libusb - you don't want to disable every single one. You want to disable libusb instead :)
okay, will have a look at this. Ive seen libusb is also used for some joystick thing. will report back.
AFAIK it is not used for anything else (yet). That "usb joystick" stuff is some ancient linux stuff that isnt even used anymore i think :)
I've added a
--without-libusboption in addition to the--disable-usbsidoption in this patch, can you check if you can work with this?Last edit: LouD 2026-01-06
Sorry - this still does too much. The separate option "--disable-usbsid" is pointless, no reference to usbsid is needed in configure at all, just libusb should be detected (and have the option to disable it), no more no less :)
Will look at this
Here's an attempted fix for the conversion error, I couldn't reproduce it no matter what I tried.
forgot: applied in r45950
No one is perfect eh :)