在鸿蒙设备上体验 Air 系列软件:Krita 与 Audacity 的 Qt/KDE 观察
最近看到 GitCode 上的 Air 系列软件项目,比较有兴趣。这个系列主要尝试将一些桌面开源软件移植到 HarmonyOS 上。
项目仓库:
我自己比较关注 Qt / KDE 应用在 HarmonyOS 上的移植情况,所以这次主要体验了 Krita 和 Audacity。
最近看到 GitCode 上的 Air 系列软件项目,比较有兴趣。这个系列主要尝试将一些桌面开源软件移植到 HarmonyOS 上。
项目仓库:
我自己比较关注 Qt / KDE 应用在 HarmonyOS 上的移植情况,所以这次主要体验了 Krita 和 Audacity。
CelesMark X, the first native HarmonyOS benchmark app across HUAWEI devices. Besides bench-marking, it can give Kirin/GPU/+ Model names alongside telling how native games will play on your device.
I have a few devices in hand, just list results here.
| Devices | CPU-Single Core | CPU-Multiple Cores | GPU | Total | Note |
|---|---|---|---|---|---|
| Pura 80 Pro(Mobile) | 2625 | 6103 | 2267 | 10995 | LMR-AL00/Kirin9020/Maleoon920/API21 |
| MatePad Pro(Tablet) | 2540 | 6704 | 1005 | 10249 | XYAO-W00/Kirin9000s/Maleoon910/API21 |
| MateBook Pro(Laptop) | 1057 | 15240 | 2508 | 18805 | HAD-W32/KirinX90/Maleoon916/API22 |
Note: there is no CelesMark X on other platforms(iOS/Android/macOS/Windows/Linux and etc), so we still can’t compare HarmonyOS devices with others yet.
顾名思义花粉症是因对花粉过敏引起的症状,是“过敏体质”的患者反复接触致敏花粉后,由机体免疫系统产生反应从而导致的一系列临床症状。主要表现在鼻、眼、咽部及支气管。典型症状为打喷嚏、流鼻涕、鼻痒和鼻塞,出现眼睛痒、流泪、眼红和灼热感,咽部会感到瘙痒、咳嗽,部分患者合并支气管哮喘、过敏性皮炎等疾病。症状的出现与花粉的地域和播散季节相关。
花粉过敏主要发生在春季,也会延续到夏季。
Got a Acer ConceptD 7 Ezel CC715-71P to install Linux and test touch screen on it. After booting from Ubuntu 23.10 USB, the installer told me that I need to deal with the Intel RST settings. Reboot, F2, enter the BIOS setup, but I didn’t find any option related.
Yeah, got a new work laptop recently, MacBook Pro 16″, M3 Max/36GB/1TB. But Asahi Linux is not ready for M3 yet.
And I have VMware Fusion, then I tried a few linux distributions with arm64/aarch64 support.
Assume you have a host(x86_64) build of qtbase, like following:
|
1 2 3 4 5 6 7 |
cd ~/qt git clone git://code.qt.io/qt/qtbase.git mkdir qtbase-build cd qtbase-build ../qtbase/configure -developer-build -opensource -confirm-license -nomake examples -nomake tests -verbose cmake --build . --parallel -j8 |
Some extra work to setup system:
Install Ubuntu 23.10, for me, it’s an VM via VMware Fusion 13.5.0 on MacBook Pro 2019.
Install some needed packages,
|
1 2 3 4 5 6 7 8 |
sudo apt install -y zsh build-essential perl python3 git sudo snap install cmake --classic sudo apt install ninja-build sudo apt-get build-dep qtbase-opensource-src sudo apt-get install libxcb-xinerama0-dev sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev sudo apt-get install libdbus-1-dev libglib2.0-dev |
Default gcc/g++ is 13.2.0.
Add following in env:
|
1 2 3 |
export MAKEFLAGS='--jobs=8' export CMAKE_GENERATOR=Ninja |
I normally run several linux vms in VMware Fusion on MacBook Pro 2019. Recently during a trip, the system stuck. I forced a shutdown and reboot. Then I lost network in a Ubuntu 23.04 vm, there is no ethernet interfaces in Network section in Settings(GNOME), and there is no related icon in top-right corner.
I googled a few times, I found one article helped me. Something is wrong in this file:
|
1 2 3 4 5 6 |
sudo cat /var/lib/NetworkManager/NetworkManager.state [main] NetworkingEnabled=false WirelessEnabled=true WWANEnabled=true |
Anyway, I just followed the steps in the article, it works for me.
|
1 2 3 4 |
sudo service NetworkManager stop sudo rm /var/lib/NetworkManager/NetworkManager.state sudo service NetworkManager start |
XDG Desktop Portal and Flatpak are more and more in used. If you are using Qt, Flatpak KDE runtime is a good place to start, install pre-built Qt binaries in Flatpak world. But it’s normally for the released versions.
If you want to play with the edge of Qt, for example, dev branch, you can try following steps:
|
1 2 3 4 5 6 7 8 9 10 |
git clone https://github.com/liangqi/flatpak-kde-runtime.git cd flatpak-kde-runtime make remotes make check make org.kde.Sdk.app cd repo flatpak remote-add --user --no-gpg-verify liang-flatpak file://$(pwd) flatpak install --user liang-flatpak org.kde.Platform flatpak install --user liang-flatpak org.kde.Sdk |
And here is an example at io.qt.examples.dropsite.yaml
|
1 2 3 4 |
git clone https://github.com/liangqi/dropsite-flatpak.git cd dropsite-flatpak flatpak-builder --user --install --force-clean build-dir io.qt.examples.dropsite.yaml |
Thanks bbhtt for the help in matrix.to: Packaging KDE Apps in Flatpaks channel.