forked from linuxdeepin/deepin-unioncode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I881a0f4cdec849d7f777505800374622f7d980c7
- Loading branch information
Showing
86 changed files
with
2,360 additions
and
1,021 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
## DTK Dependency Installation | ||
|
||
For deepin-unioncode, the required dependency libraries include dtkcore, dtkwidget, dtkgui, and qt5integration, and this section describes the installation of these dependencies. | ||
|
||
### 1. Source Code Pull | ||
|
||
First you need to download the source code of the dtk dependency library in the [deepin github community](https://github.com/linuxdeepin): | ||
|
||
[dtkcore](https://github.com/linuxdeepin/dtkcore),[dtkwidget](https://github.com/linuxdeepin/dtkwidget),[dtkgui](https://github.com/linuxdeepin/dtkgui),[qt5integration](https://github.com/linuxdeepin/qt5integration) | ||
|
||
The dtkcore might rely on [dtkcommon](https://github.com/linuxdeepin/dtkcommon),qt5integration will depend on the [qt5platform-plugins](https://github.com/linuxdeepin/qt5platform-plugins) | ||
|
||
### 2. Environmental Installation | ||
|
||
First you need to install the qt environment and execute the following command | ||
|
||
```shell | ||
sudo apt update | ||
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qttools5-dev qt5-private-dev | ||
``` | ||
|
||
### 3. DTK Installation | ||
|
||
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 | ||
|
||
```shell | ||
sudo apt build-dep . | ||
``` | ||
|
||
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: | ||
|
||
In the source root of the respective dependent library, use the following command to package | ||
|
||
```shell | ||
dpkg-buildpackage -us -uc -b -j16 | ||
``` | ||
|
||
"-j16" Specifies the parameter for multi-core execution, which can be increased or decreased according to the number of processor cores and performance. | ||
|
||
The following errors may occur when installing dependent libraries: | ||
|
||
![image-20240605152527906](./dtk-install/error1.png) | ||
|
||
Cause: The dependent version failed to be properly packaged | ||
|
||
The solution: | ||
|
||
```shell | ||
vim debian/rules | ||
# Find "override_dh_shlibdeps:" in the opened file | ||
# Add "dh_shlibdeps -- dpkg-shlibdps-params =--ignore-missing-info" | ||
``` | ||
|
||
![image-20240605153447864](./dtk-install/solution1.png) | ||
|
||
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. | ||
|
||
```shell | ||
apt policy libdtkcore5 | ||
# Other dependencies are viewed in the same way | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
## DTK依赖安装 | ||
|
||
对于Deepin-IDE,所需要的依赖库包括dtkcore,dtkwidget,dtkgui以及qt5integration,本部分介绍这几个依赖的安装。 | ||
|
||
### 1. 源码拉取 | ||
|
||
首先需要在深度的github社区中下载dtk依赖库的源码: | ||
|
||
[dtkcore](https://github.com/linuxdeepin/dtkcore),[dtkwidget](https://github.com/linuxdeepin/dtkwidget),[dtkgui](https://github.com/linuxdeepin/dtkgui),[qt5integration](https://github.com/linuxdeepin/qt5integration) | ||
|
||
其中,dtkcore可能会依赖[dtkcommon](https://github.com/linuxdeepin/dtkcommon),qt5integration会依赖[qt5platform-plugins](https://github.com/linuxdeepin/qt5platform-plugins) | ||
|
||
### 2. 环境安装 | ||
|
||
首先需要安装qt环境,按照以下命令执行 | ||
|
||
```shell | ||
sudo apt update | ||
sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools qttools5-dev qt5-private-dev | ||
``` | ||
|
||
### 3. 安装 | ||
|
||
源码拉下来之后,确保所需依赖都已正确安装,在每个依赖库的源码所在的目录位置执行以下命令 | ||
|
||
```shell | ||
sudo apt build-dep . | ||
``` | ||
|
||
接下来有两种方式来安装dtk依赖,一种是源码安装方式,第二种是自己构建软件包安装方式。源码安装方式在对应的各自依赖库的README文档中有介绍,这里不再赘述。这里介绍使用软件包安装方式: | ||
|
||
在各自依赖库的源码根目录下,使用以下命令打包 | ||
|
||
```shell | ||
dpkg-buildpackage -us -uc -b -j16 | ||
``` | ||
|
||
-j16为多核执行,可根据处理器核数和性能酌情增减。 | ||
|
||
安装依赖库时可能会出现以下错误: | ||
|
||
![image-20240605152527906](./dtk-install/error1.png) | ||
|
||
原因:依赖的版本问题导致无法正常打包 | ||
|
||
解决方法: | ||
|
||
```shell | ||
vim debian/rules | ||
# 在打开的文件中找到override_dh_shlibdeps: | ||
# 添加dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info | ||
``` | ||
|
||
![image-20240605153447864](./dtk-install/solution1.png) | ||
|
||
在所有依赖都成功打包后,可直接使用安装包进行依赖的安装,安装完成后使用命令查看依赖是否安装成功,以及依赖的版本是否满足要求。 | ||
|
||
```shell | ||
apt policy libdtkcore5 | ||
# 其他依赖同理 | ||
``` |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.