Open GhostValk opened 8 years ago
https://github.com/jgeboski/purple-facebook/wiki/Building-on-*NIX
Make sure glib, json-glib, libpurple (pidgin), and zlib are installed with their headers and development information.
Install libpurple-dev or the equivalent for your distro
Got glib, json-glib, and installed pidgin; tried both with and without gui (OSX), but it's always the same error.. I assume libpurple comes with pidgin, right?
I compiled this plugin some time ago and used it for about a year, now i deleted it by mistake and can't compile it again, don't know why =/
As of what point did the purple headers get a subfolder?
Purple libraries are installed in libpurple folder inside /usr/local/include
Still can't compile it, same error all the time, even if i input the headers with -I...
This is because of the way the plugin handles header naming conflicts. We have a local util.h
as well as a libpurple/util.h
, which means the plugin is assuming libpurple/*.h
is accessible. While this is the case most of the time, it is not guaranteed, which is why things like pkg-config are helpful. However, purple.pc
only defines -I${prefix}/include/libpurple
, and not -I${prefix}/include
(which is a good thing).
What really needs to happen is for this plugin to rename some of its headers to avoid conflicting with libpurple headers. I meant to do this two or three weeks ago, but never ended up getting around to doing it.
In the mean time, see if this works as a temporary solution:
CFLAGS="-I/usr/local/include" ./autogen.sh
make
Edit: Fixed the CFLAGS.
CFLAGS="-I/usr/include/libpurple" ./autogen.sh
Shouldn't that be this? CFLAGS="-I/usr/local/include" ./autogen.sh
Yep, good catch.
I'm trying to compile the plugin, but i'm getting an error. After autogen or configure, when doing make, i get:
Any advice?