cangaroo icon indicating copy to clipboard operation
cangaroo copied to clipboard

Error building in Ubuntu 18.04

Open tomatac opened this issue 5 years ago • 5 comments

make fails to build in Ubuntu 18.04: Project ERROR: Unknown module(s) in QT: charts

tomatac avatar Jan 24 '20 08:01 tomatac

same in 16.04. anyone and any recommendation?

Changliu52 avatar Jan 25 '20 12:01 Changliu52

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.

akonneker avatar Jan 25 '20 17:01 akonneker

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 avatar Aug 22 '22 03:08 calumroy

@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!

normaldotcom avatar Aug 26 '22 00:08 normaldotcom

@calumroy try running bda4fef, I may have resolved your issue.

normaldotcom avatar Aug 26 '22 02:08 normaldotcom