-
Notifications
You must be signed in to change notification settings - Fork 22
/
README
95 lines (59 loc) · 2.79 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
tox-prpl - Tox Pidgin Protocol Plugin
http://tox.dhs.org/
Dependencies
* glib: should be available in the repositories of your distribution)
* ncurses: should be in your repo
* libpurple: https://developer.pidgin.im/) should be in your repo as well
* libsodium: http://download.libsodium.org/libsodium/releases/
* Tox: https://github.com/jin-eld/ProjectTox-Core shared lib branch
Additionally you will need gcc, autoconf, automake, libtool and maybe
a few other things for actually compiling the code.
I assume that you can install the development packages for libpurple and
glib using your favorite package manager, same goes for development tools,
so I'll only walk you through the steps for libsodium and Tox.
Usually I prefer not to install software system wide which does not come as
a distribution package (i.e. if there is no .rpm, .deb, etc.).
In the example below, replace "youruser" with your actual user name. If you
do not provide the prefix, the installation will go to /usr/local/ which will
require root priveleges for the _make install_ step.
libsodium
If you cloned libsodium from git you will have to run ./autogen.sh to generate
the configure script, if you downloaded a release tarball then configure will
already be there.
./configure --prefix=/home/youruser/Tox/sysroot
make
make install
This will install libsodium headers in /home/youruser/Tox/sysroot/include
and the library in /home/youruser/Tox/sysroot/lib.
Remember the /home/youruser/Tox/sysroot/ path, we will need it later on.
Tox core
Clone the repo if you did not do so already:
git clone https://github.com/jin-eld/ProjectTox-Core.git
cd ProjectTox-Core
Generate the configure script:
autoreconf -i
Tell configure where to find dependencies and where to install the library,
compile and install:
./configure --with-dependency-search=/home/youruser/Tox/sysroot/ --prefix=/home/youruser/Tox/sysroot/
make
make install
tox-prpl
Clone the repo if you did not do so already:
git clone https://github.com/jin-eld/tox-prpl.git
cd tox-prpl
Generate the configure script:
autoreconf -i
Tell configure where to find dependencies and where to install the plugin,
compile and install:
./configure --with-dependency-search=/home/youruser/Tox/sysroot/ --prefix=/home/youruser/Tox/sysroot/
make
make install
Unless you also compiled pidgin and installed it in your above "sysroot", the
plugin will not be found, so as a last step you need to:
mkdir ~/.purple/plugins/
cp /home/youruser/Tox/sysroot/lib/purple-2/libtox.so ~/.purple/plugins/
If you used a non standard installation location for the library, as above,
then you have to add it to your environment before running pidgin.
In the terminal where you start pidgin (assuming bash):
export LD_LIBRARY_PATH=/home/youruser/Tox/sysroot/lib
Now you are ready to start pidgin and to test the plugin.