EionRobb / purple-hangouts

47 stars 4 forks source link

Unable to build for Pidgin 3 on Linux Mint 20.1 #230

Open urbster1 opened 3 years ago

urbster1 commented 3 years ago

Attempting to build is giving me lots of errors such as

/usr/local/include/purple-3/libpurple/request.h:24:3: error: #error "only <purple.h> may be included directly"
   24 | # error "only <purple.h> may be included directly"
      |   ^~~~~
In file included from /usr/local/include/purple-3/libpurple/account.h:63,
                 from libhangouts.h:33,
                 from hangouts_conversation.h:23,
                 from hangouts_conversation.c:19:
/usr/local/include/purple-3/libpurple/xmlnode.h:24:3: error: #error "only <purple.h> may be included directly"
   24 | # error "only <purple.h> may be included directly"
      |   ^~~~~
In file included from libhangouts.h:34,
                 from hangouts_conversation.h:23,
                 from hangouts_conversation.c:19:
/usr/local/include/purple-3/libpurple/connection.h:23:3: error: #error "only <purple.h> may be included directly"
   23 | # error "only <purple.h> may be included directly"
      |   ^~~~~
In file included from hangouts_conversation.h:23,
                 from hangouts_conversation.c:19:
libhangouts.h:35:10: fatal error: http.h: No such file or directory
   35 | #include "http.h"
      |          ^~~~~~~~
compilation terminated.
In file included from hangouts_media.h:23,
                 from hangouts_media.c:21:
hangouts_connection.h:25:10: fatal error: http.h: No such file or directory
   25 | #include "http.h"
      |          ^~~~~~~~
compilation terminated.
make: *** [Makefile:102: libhangouts3.so] Error 1
EionRobb commented 3 years ago

The last time I compiled the plugin for Pidgin3, the HTTP helper code was still in there. I guess it could be brought back for Pidgin3 again too, but I fear the socket code wouldn't work with it now that it's all gio.

If you feel like getting some compatible #defines written up for converting the old purple3-http code into libsoup (I think that's what Pidgin 3 uses now for web stuff?), then that would help, but right now I've not got any plans to do any purple3 compatibility work until the API for it has stabilised.