somveersaini / pidgin-mightytext

pidgin-mightytext
0 stars 0 forks source link

Support for Linux? #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
It would be fantastic if this amazing plugin would be ported to a .so-file for 
Linux as well!

Original issue reported on code.google.com by morten...@gmail.com on 26 Mar 2013 at 6:37

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Okay, I got it to compile on OpenSuse 12.2 x86_64, using this command. I 
probably included far more than I needed to, but I didn't feel like doing the 
research on what was actually needed:

gcc libmightytext.c strptime.c -o libmightytext.so `pkg-config --cflags --libs 
glib-2.0` -I/usr/include/json-glib-1.0 -I/usr/include/libpurple -pthread 
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -lgthread-2.0 -lrt 
-lglib-2.0 -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 
-lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig 
-lgobject-2.0 -lglib-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include 
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 
-I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include 
-I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 
-I/usr/include/libpng14 -lpurple -lglib-2.0 -ljson-glib-1.0 -g -O2 -shared -fPIC

mv libmightytext.so /usr/lib64/purple-2/libmightytext.so
mv mightytext16.png /usr/share/pixmaps/pidgin/protocols/16/mightytext.png
mv mightytext22.png /usr/share/pixmaps/pidgin/protocols/22/mightytext.png
mv mightytext48.png /usr/share/pixmaps/pidgin/protocols/48/mightytext.png

For me, it connected and works. The attached libmightytext.so is x86_64. The 
locations are probably different for other distributions, so you might do 
"locate libaim.so" and "locate 16/aim.png" to find the correct locations.

Original comment by malletma...@gmail.com on 18 Oct 2013 at 6:36

Attachments:

GoogleCodeExporter commented 9 years ago
Here is a Makefile that works for debian wheezy. After compiling, copy the 
library to /usr/lib/pidgin/libmightytext.so

Original comment by k.ljungk...@gmail.com on 18 Oct 2013 at 8:28

Attachments:

GoogleCodeExporter commented 9 years ago
Compiled per instructions below, but when I log into it, I see my contact list 
filling up, then a message window opens, and all of pidgin crashes.  Not quite 
sure how to bypass this.

Original comment by cquill...@gmail.com on 18 Jan 2014 at 6:13

GoogleCodeExporter commented 9 years ago
You probably received an MMS image. I've been having this problem lately too.

Original comment by malletma...@gmail.com on 18 Jan 2014 at 6:17

GoogleCodeExporter commented 9 years ago
This plugin wouldn't load with telepathy-haze unless I specified the json 
library during linking (at least on Fedora 20).  I used the attached Makefile 
to build the shared library.  It doesn't really work though.  I see from the 
debug logs that it gets a list of contacts but then reports an internal error 
so it doesn't really work with empathy.  Didn't try pidgin by itself.  My guess 
is the following line is the source of the problem.

** (haze:5403): CRITICAL **: purple_find_buddy: assertion '(name != NULL) && 
(*name != '\0')' failed

Original comment by work.e...@gmail.com on 3 Dec 2014 at 10:32

Attachments:

GoogleCodeExporter commented 9 years ago
I made the changes suggested here and created a repo on github:

https://github.com/tubaman/pidgin-mightytext/tree/debian_makefile

Original comment by ryan.now...@gmail.com on 27 Dec 2014 at 2:47