Ian,<br />
<br />
On Sun, 19 Jul 2009 09:36:50 +0530 wrote<br />
>On Sun, Jul 19, 2009 at 03:32:06AM -0000, Sec wrote:<br />
>> Ian,<br />
>> <br />
>> I compiled the ligcrypt and ligpgerror now using the configure method<br />
>> for mingw below and I was able to compile libotr now successfully<br />
>> under mingw.<br />
><br />
>Great!<br />
><br />
>> Now I tried compiling pidgin-otr using make -f Makefile.mingw after<br />
>> giving the paths to pidgin and libpurple sources, but I get still some<br />
>> *.h files not found like X11/Xutil.h etc. <br />
>> <br />
>> --> So I guess I guess similar compiling (like libgcrypt must be done<br />
>> for all the once listed below as well in order to avoid not finding<br />
>> some *.h files ? And the same follows for all *.h files it complains<br />
>> as you start with one ?<br />
><br />
>When you're cross-compiling for Windows, nothing at all should be<br />
>looking for X11/Xutil.h. <br />
<br />
> Did you give the paths to the *win32* pidgin<br />
>and libpurple sources in /usr/i586-mingw32msvc/include/ ? You should<br />
>also have the gtk-2.0/{gtk,gdk,gdk-pixbuf} header files in there. There<br />
>should be no references to include files under X11 in those.<br />
><br />
<br />
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 ? <br />
<br />
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<br />
(./configure --with-pic --build=`./config.guess` --host=i586mingw32msvc --prefix=/usr/i586-mingw32msvc) but not with much luck.<br />
<br />
Also I think the pidgin source is same for windows or linux (?)<br />
<br />
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). <br />
<br />
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 ?<br />
<br />
Sec<br />
<br />
Kill snoopers dead<br />
<br><Table border=0 Width=644 Height=57 cellspacing=0 cellpadding=0 style="font-family:Verdana;font-size:11px;line-height:15px;"><TR><td><A HREF="http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?" target="_blank"><IMG SRC="http://sigads.rediff.com/RealMedia/ads/adstream_nx.ads/www.rediffmail.com/signatureline.htm@Middle"></A></td></TR></Table>