forked from giuspen/cherrytree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
98 lines (65 loc) · 2.83 KB
/
README
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
# https://www.gtkmm.org/en/documentation.shtml
# https://developer.gnome.org/gtkmm-tutorial/stable/
# https://developer.gnome.org/gtkmm/stable/
# https://developer.gnome.org/gtkmm/stable/hierarchy.html
# https://developer.gnome.org/gtksourceviewmm/stable/
# https://developer.gnome.org/libxml++-tutorial/stable/
# https://developer.gnome.org/libxml++/stable/
# https://cpputest.github.io/
# ---- Building Cherrytree in Ubuntu ----
# Install Dependencies
sudo apt install build-essential libtool autoconf libgtkmm-3.0-dev libgtksourceviewmm-3.0-dev libxml++2.6-dev libsqlite3-dev libcpputest-dev autopoint gettext intltool python3-lxml libxml2-utils
# for debug with gdb
CXXFLAGS="-g -O0" ./autogen.sh
# or for release
./autogen.sh
make
./cherrytree
make check
./run_tests
# packages for documentation
sudo apt install libgtkmm-3.0-doc libgtksourceviewmm-3.0-doc libglibmm-2.4-doc libpangomm-1.4-doc libxml++2.6-doc
# =>
xdg-open /usr/share/doc/libgtkmm-3.0-doc/reference/html/index.html
xdg-open /usr/share/doc/libgtksourceviewmm-3.0-doc/reference/html/index.html
xdg-open /usr/share/doc/libglibmm-2.4-doc/reference/html/index.html
xdg-open /usr/share/doc/libpangomm-1.4-doc/reference/html/index.html
xdg-open /usr/share/doc/libxml++2.6-doc/reference/html/index.html
# ---- Building Cherrytree in Fedora ----
# Install Dependencies
# ====================
sudo dnf install @development-tools gcc-c++ libtool autoconf gtkmm30-devel gtksourceviewmm3-devel libxml++-devel libsq3-devel gettext-devel gettext intltool python3-lxml libxml2
# Install CppUTest
# ================
git clone git://github.com/cpputest/cpputest.git
cd cpputest/cpputest_build
autoreconf .. -i
../configure
sudo make install
# (OPTIONAL) See https://cpputest.github.io/ for more information on CppUTest
# Build Cherrytree
# ================
git clone https://github.com/giuspen/cherrytree.git
cd cherrytree/future
# for debug with gdb (See #troubleshooting below if you encounter errors.)
CXXFLAGS="-g -O0" ./autogen.sh
# or for release
./autogen.sh
make
./cherrytree
make check
./run_tests
# Troubleshooting
# If autogen.sh fails because cpputest is not found, set PKG_CONFIG_PATH and try running autogen again.
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
# If cpputest is still not found, reboot, set PKG_CONFIG_PATH again, run autogen.sh again.
# (OPTIONAL) Download Documentation
===================================
sudo dnf install gtkmm30-doc gtksourceviewmm3-doc glibmm24-doc glibmm24-doc libxml++-doc
# (OPTIONAL) Open Documentation
===============================
xdg-open /usr/share/doc/gtkmm-3.0/reference/html/index.html
xdg-open /usr/share/doc/gtksourceviewmm-3.0/reference/html/index.html
xdg-open /usr/share/doc/glibmm-2.4/reference/html/index.html
xdg-open /usr/share/doc/pangomm-1.4/reference/html/index.html
xdg-open /usr/share/doc/libxml++2.6/reference/html/index.html