sixi
February 22, 2022, 6:40am
1
本帖最后由 sixi 于 2022-2-22 14:46 编辑
firefly@firefly:~$ sudo apt install -y \
libmtdev1 \
libinput10 \
libxkbcommon0 \
libdouble-conversion1 \
libicu60 \
libharfbuzz0b \
libwebpdemux2 \
libwebpmux3
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package libdouble-conversion1
E: Unable to locate package libwebpdemux2
更新了镜像源 然后安装qt环境 还是报这个错 这个是在RK3399上配置的
sixi
February 22, 2022, 6:51am
3
penguin 发表于 2022-2-22 14:46
哪个版本的系统? 有执行apt update吗?
ubuntu 18.04.6 执行了 后面有几行报错
然后执行 sudo apt-get upgrade 显示 零个更新 啥的
sixi
February 22, 2022, 6:54am
4
404 Not Found [IP: 240e:95c:3004:d:3::3f3 80]
Err:177 https://mirrors.ustc.edu.cn/ubuntu bionic-proposed/main arm64 Packages
404 Not Found [IP: 2001:da8:d800:95::110 443]
Ign:178 https://mirrors.ustc.edu.cn/ubuntu bionic-proposed/restricted arm64 Packages
Ign:179 https://mirrors.ustc.edu.cn/ubuntu bionic-proposed/universe arm64 Packages
Ign:124 http://mirrors.aliyun.com/ubuntu bionic-backports/universe arm64 Packages
Fetched 1472 kB in 9s (163 kB/s)
Reading package lists… Done
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic/InRelease Could not connect to mirrors.163.com:80 (60.191.80.11). - connect (113: No route to host)
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-security/InRelease Unable to connect to mirrors.163.com :http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-updates/InRelease Unable to connect to mirrors.163.com :http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-proposed/InRelease Unable to connect to mirrors.163.com :http:
W: Failed to fetch http://mirrors.163.com/ubuntu/dists/bionic-backports/InRelease Unable to connect to mirrors.163.com :http:
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic/main/binary-arm64/Packages 404 Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-security/main/binary-arm64/Packages 404 Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-updates/main/binary-arm64/Packages 404 Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic/main/binary-arm64/Packages 404 Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-updates/main/binary-arm64/Packages 404 Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-proposed/main/binary-arm64/Packages 404 Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-backports/main/binary-arm64/Packages 404 Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch http://mirrors.aliyun.com/ubuntu/dists/bionic-backports/main/binary-arm64/Packages 404 Not Found [IP: 240e:95c:3004:d:3::3f3 80]
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-security/main/binary-arm64/Packages 404 Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch https://mirrors.tuna.tsinghua.edu.cn/ubuntu/dists/bionic-proposed/main/binary-arm64/Packages 404 Not Found [IP: 2402:f000:1:400::2 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic-updates/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic-backports/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic-security/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
E: Failed to fetch https://mirrors.ustc.edu.cn/ubuntu/dists/bionic-proposed/main/binary-arm64/Packages 404 Not Found [IP: 2001:da8:d800:95::110 443]
W: Some index files failed to download. They have been ignored, or old ones used instead.
firefly@firefly:~$ sudo apt-get upgrade
Reading package lists… Done
Building dependency tree
Reading state information… Done
Calculating upgrade… Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
penguin
February 22, 2022, 6:58am
5
自己更新了源? 网络环境问题, 多执行几次apt update .
sixi
February 22, 2022, 7:10am
6
执行了无数次了 结果一样 是不是源的问题
还有个问题就是 我要编译qt 是要把下面的全部操作一遍吗
还是 只用在板子上操作完了 把项目复制到板子上 然后通过终端进入项目目录 输入 qmake&&make 编译就可以了吗
# Qt 5.12.2 arm64 ubuntu18.04 Cross Compile
Firefly Qt5.12.2 ,Work Environment
Host(x86 PC) : ubuntu 18.04 x86_64
Target(RK3399, RK3328, PX30): ubuntu 18.04 arm64
## Host Deployment
$ apt install -y crossbuild-essential-arm64
$ cd firfly_arm64_qt5.12.2_18.04
$ mkdir -p /opt
$ cp -rfd host/opt/* /opt/
$ cp host/host_qtEnv.sh /etc/profile.d/
reboot
## Target Deployment
$ cd firfly_arm64_qt5.12.2_18.04
$ mkdir -p /opt
$ cp -rfd host/opt/firefly_qt5.12.2_arm64_18.04/ext /opt/firefly_qt5.12.2
$ cp target/target_qtEnv.sh /etc/profile.d/
$ cp target/qt.conf /etc/ld.so.conf.d
$ ldconfig
$ reboot
$ [ -e /usr/lib/aarch64-linux-gnu/libGLESv2.so.2.0.0 ] || apt install -y libgles2
\# Install base library
$ apt install -y \
libmtdev1 \
libinput10 \
libxkbcommon0 \
libdouble-conversion1 \
libicu60 \
libharfbuzz0b \
libwebpdemux2 \
libwebpmux3
#Qt QPA Backends
\# linuxfb
$ export QT_QPA_PLATFORM=LINUXFB
$ export QT_QPA_FB_DRM=1
$ demo/analogclock
#eglfs
$ export QT_QPA_PLATFORM=EGLFS
$ export QT_QPA_EGLFS_INTEGRATION=EGLFS_KMS #in minimal ubuntu, use eglfs_kms.
$ export QT_QPA_EGLFS_KMS_ATOMIC=1 #use drm atomic api or legacy api(two different)
$ export QT_QPA_EGLFS_HIDECURSOR=1 #hide cursor
$ demo/openglwindow
#xcb (Ubuntu Desktop)
$ apt install -y \
libxcb-icccm4 \
libxcb-image0 \
libxcb-shm0 \
libxcb-keysyms1 \
libxcb-render0 \
libxcb-render-util0 \
libxcb-shape0 \
libxcb-sync1 \
libxcb-xfixes0 \
libxcb-xinerama0 \
libxcb-xkb1 \
libxcb-randr0 \
libsm6 \
libice6 \
libxkbcommon-x11-0
$ export QT_QPA_PLATFORM=xcb
$ export QT_QPA_EGLFS_INTEGRATION=XCB_EGL
## Cross Compile on Host
$ cd example/
$ qmake
$ make
sixi
February 22, 2022, 7:42am
7
penguin 发表于 2022-2-22 14:58
自己更新了源? 网络环境问题, 多执行几次apt update .
我电脑上安装了一个qt 5.14 怎么用官网提供的5.12 编译呢 我使用 qmake