[other] 花了一天时间,终于编译出来一个能正常运行的DeepinUnionCode
Tofloor
poster avatar
raspbian
deepin
2023-11-05 00:34
Author

效果图

0x00 安装系统

微软商店下载deepin WSL 安装过程这里不赘述

0x01 添加源

deepin v23对应Debian 11 所以添加bullseye的源

# 需要使用root用户执行
echo -e 'deb https://mirrors4.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free\ndeb https://mirrors4.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free\ndeb https://mirrors4.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free\ndeb https://mirrors4.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free\n' >> /etc/apt/sources.list.d/bullseye.list

0x02 处理缺失的密钥

添加后执行更新命令 sudo apt update会提示没有密钥

# 其中16位的密钥是根据你自己的报错信息修改
# 加入了代理是因为这算是个"不存在的网站" 如果你对当前的网络环境有信心 可以去掉
sudo apt-key adv --keyserver-options http-五个不让发的字母=http://192.168.1.20:8889/ --keyserver keyserver.ubuntu.com --recv-keys 605C66F00D6C9793
sudo apt-key adv --keyserver-options http-五个不让发的字母=http://192.168.1.20:8889/ --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131
sudo apt-key adv --keyserver-options http-五个不让发的字母=http://192.168.1.20:8889/ --keyserver keyserver.ubuntu.com --recv-keys 54404762BBB6E853
sudo apt update

0x03 安装全部依赖项

# 如果程序更新后依赖改变 以 ./debian/control为准
sudo apt install \
debhelper \
cmake \
qt5-qmake \
qtbase5-dev \
qttools5-dev \
qttools5-dev-tools \
lxqt-build-tools \
libssl-dev \
llvm \
llvm-dev \
libclang-dev \
libutf8proc-dev \
libmicrohttpd-dev \
libjsoncpp-dev \
libargtable2-dev \
libhiredis-dev \
catch \
libzstd-dev \
libjson-c-dev \
libelf-dev \
libcapstone-dev \
libunwind-dev \
libelfin-dev \
libdbus-1-dev \
libxi-dev \
qtscript5-dev \
libqt5scripttools5 \
clang \
doxygen \
qtbase5-dev \
qtdeclarative5-dev \
qtscript5-dev \
qttools5-dev \
libqt5svg5-dev \
libqt5opengl5-dev \
libqt5sql5-mysql \
libqt5sql5-sqlite \
libqt5quick5-dev \
libqt5websockets5-dev \
qtcreator

0x04 确保已经安装所有依赖库

git clone https://gitee.com/deepin-community/deepin-unioncode.git
cd deepin-unioncode
sudo apt build-dep ./

0x05 构建

# 如果你对自己的电脑有信心 也可以使用全部线程构建
cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
cmake --build build

0x06 安装

sudo cmake --build build --target install

0x07 运行

deepin-unioncode
Reply Favorite View the author
All Replies
root
deepin
2023-11-05 01:36
#1

添加debian 11 源好评

tail

Reply View the author
阿尼樱奈奈
Moderator
2023-11-05 01:40
#2

like

Reply View the author
花雨落逝
Moderator
2023-11-05 02:07
#3

我好奇啥字母不让发(手动捂脸

Reply View the author
raspbian
deepin
2023-11-05 03:16
#4
花雨落逝

我好奇啥字母不让发(手动捂脸

p删r掉o中x文y

Reply View the author
mardou
deepin
2023-11-05 04:43
#5

这个东东有什么功用呢?

Reply View the author
爱开发
deepin
2023-11-05 07:33
#6

这个简单。直接写个 GitHub Action。用它提供的主机来打就行了。或者用 Docker 打包。在自己系统上面打,搞复杂了。

Reply View the author
userqian
deepin
2023-11-05 10:05
#7

不是使用玲珑了么,怎么还是一大堆依赖?

Reply View the author
晚秋(lateautumn)
Moderator
2023-11-05 19:21
#8

厉害joy

Reply View the author
raspbian
deepin
2023-11-06 00:05
#9
爱开发

这个简单。直接写个 GitHub Action。用它提供的主机来打就行了。或者用 Docker 打包。在自己系统上面打,搞复杂了。

github的自动构建一直不明白怎么生成最后的文件

Reply View the author
raspbian
deepin
2023-11-07 01:41
#10
mardou

这个东东有什么功用呢?

who care ?

Reply View the author
raspbian
deepin
2023-11-07 01:42
#11
userqian

不是使用玲珑了么,怎么还是一大堆依赖?

在我看来

玲珑就是有人帮你把这些东西打包发给你直接用罢了

不说了 每天蹲在提款机里面给客户数钱太累了

Reply View the author