CREATE development environment Deepin

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

DTK modules

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

Deepin applications allow you to interact with the control center. Know the source code in the Github repository.

Source code

Examples of programs designed

Learn more

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.

5 2 votes
Rate the Article
 
Subscribe
Report of
1 Reacción
More popular
Newer Older
Opinion from the article
See all comments
Эли
Эли (@eli)
Admin
3 años atrás

I already know what to use my next free time.

1
0
We would like to know what you think, join the discussion.x
()
x