[Exchange and share] DeepinV23 beta2编译KDE connect
Tofloor
poster avatar
川顺页
deepin
2023-10-02 09:25
Author

准备工作

  • kde官网
  • 目前最新版是5.110
  • 但是我观察到系统内置了一些kde组件,版本是5.90,所以就不用源码来编译最新版了,直接用5.90支持的版本就行了。
  1. 安装需要安装的依赖
sudo apt install git gcc g++ cmake clang-format appstream qt5-default qtdeclarative5-dev qtquickcontrols2-5-dev libqt5svg5-dev qttools5-dev-tools qttools5-dev qtbase5-private-dev  libkf5package-dev qtwayland5-dev-tools libwayland-dev libqt5waylandclient5-dev wayland-protocols libdbus-1-dev qtmultimedia5-dev libqt5x11extras5-dev gperf libxcb1-dev libxcb-keysyms1-dev libxcb-res0-dev libxfixes-dev libxcb-icccm4-dev libphonon4qt5-dev libxml2-utils libxslt1-dev libxml2-dev docbook-xml docbook-xsl libfakekey-dev libboost1.74-dev libgl1-mesa-dev libx11-xcb-dev libxcb-randr0-dev libxcb-xinerama0-dev libxcb-xinput-dev libxcb-xkb-dev libqca-qt5-2-dev libxss-dev gettext autoconf libtool libnma-dev libpipewire-0.3-dev libavcodec-dev libavformat-dev libgbm-dev libswscale-dev libepoxy-dev libdrm-dev modemmanager-dev libfam-dev libudev-dev libcanberra-dev libacl1-dev qml-module-qtquick-controls2 kirigami2-dev qml-module-org-kde-kirigami2 libkf5i18n-dev libkf5i18n5 qml-module-org-kde-i18n-localedata libkf5i18nlocaledata5 libkf5coreaddons-dev libkf5coreaddons5 qml-module-org-kde-kcoreaddons libkf5codecs-dev libkf5codecs5 qml-module-org-kde-kconfig libkf5config-dev libkf5kcmutils-dev libkf5configwidgets-dev plasma-wayland-protocols libkf5guiaddons-dev libkf5widgetsaddons-dev libkf5auth5 libkf5auth-dev libkf5configwidgets-dev libkf5configwidgets5 libkf5dbusaddons-dev libkf5dbusaddons5 libkf5archive-dev libkf5archive5 libkf5iconthemes-dev libkf5windowsystem-dev libkf5windowsystem5 qml-module-org-kde-kwindowsystem libkf5notifications-dev libkf5service-dev qml-module-org-kde-solid libkf5solid-dev libkf5solid-bin libkf5crash-dev libkf5crash5 libkf5itemviews-dev  libkf5itemviews5 libkf5itemmodels5 libkf5itemmodels-dev libkf5globalaccel-dev libkf5globalaccel5 libkf5xmlgui-dev libkf5bookmarks-dev libkf5bookmarks5 libkf5completion-dev libkf5completion5 libkf5jobwidgets-dev sonnet-plugins libkf5sonnetui5 libkf5sonnet-dev libkf5sonnet-dev-bin libkf5sonnetcore5 qml-module-org-kde-sonnet libkf5textwidgets-dev qml-module-org-kde-kio qml-module-org-kde-kio libkf5kio-dev libkf5package5 libkf5package-dev libkf5declarative-dev libkf5kcmutils5 libkf5kcmutils-dev qml-module-org-kde-people libkf5people-dev libkf5peoplebackend5 libkf5peoplewidgets5 libkf5contacts-dev libkf5contacts5 modemmanager-dev libkf5doctools-dev libkf5doctools5 kdoctools5 libkf5qqc2desktopstyle-dev qml-module-org-kde-qqc2desktopstyle libpulse-dev libkf5wayland-dev qml-module-qtquick-particles2
  1. 安装kirigami-addons(可选,不安装貌似也可以,先放着吧)
git clone https://github.com/KDE/kirigami-addons.git -b v0.11.0
cd kirigami-addons
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
cd ../..
  1. 安装pulseaudio-qt
git clone https://github.com/KDE/pulseaudio-qt.git -b v1.3.0
cd pulseaudio-qt
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
cd ../..
  1. 安装PeopleVcard
git clone https://invent.kde.org/pim/kpeoplevcard.git
cd kpeoplevcard
mkdir build && cd build
cmake ..
make -j$(nproc)
sudo make install
cd ../..

正式编译kde connect

  1. 下载源码,并选择分支22.04.3,因为这个版本需要的最低 KF5框架是5.89.0,而deepin v23内置的是5.90.0,所以这个刚好满足需求。
git clone https://invent.kde.org/network/kdeconnect-kde.git -b v22.04.3
  1. 进入目录
cd kdeconnect-kde
  1. 创建编译目录
mkdir build && cd build
  1. 配置cmake
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  1. 编译并安装
make -j$(nproc)
sudo make install

成品分享

  • 未配对状态

    image.png

  • 已配对状态

    image.png

  • 测试远程输入功能正常(即可以用手机屏幕作电脑鼠标)

  • 可以通过文件管理器,右键发送文件到手机

    image.png

  • 同时也试了手机可以正常发送文件到电脑。

  • 其他的幻灯片遥控器,多媒体控制均正常。

  • 手机剪辑版发送到电脑也完全ok。

  • 其它插件设置页面。

    image.png

  • 接收来自手机端的消息通知


    9FF96D9304E215D59A92B8CAA0618348.png

Reply Favorite View the author
All Replies
阿尼樱奈奈
Moderator
2023-10-02 13:52
#1

这个教程可以like

Reply View the author
HXZTR
deepin
2023-10-02 19:40
#2

哇,就在等这个tail

Reply View the author
hellouos
deepin
2023-10-12 04:22
#3

能知道一次性打上这么多依赖,牛逼啊。

Reply View the author
川顺页
deepin
2023-10-12 20:09
#4
hellouos

能知道一次性打上这么多依赖,牛逼啊。

😂 花时间,一点点试出来的,报错就查chatgpt/谷歌,补依赖。

Reply View the author
hellouos
deepin
2023-10-17 22:59
#5
川顺页

😂 花时间,一点点试出来的,报错就查chatgpt/谷歌,补依赖。

就是哈,编译最辛苦

Reply View the author