[OTR-dev] Cross compile pidgin-otr for windows

Sec secq.002 at rediffmail.com
Sun Jul 19 15:33:54 EDT 2009


Ian,

On Sun, 19 Jul 2009 09:36:50 +0530  wrote
>On Sun, Jul 19, 2009 at 03:32:06AM -0000, Sec wrote:
>> Ian,
>> 
>> I compiled the ligcrypt and ligpgerror now using the configure method
>> for mingw below and I was able to compile libotr now successfully
>> under mingw.
>
>Great!
>
>> Now I tried compiling pidgin-otr using make -f Makefile.mingw after
>> giving the paths to pidgin and libpurple sources, but I get still some
>> *.h files not found like X11/Xutil.h etc. 
>> 
>> --> So I guess I guess similar compiling (like libgcrypt must be done
>> for all the once listed below as well in order to avoid not finding
>> some *.h files ? And the same follows for all *.h files it complains
>> as you start with one ?
>
>When you're cross-compiling for Windows, nothing at all should be
>looking for X11/Xutil.h.  

> Did you give the paths to the *win32* pidgin
>and libpurple sources in /usr/i586-mingw32msvc/include/ ?  You should
>also have the gtk-2.0/{gtk,gdk,gdk-pixbuf} header files in there.  There
>should be no references to include files under X11 in those.
>

It was looking for X11 stuff due to some header file in  /usr/include/gtk-2.0/gdk/gdkx.h I think. I thought it will get the gtk paths from GTK_HDRS ?= `pkg-config --cflags glib-2.0 gtk+-2.0` (in Makefile.mingw) and we dont need have them in /usr/i586-mingw32msvc/include ? 

Should I have compiled gtk also in the mingw environment instead ? (Looking the above pkg-config in the Makefile.mingw I though native one should do). I tried also compiling gtk using the same configure method as in libotr
(./configure --with-pic --build=`./config.guess` --host=i586mingw32msvc --prefix=/usr/i586-mingw32msvc) but not with much luck.

Also I think the pidgin source is same for windows or linux (?)

I had extracted the tarball into my home directory and set the paths in Makefile.mingw of the pidgin-otr to directory that contained pidgin-source-root/pidgin and pidgin-source-root/libpurple respectively (this make it get the header files except gtkwin32dep.h which was in pidgin-source-root/pidgin/win32 and win32dep.h which was in pidgin-source-root/libpurple/win32. So simply copied these two *win32dep.h one directory up and compiled). 

Can you let me know how to get the right headers for the gtk related and if the copying of the *win32dep.h like above is the right way  ?

Sec

Kill snoopers dead
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cypherpunks.ca/pipermail/otr-dev/attachments/20090719/411638be/attachment.html>


More information about the OTR-dev mailing list