Closed TheIndoorDad closed 3 months ago
Like a dummy I neglected to check closed issues before posting, and now see there is one that may be relevant. Looking at that now and I will report back. Sorry for possible duplication.
Yes, this sounds like https://github.com/2b-t/myactuator_rmd/issues/5. Let me know if that works for you!
Yes, after reviewing #5 I changed both line 150 of /src/can/node.cpp and line 11 of /src/can/utilities.cpp to use can_dlc
instead of len
and that worked.
For posterity my can_frame
struct in linux/can.h
does include both len
and can_dlc
, and only node.cpp
seemed to raise the error so may be that I only had to change that one.
Thanks again!
Hmmm, can_dlc
is the legacy name that len
had prior to 2020. I had a quick glance at can-utils
when I was made aware of this issue but could not find an easy solution for it. As in newer versions len
should be used instead and Ubuntu 20.04 is reaching its end of life next year, I will just leave it the way it is and hope people running into the very same issue will find this Github issue.
Hello,
I'm trying to install as a Python package, but I'm getting an error I don't know how to resolve when I do
pip3 install .
. I think the key error is/home/user/ContinuO_Python/myactuator_rmd/src/can/node.cpp:150:13: error: ‘struct can_frame’ has no member named ‘len’
, but I'm not certain.I'm on Ubuntu 20.04, and I should have all dependencies installed (I had to compile cmake >= 3.20 from source and install as a DEB package). One caveat is that I'm on a lowlatency kernel and when I attempt to execute
sudo apt-get install linux-modules-extra-$(uname -r)
I getE: Package 'linux-modules-extra-5.15.0-110-lowlatency' has no installation candidate
.My output:
If I instead attempt to build as a C++ library with Python bindings on, I get a similar error after
make
:Thank you for your assistance, I'm a novice.