awslabs / pidgin-chime

Pidgin/libpurple plugin for Amazon Chime
GNU Lesser General Public License v2.1
57 stars 13 forks source link

Does this work on mac os x? #31

Open grsubramanian opened 5 years ago

grsubramanian commented 5 years ago

Some details of my setup.

[~/Downloads] % uname -a
Darwin **** 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 21 20:07:39 PDT 2018; root:xnu-3789.73.14~1/RELEASE_X86_64 x86_64
[~/Downloads/pidgin-chime-1.1] % pkg-config --variable pc_path pkg-config
/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/10.12

I use Homebrew for most packages, but needed to use Macports for farstream(farstream-0.2) which automatically installed a few more packages. I setup PKG_CONFIG_PATH to /opt/local/lib/pkgconfig where macports installed the packages. I had to manually install xproto (xproto-7.0.31), kbproto (kbproto-1.0.7), renderproto (renderproto-0.11) and xextproto (xextproto-7.3.0). I did this from https://www.x.org/archive/individual/proto/ since I could not find these from either macports or homebrew.

After this, ./autogen.sh succeeded, but make failed with the following error.

Making all in chimeseen
  CC       chimeseen_la-chimeseen.lo
  CCLD     chimeseen.la
Undefined symbols for architecture x86_64:
  "_gtk_imhtml_get_type", referenced from:
      _got_convmsg_cb in chimeseen_la-chimeseen.o
      _conv_seen_cb in chimeseen_la-chimeseen.o
  "_pidgin_conversations_get_handle", referenced from:
      _chimeseen_plugin_load in chimeseen_la-chimeseen.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[1]: *** [chimeseen.la] Error 1
make: *** [all-recursive] Error 1

Please help me get this to work, and I will be a happy bird chatting from my terminal with bitlbee and weechat on my Chime account. Feel free to ask for any information that might help. Thanks.

etanol commented 5 years ago

You didn't mention anything about GTK+. And that's where the missing symbol should come from.

dwmw2 commented 5 years ago

The chimeseen plugin is for the Pidgin UI. It's what displays the tick after a message that has been seen by its recipient. If you're not actually using Pidgin then you won't need this. And if you don't have Pidgin/GTK+/etc. then it won't even build.

grsubramanian commented 5 years ago

Ah sorry for the delayed response. I don't want to use Pidgin. I want to use weechat, but I had similar success using hangouts libpurple plugin for pidgin. I'll install GTK+ coming weekend and report on what I get. Thanks.

dwmw2 commented 5 years ago

You should be able to survive without building the chimeseen plugin at all then...