Skip to content

Commit 67b83dc

Browse files
committed
chore: Merge branch 'develop/main'
Log: Change-Id: I41a126db92ee990444ec4b7feb66505993854919
2 parents 17a85ae + 1254d86 commit 67b83dc

File tree

133 files changed

+3139
-1213
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+3139
-1213
lines changed

README.en.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ _The **dev** branch is current development branch, build dependencies may change
4545

4646
## Installation
4747

48+
*If you install the IDE on Ubuntu by source code, please refer to the [DTK dependent installation](./docs/dtk-install-guide.en.md). After the installation of the dtk environment and the basic qt environment, you can install the IDE through the following source installation method.*
49+
4850
1. Make sure you have installed all dependencies.
4951

5052
``` shell

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ _当前的开发分支为**dev**,编译依赖可能会在没有更新本说明
4545

4646
## 安装
4747

48+
*如若在Ubuntu上使用源码安装方式安装IDE,请先参考[DTK依赖安装](./docs/dtk-install-guide.md),在DTK环境以及基本qt环境安装完成后,可通过下面源码安装的方式安装本IDE。*
49+
4850
1. 确保已经安装所有依赖库。
4951

5052

assets/configures/unioncode.desktop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ MimeType=text/plain;application/x-code-workspace;
1010
Name=Deepin Union Code
1111
Path=/usr/bin
1212
StartupNotify=false
13-
StartupWMClass=Code
13+
StartupWMClass=UnionCode
1414
Type=Application
1515
X-Deepin-Vendor=user-custom

assets/templates/projects/dfm-extension/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ project(%{ProjectName})
55
set(CMAKE_CXX_STANDARD 17)
66

77
# build
8-
find_package(dfm-extension REQUIRED)
8+
find_package(dfm-extension)
9+
if (NOT dfm-extension_FOUND)
10+
message(FATAL_ERROR "Could not find the libdfm-extension-dev, please download it first and then try again")
11+
endif()
12+
913
file(GLOB_RECURSE SRCS CONFIGURE_DEPENDS
1014
"./*.h"
1115
"./*.cpp"

assets/translations/zh_CN.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2668,7 +2668,7 @@ repos path: %0</source>
26682668
<message>
26692669
<location filename="../../src/common/widget/outputpane.cpp" line="228"/>
26702670
<source>Clear</source>
2671-
<translation>清扫</translation>
2671+
<translation>清除</translation>
26722672
</message>
26732673
<message>
26742674
<location filename="../../src/common/widget/outputpane.cpp" line="238"/>

docs/dtk-install-guide.en.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## DTK Dependency Installation
2+
3+
For deepin-unioncode, the required dependency libraries include dtkcore, dtkwidget, dtkgui, and qt5integration, and this section describes the installation of these dependencies.
4+
5+
### 1. Source Code Pull
6+
7+
First you need to download the source code of the dtk dependency library in the [deepin github community](https://github.com/linuxdeepin):
8+
9+
[dtkcore](https://github.com/linuxdeepin/dtkcore)[dtkwidget](https://github.com/linuxdeepin/dtkwidget)[dtkgui](https://github.com/linuxdeepin/dtkgui)[qt5integration](https://github.com/linuxdeepin/qt5integration)
10+
11+
The dtkcore might rely on [dtkcommon](https://github.com/linuxdeepin/dtkcommon),qt5integration will depend on the [qt5platform-plugins](https://github.com/linuxdeepin/qt5platform-plugins)
12+
13+
### 2. Environmental Installation
14+
15+
First you need to install the qt environment and execute the following command
16+
17+
```shell
18+
sudo apt update
19+
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qttools5-dev qt5-private-dev
20+
```
21+
22+
### 3. DTK Installation
23+
24+
After the source code is pulled down, ensure that the required dependencies are properly installed and execute the following command in the directory location where the source code for each dependency library is located
25+
26+
```shell
27+
sudo apt build-dep .
28+
```
29+
30+
There are two ways to install dtk dependencies, one is the source code installation, and the second is the build-your-own-package installation. The source installation method is described in the README document of the respective dependent libraries, and will not be repeated here. This section describes how to install using a software package:
31+
32+
In the source root of the respective dependent library, use the following command to package
33+
34+
```shell
35+
dpkg-buildpackage -us -uc -b -j16
36+
```
37+
38+
"-j16" Specifies the parameter for multi-core execution, which can be increased or decreased according to the number of processor cores and performance.
39+
40+
The following errors may occur when installing dependent libraries:
41+
42+
![image-20240605152527906](./dtk-install/error1.png)
43+
44+
Cause: The dependent version failed to be properly packaged
45+
46+
The solution:
47+
48+
```shell
49+
vim debian/rules
50+
# Find "override_dh_shlibdeps:" in the opened file
51+
# Add "dh_shlibdeps -- dpkg-shlibdps-params =--ignore-missing-info"
52+
```
53+
54+
![image-20240605153447864](./dtk-install/solution1.png)
55+
56+
After all dependencies are successfully packaged, you can use the installation package to install the dependencies. After the installation, run commands to check whether the dependencies are successfully installed and whether their versions meet requirements.
57+
58+
```shell
59+
apt policy libdtkcore5
60+
# Other dependencies are viewed in the same way
61+
```

docs/dtk-install-guide.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
## DTK依赖安装
2+
3+
对于Deepin-IDE,所需要的依赖库包括dtkcore,dtkwidget,dtkgui以及qt5integration,本部分介绍这几个依赖的安装。
4+
5+
### 1. 源码拉取
6+
7+
首先需要在深度的github社区中下载dtk依赖库的源码:
8+
9+
[dtkcore](https://github.com/linuxdeepin/dtkcore)[dtkwidget](https://github.com/linuxdeepin/dtkwidget)[dtkgui](https://github.com/linuxdeepin/dtkgui)[qt5integration](https://github.com/linuxdeepin/qt5integration)
10+
11+
其中,dtkcore可能会依赖[dtkcommon](https://github.com/linuxdeepin/dtkcommon),qt5integration会依赖[qt5platform-plugins](https://github.com/linuxdeepin/qt5platform-plugins)
12+
13+
### 2. 环境安装
14+
15+
首先需要安装qt环境,按照以下命令执行
16+
17+
```shell
18+
sudo apt update
19+
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qttools5-dev qt5-private-dev
20+
```
21+
22+
### 3. 安装
23+
24+
源码拉下来之后,确保所需依赖都已正确安装,在每个依赖库的源码所在的目录位置执行以下命令
25+
26+
```shell
27+
sudo apt build-dep .
28+
```
29+
30+
接下来有两种方式来安装dtk依赖,一种是源码安装方式,第二种是自己构建软件包安装方式。源码安装方式在对应的各自依赖库的README文档中有介绍,这里不再赘述。这里介绍使用软件包安装方式:
31+
32+
在各自依赖库的源码根目录下,使用以下命令打包
33+
34+
```shell
35+
dpkg-buildpackage -us -uc -b -j16
36+
```
37+
38+
-j16为多核执行,可根据处理器核数和性能酌情增减。
39+
40+
安装依赖库时可能会出现以下错误:
41+
42+
![image-20240605152527906](./dtk-install/error1.png)
43+
44+
原因:依赖的版本问题导致无法正常打包
45+
46+
解决方法:
47+
48+
```shell
49+
vim debian/rules
50+
# 在打开的文件中找到override_dh_shlibdeps:
51+
# 添加dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
52+
```
53+
54+
![image-20240605153447864](./dtk-install/solution1.png)
55+
56+
在所有依赖都成功打包后,可直接使用安装包进行依赖的安装,安装完成后使用命令查看依赖是否安装成功,以及依赖的版本是否满足要求。
57+
58+
```shell
59+
apt policy libdtkcore5
60+
# 其他依赖同理
61+
```

docs/dtk-install/error1.png

178 KB
Loading

docs/dtk-install/solution1.png

6.23 KB
Loading

src/base/abstractdebugger.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class AbstractDebugger : public QObject
4747

4848
virtual void startDebug() = 0;
4949
virtual void startDebugRemote(const RemoteInfo &info) = 0;
50+
virtual void attachDebug(const QString &processId) = 0;
5051
virtual void detachDebug() = 0;
5152

5253
virtual void interruptDebug() = 0;

0 commit comments

Comments
 (0)