vpappano
vpappano

Reputation: 121

QT on Raspberry Pi 4

I have a Raspberry Pi 4 Model B Rev 1.4 and I am using Ubuntu 20.04 running in VirtualBox on a Windows 10 machine.

I have been following the steps presented in this video https://www.youtube.com/watch?v=TmtN3Rmx9Rk&list=PLXAxzIhirYJGp1dMN0SxMRNCumubmpzWj&index=2&t=1686s. The goal is to run QT C++ applications on the Raspberry Pi

@24.20, the presenter issues the command:

rsync -avz --rsync-path="sudo rsync" [email protected]:/lib sysroot

His host machine receives a number of files. On the video I can see the contents of lib/firmware, lib/modules.bak, lib/modules, lib/udev

However, when I issue the same command, I only receive a symbolic link

receiving incremental file list
lib -> usr/lib

BTW, a symbolic link is also what I see on the RPi

lrwxrwxrwx   1 root root     7 May  7  2021 bin -> usr/bin 

I tried adding the option --copy-links. It allows me to copy the files, but the usr/bin directory is about 3GB and it seems to have a many more folders (for instance chromium-browser) when compared to what I saw in the video

Why the discrepancy? Did I miss an initial setup step, maybe? Any advice?

Upvotes: 1

Views: 902

Answers (1)

sivo
sivo

Reputation: 51

Had the same problem. the /lib you want to copy is a link, not a folder. It's linked to /usr/lib. So try it with

rsync -avz  --rsync-path="sudo rsync" [email protected]:/usr/lib sysroot

Upvotes: 1

Related Questions