cangaroo
cangaroo copied to clipboard
Error building in Ubuntu 18.04
make fails to build in Ubuntu 18.04: Project ERROR: Unknown module(s) in QT: charts
same in 16.04. anyone and any recommendation?
sudo apt install libqt5charts5-dev will fix this.
I have discovered another error building in ubuntu 19.10, however, which appears to be a change in a kernel header. I found some discussion here: https://lists.sr.ht/~philmd/qemu/%3C20190617114005.24603-1-berrange%40redhat.com%3E
Adding linux/sockios.h to the include statements of cangaroo/src/driver/SocketCanDriver/SocketCanInterface.h seems to fix that issue.
Same issue but your fix did not work for me, though I'm on debian 11. I had to install this as well.
sudo apt-get install build-essential
sudo apt-get install cmake qt5-default qtcreator
sudo apt-get install libqt5serialport5
sudo apt-get install libqt5serialport5-dev
I was then also getting a segmentation fault when running the program (this was using master commit #1e022c4) Reverting master back to commit #b862c39d9 then built and ran on my system debian 11.
Something in commit #445f99c69 causes the segmentation fault if you start cangaroo without any CAN usb adapters plugged in. It may work with an adapter plugged in before starting cangaroo but I don't have one yet to test with.
@calumroy thanks for reporting this issue and for finding the offending commit. I'm attempting to reproduce on my end but so far I have been unable to recreate the segfault (however I am running Arch, not Debian). I'll review the commit diff and see if I can pinpoint anything sketchy. Thanks!
@calumroy try running bda4fef, I may have resolved your issue.