Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure for fx2pipe on LMDE #11

Open
jscrane opened this issue Apr 18, 2024 · 3 comments
Open

Build failure for fx2pipe on LMDE #11

jscrane opened this issue Apr 18, 2024 · 3 comments

Comments

@jscrane
Copy link

jscrane commented Apr 18, 2024

Hi,
I'm getting a weird compiler error building this:

Making all in usb_io
make[2]: Entering directory '/home/steve/src/6502Decoder/fx2pipe/usb_io'
g++ -DHAVE_CONFIG_H -I. -I.. -I. -I.. -I..    -g -O2 -MT wwusb.o -MD -MP -MF .deps/wwusb.Tpo -c -o wwusb.o wwusb.cc
In file included from wwusb.h:25,
                 from wwusb.cc:22:
/usr/include/linux/usbdevice_fs.h:134:41: error: flexible array member ‘usbdevfs_urb::iso_frame_desc’ not at end of ‘struct WWUSBDevice::URB’
  134 |         struct usbdevfs_iso_packet_desc iso_frame_desc[];
      |                                         ^~~~~~~~~~~~~~
wwusb.h:119:29: note: next member ‘int WWUSBDevice::URB::cancelled’ declared here
  119 |                         int cancelled;
      |                             ^~~~~~~~~
wwusb.h:116:24: note: in the definition of ‘struct WWUSBDevice::URB’
  116 |                 struct URB : LinkedListBase<URB>, usbdevfs_urb
      |                        ^~~
make[2]: *** [Makefile:218: wwusb.o] Error 1
make[2]: Leaving directory '/home/steve/src/6502Decoder/fx2pipe/usb_io'

My system is:

$ uname -a
Linux steevo 6.1.0-20-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.85-1 (2024-04-11) x86_64 GNU/Linux

Thanks!
Steve

@hoglet67
Copy link
Owner

Can you check what version(s) of libusb you have installed

dpkg -i | grep libusb

If I remember correctly, fx2pipe needs libusb0,1 and won't compile/work against libusb1.0.

For reference, there was an eevblog thread about this:
https://www.eevblog.com/forum/programming/updating-fx2pipe-to-work-with-libusb-1-0/

@hoglet67
Copy link
Owner

Might also be worth you trying cannelloni:
https://github.com/jhol/cannelloni

@jscrane
Copy link
Author

jscrane commented Apr 18, 2024

$ dpkg -l | grep libusb
ii  libgusb2:amd64                             0.3.10-1                                     amd64        GLib wrapper around libusb1
ii  libusb-0.1-4:amd64                         2:0.1.12-32                                  amd64        userspace USB programming library
ii  libusb-1.0-0:amd64                         2:1.0.26-1                                   amd64        userspace USB programming library
ii  libusb-1.0-0-dev:amd64                     2:1.0.26-1                                   amd64        userspace USB programming library development files
ii  libusb-1.0-doc                             2:1.0.26-1                                   all          documentation for userspace USB programming
ii  libusb-dev                                 2:0.1.12-32                                  amd64        userspace USB programming library development files
ii  libusbmuxd6:amd64                          2.0.2-3                                      amd64        USB multiplexor daemon for iPhone and iPod Touch devices - library

I will have a look at cannelloni. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants