Compiling Webkit

Asked by daniel

How would I compile this on Windows to get a .dll? I have been trying to use this plugin for months but have not gotten it to work. Can you provide details about how to do this on windows? I have Cygwin installed and I can get Pidgin to compile correctly, but not this plugin. Please help. Where does the webkit.c need to be in order to correctly include all dependents? What are all the dependents?

Thanks for any help you can provide!

Question information

Language:
English Edit question
Status:
Answered
For:
Pidgin-WebKit Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Simo Mattila (simom) said :
#1

I haven't yet tried to compile this plugin on Windows and Cygwin. I think you have at least to rewrite Makefile since cygwin doesn't seem to have pkg-config. You don't have to put webkit.c to any special directory for it to work, you just have to rewrite Makefile to include all the dependencies. And only dependencies for this plugin has are gtk, Pidgin and WebKit.

Revision history for this message
daniel (dolfelt) said :
#2

I am still having problems compiling it. All files are included, but I am getting syntax errors and some other errors that I am not sure where they are coming from. Here is the output:

In file included from ../../libpurple/buddyicon.h:34,
                 from ../../libpurple/blist.h:78,
                 from ../../libpurple/status.h:117,
                 from ../../libpurple/connection.h:146,
                 from ../../libpurple/account.h:42,
                 from ../../libpurple/conversation.h:140,
                 from webkit.c:36:
../../libpurple/prpl.h:573: error: syntax error before "G_GNUC_NULL_TERMINATED"
../../libpurple/prpl.h:613: error: syntax error before "G_GNUC_NULL_TERMINATED"
In file included from ../../libpurple/connection.h:146,
                 from ../../libpurple/account.h:42,
                 from ../../libpurple/conversation.h:140,
                 from webkit.c:36:
../../libpurple/status.h:246: error: syntax error before "G_GNUC_NULL_TERMINATED
"
../../libpurple/status.h:289: error: syntax error before "G_GNUC_NULL_TERMINATED
"
In file included from ../../libpurple/conversation.h:140,
                 from webkit.c:36:
../../libpurple/account.h:419: error: syntax error before "G_GNUC_NULL_TERMINATE
D"
In file included from c:/cygwin/usr/include/unistd.h:4,
                 from webkit.c:51:
c:/cygwin/usr/include/sys/unistd.h:108: error: syntax error before numeric const
ant
webkit.c: In function `pidgin_webkit_write_conv':
webkit.c:848: error: implicit declaration of function `strdup'
make: *** [webkit.dll] Error 1

I don't understand why there are syntax errors in the Pidgin source code. When I compile other plugins, they work just fine without errors, even with all the includes, but the moment I try to compile webkit.c, I get all these.

Any help would be appreciated!

Thanks,
Daniel

Revision history for this message
Simo Mattila (simom) said :
#3

I included purple.h in revision 42 that defines G_GNUC_NULL_TERMINATED if necessary, hope that this helps. Try it out.

Revision history for this message
daniel (dolfelt) said :
#4

Your new source code got me further than ever. After making several modifications, I was able to compile the webkit.c to an object: webkit.o, but from there, I was not able to compile it to a .dll.

The errors I am getting are references to functions. For some reason it add _imp__ to the beginning of all my functions. Do you know what is causing this? I will search online to see if I can find an answer, but if you know, please let me know.

Thanks for all your hard work!

Revision history for this message
Simo Mattila (simom) said :
#5

I will check the compiling under Cygwin later, now I can't make any guesses with this information you gave. Did you notice there is also prefs.c that popped up to later revisions? ;)

Revision history for this message
Gatlin Johnson (q-launchpad-gatlin-oib-com) said :
#6

I am interested in compiling this for Windows as well (for use with PidginPortable; new job, can't install anything :). I managed to cross-compile Pidgin using the mingw compiler and toolchain on Ubuntu, as per the instructions on the official Pidgin site.

That was the first and only thing I have ever cross-compiled, so I'm not quite certain what is involved with compiling WebKit and linking everything together. Have you made any progress, Daniel, or have you any advice on how to get started? I do have a Windows VM if that's necessary.

Revision history for this message
Ben Larsson (bentagtag) said :
#8

How Can I Install Pidgin-Webkit In Ubuntu 14.04 LTS ...

Can you help with this problem?

Provide an answer of your own, or ask daniel for more information if necessary.

To post a message you must log in.