Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSX Installation error #14

Open
smullins7 opened this issue Sep 21, 2012 · 6 comments
Open

OSX Installation error #14

smullins7 opened this issue Sep 21, 2012 · 6 comments

Comments

@smullins7
Copy link

Hello, I'm trying to install this plugin for use with Adium on Mountain Lion. I've cloned the latest and run "make" But I'm getting the following error message:

Package purple was not found in the pkg-config search path.
Perhaps you should add the directory containing `purple.pc'
to the PKG_CONFIG_PATH environment variable
No package 'purple' found
CC campfire.o
In file included from campfire.c:3:
campfire.h:5:24: error: glib/gi18n.h: No such file or directory

There are a number of additional errors printed, but they are likely due to the top error. Is there a dependency I need to install on OSX?

@jrfoell
Copy link
Owner

jrfoell commented Sep 21, 2012

I had assumed that Adium simply used the libpurple protocols as-is, but looking at the Adium IRC code (as an example) there's an "adapter" written to use the libpurple IRC implementation. This may be worth asking an Adium developer and / or digging in on your own if you feel comfortable.

I did find this: http://rampion.blogspot.com/2008/09/howto-wrap-libpurple-plugin-for-adium.html

I do not have access to a Mac / OSX / XCode to try any of these things out, but any help is welcome!

@msteinert
Copy link
Collaborator

To compile you will need the libpurple development package and all of it's dependencies. If you already have them installed then you could try setting PKG_CONFIG_PATH to point to the directory containing purple.pc, e.g.

$ ls /usr/lib/pkgconfig/purple.pc
/usr/lib/pkgconfig/purple.pc
$ export PKG_CONFIG_PATH=/usr/lib/pkgconfig

If that doesn't work and you really do have all of the necessary header files & libraries installed, you could try modifying the makefile. You'll want to replace all of the occurrences of $(shell pkg-config ...) with the appropriate values.

Having said all that, I don't have a Mac and I've never tested the plugin with Adium. I'd be curious to know if you get it to work!

As a side note, would this package be easier to install on Mac (and in general) if it had an Autotools configure script?

@msteinert
Copy link
Collaborator

I have an update on this issue (I got a Macbook for work recently). I was able to compile the plugin using Homebrew to install the dependencies. IIRC I did something like this to compile it:

$ brew install pkg-config libpurple
$ cd campfire-libpurple && make

You also need to make sure you have a compiler etc. I haven't figured out how to get the plugin to work with Adium, hopefully that will come next!

@jrfoell
Copy link
Owner

jrfoell commented Nov 17, 2012

Awesome! Keep us updated on the progress you're able to make.

@jfoell
Copy link
Collaborator

jfoell commented Mar 28, 2013

@smullins7 ,
Any progress or news?

@smullins7
Copy link
Author

@jfoell I tried to get it working on my '12 MBP but to no avail. I gave up and have just been using campfire directly through the browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants