forked from gcompris/GCompris-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHACKING
107 lines (74 loc) · 3.21 KB
/
HACKING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
GCompris HACKING
Official repository
-------------------
The official repository requires a KDE developer account, we will ask regular
contributors to get an account and work on the KDE repository.
https://invent.kde.org/education/gcompris
For new developers and those interested only in smaller contributions use the
https://phabricator.kde.org/ or GitHub repository.
Source code from GitHub
-----------------------
Checkout the source code by cloning it from GitHub
git clone https://github.com/gcompris/GCompris-qt.git
If you want to have a personal fork, in order to commit occasional patches,
fork it on GitHub then clone your fork
git clone [email protected]:<username>/GCompris-qt.git
When asking for a pull request, create a new topic branch and commit your
changes there then open a pull request to gcompris-qt repository on GitHub.
See GitHub's documentation for more information.
https://help.github.com/categories/collaborating/
Dependencies
------------
In order to be able to compile GCompris the following Qt5 dependencies need to
be installed (version 5.12 minimum)
Qt 5 Development Defaults
Qt 5 qmake
Qt Creator
Qt Linguist Tools
Qt Core
Qt Graphical Effects QML Module
Qt Gui
Qt Multimedia
Qt Multimedia QML Module
Qt Network
Qt Qml
Qt Quick
Qt Svg
Qt Charts (qml plugin)
CMake must be installed to compile GCompris:
sudo apt install cmake
By default, translations are also built so gettext package must be installed to compile GCompris (to ignore translation files, run cmake with `-DSKIP_TRANSLATIONS=ON`:
sudo apt install gettext
Installing dependencies on a Debian based systems can be done like this:
sudo apt install libqt5svg5-dev \
qml-module-qtmultimedia \
qml-module-qtgraphicaleffects qt5-qmake qtcreator \
qtdeclarative5-dev qtmultimedia5-dev \
qtquickcontrols2-5-dev qttools5-dev \
qttools5-dev-tools libqt5multimedia5-plugins \
qml-module-qtsensors libqt5quickparticles5 \
qml-module-qtquick2 qml-module-qtquick-particles2 \
qml-module-qtquick-controls2 \
libqt5sensors5-dev libqt5sensors5 qml-module-qtcharts \
qt5-image-formats-plugins libqt5charts5-dev
To build for Android, Qt 5 AndroidExtras also needs to be installed.
If building from a .tar.gz or .zip source distribution the externals may
need to be added.
cd GCompris-qt-*
git clone https://github.com/qml-box2d/qml-box2d.git external/qml-box2d/
Build
-----
Start QtCreator and select Open Project and open CMakeLists.txt in the
gcompris-qt root directory. Follow the wizard instructions.
Use the buttons on the lower left side to build, run, and debug GCompris.
An alternative building process is to use cmake in command-line directly.
cd GCompris-qt-*
mkdir build
cd build
cmake ..
make
./bin/gcompris-qt
More Details
------------
Go To this Link:
https://gcompris.net/wiki/Qt_Quick_development_process