fix build issue on ubuntu 22.04, kernel 6.2.0
with kernel 6.2.0:
driver/SocketCanDriver/SocketCanInterface.cpp:428:28: error: ‘SIOCGSTAMPNS’ was not declared in this scope; did you mean ‘SIOCGSTAMP_OLD’?
428 | if (ioctl(_fd, SIOCGSTAMPNS, &ts_rcv) == 0) {
| ^~~~~~~~~~~~
| SIOCGSTAMP_OLD
driver/SocketCanDriver/SocketCanInterface.cpp:436:24: error: ‘SIOCGSTAMP’ was not declared in this scope; did you mean ‘SIOCGRARP’?
436 | ioctl(_fd, SIOCGSTAMP, &tv_rcv);
| ^~~~~~~~~~
| SIOCGRARP
driver/SocketCanDriver/SocketCanInterface.cpp: In member function ‘virtual void SocketCanInterface::sendMessage(const CanMessage&)’:
driver/SocketCanDriver/SocketCanInterface.cpp:396:16: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
396 | ::write(_fd, &frame, sizeof(struct can_frame));
Hello, I am trying to install Cangaroo on my Ubuntu 22.04 system with Kernel 6.5.0-26-generic and when running make, it indicates the following error:
make cd src/ && ( test -e Makefile || /usr/lib/qt5/bin/qmake -o Makefile /home/hil/Documents/kangaroo/src/src.pro ) && make -f Makefile Project ERROR: libnl-3.0 development package not found make: *** [Makefile:47: sub-src-make_first-ordered] Error 3
Installed packages: build-essential is now in its latest version (12.9ubuntu3). libnl-3-dev is now in its latest version (3.5.0-0.1). libnl-route-3-dev is now in its latest version (3.5.0-0.1). git is already at its latest version (1:2.34.1-1ubuntu1.10). qt5-qmake is now in its latest version (5.15.3+dfsg-2ubuntu0.2). qtbase5-dev is now in its latest version (5.15.3+dfsg-2ubuntu0.2).
Thank you