Deepin has its own application interface for the original applications. We are going to elaborate a development environment for Deepin and building applications in DTK. For that, we will need programming knowledge, especially C ++ and QT.
Steps for the development environment
Add the source code repository
First we will go to add the source code repository. In the terminal we edit the archive
sources.list. Then add the URL.
sudo deepin-editor /etc/apt/sources.list
deb-src http://packages.deepin.com/deepin lion main contrib non-free
Then we'll update.
sudo apt update && sudo apt upgrade -y
QT install packages
We make sure to install the following packages:
sudo apt install build-essential git cmake qt5-default qt5-qmake qtdeclarative5-dev qtcreator -y
When they are installed we check the Qt version of the application.
[email protected]:~$ qmake -v
QMake version 3.0
Using Qt version 5.7.1 in /usr/lib/x86_64-linux-gnu
Building DTK user interface applications requires your UI graphics library. You should know that it uses three modules, call us like this, important:
- dtkcore: https://tracker.debian.org/pkg/dtkcore
Sudo apt install libdtkcore-dev
- dtkwm: https://tracker.debian.org/pkg/dtkwm
Sudo apt install libdtkwm-dev
- dtkwidget: https://tracker.debian.org/pkg/dtkwidget
Sudo apt install libdtkwidget-dev
To build that interface, we have a article on the wiki.
Interacting with the graphic environment
Examples of programs designed
If you want to know more information about the development environment, visit our Deepin section UI and API. We look forward to receiving suggestions in the comments.