-
OK im probably missing something obvious, hopefully someone can help!! running the raspberry pi os i needed the source (doesnt execute .AppImage) pi@raspberrypi:~/SavvyCAN $ sudo /home/pi/Qt/6.7.0/gcc_arm64/bin/qmake Project ERROR: Unknown module(s) in QT: serialbus serialport |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 15 replies
-
Well, one big problem you're going to have is that SavvyCAN was written for QT5.14 while you have QT 6.7 installed. Unfortunately QT6 just won't quite result in a working copy of SavvyCAN right now. But, there has been a lot of work to get it moving in that direction. So, it may compile but after that, you will probably run into issues. What you are experiencing is that QT doesn't bundle all the add-ons with the base install. You need to install the serialbus and serialport packages as well. I don't know what they're called on Raspbian but you should be able to find them in the list of QT6 packages available. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. It appears my issue is the arm architecture! I
can't find qt download for arm64 pre 6.0! I went from nothing to
cansniffing in no time flat on my x86 lol. I tried building qt from source
but have run into problems there as well. Apparently there were a handful
of bugs, now patched obviously, but I've checked 2 dozen patches.. none of
which did me any good! I am back to square 1... deflated... and tired!
We'll see what tomorrow brings.
Thanks again for your help
JR
…On Mon, Apr 29, 2024, 9:48 PM Collin Kidder ***@***.***> wrote:
Well, one big problem you're going to have is that SavvyCAN was written
for QT5.14 while you have QT 6.7 installed. Unfortunately QT6 just won't
quite result in a working copy of SavvyCAN right now. But, there has been a
lot of work to get it moving in that direction. So, it may compile but
after that, you will probably run into issues.
What you are experiencing is that QT doesn't bundle all the add-ons with
the base install. You need to install the serialbus and serialport packages
as well. I don't know what they're called on Raspbian but you should be
able to find them in the list of QT6 packages available.
—
Reply to this email directly, view it on GitHub
<#773 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX3YM7FRW33JQFYSSHZ3XX3Y732APAVCNFSM6AAAAABG5CNSBKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TENRZGE2TC>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
I just pushed a new version to the QT6WIP branch. This version is now at feature parity with the master branch. So, you can use the QT6WIP branch and compile with Qt6.7 on your RPI. This should yield a properly working copy of the program. I should really look into what it'd take to get a CI/CD build of SavvyCAN for ARM on the Raspberry PI. |
Beta Was this translation helpful? Give feedback.
-
@striork if you're still having issues compiling/running it, there is a nix package that has a build for aarch64, I got it working fine on a RPi 4 with 64-bit Raspberry Pi OS |
Beta Was this translation helpful? Give feedback.
-
I should mention that I've moved the QT6 support into the master branch so it should be possible to compile on QT6 (I think you might need QT6.5 or higher as they didn't add in SerialBus support in the early releases). So, it ought to compile as-is with the QT6 packages and the master branch. But, I haven't gotten around to trying it. |
Beta Was this translation helpful? Give feedback.
-
Finally back at the Pi! I'm attempting to cross compile QT5 (6.4.0) on my PC in order to compile savvyCAN directly on the raspi. I ran into this
Apparantly a while back there were these errors in the source. They patched them up right away, Bob's your uncle and everone's cute for qt!
I started looking into this one and i noticed a few people also trying to cross compile coming up with the same errors. If any of you out there with a little more experience could point me in the right direction, I'd be super appreciative .
and
|
Beta Was this translation helpful? Give feedback.
-
This much I can say: I've not heard of anyone successfully cross compiling it. I've heard of people who did it directly on a Raspberry Pi but I have not tried it myself. It has just always seemed like more complication than it's worth to me. I have a laptop and I drag it around to cars and only every couple of years drop a laptop or accelerate hard in a car snapping the screen off or drop a 12V lead onto the top of a can capture card while it's plugged into the laptop and fry the motherboard (yes, I've done all three of those things). So, I just use the PC version and carry a laptop. Sorry I can't be of more help. All I know is that it is possible and some people have done it. |
Beta Was this translation helpful? Give feedback.
-
I loaded the newest RaspberryOS onto an sdcard, updated all existing packages, then installed the following packages (sudo apt install): From there I used git clone to download the SavvyCAN source. Then in the resulting folder: This results in a full compile that takes a LONG time on an RPi4. I can compile all of SavvyCAN in about 16 seconds on my normal dev machine but it takes several minutes on the RPi. And... it works! I tested at least to be able to load the program and then load up a capture file and scroll around. I haven't tested much else and probably can't today. But, the above steps do yield a theoretically working build. All it takes is about 10 minutes of waiting when you start compiling. On an RPi5 you likely will not have to wait nearly as long. |
Beta Was this translation helpful? Give feedback.
I loaded the newest RaspberryOS onto an sdcard, updated all existing packages, then installed the following packages (sudo apt install):
qt6-base-dev
qt6-base-dev-tools
qt6-pdf-dev
qt6-serialbus-dev
qt6-serialport-dev
qt6-tools-dev
qt6-wayland
qt6-wayland-dev
qt6-wayland-dev-tools
qt6-webview-dev
From there I used git clone to download the SavvyCAN source. Then in the resulting folder:
git checkout QT6WIP
qmake6
make -j 6
This results in a full compile that takes a LONG time on an RPi4. I can compile all of SavvyCAN in about 16 seconds on my normal dev machine but it takes several minutes on the RPi. And... it works! I tested at least to be able to load the program and then load up a capt…