Ian,<br />
<br />
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.<br />
<br />
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. <br />
<br />
--> 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 ? <-- Sort of leading into endless dependencies.<br />
<br />
- glib 2.6 [http://www.gtk.org/download/]<br />
- gtk+ 2.6 [http://www.gtk.org/download/]<br />
- pidgin 2.x [http://pidgin.im/]<br />
<br />
With pidgin I could not use the same configure command to compile and I found that one cannot cross compile in the same way. If I understand correct one does not need to have pidgin 2.x installed as long as I point to the right src folders and I did this in the Makefile.mingw<br />
<br />
Can you please let me know about the part between the arrows ? <br />
<br />
It you can provide some steps (since obviously those in INSTALL are not good for cross compile) that would be very helpful.<br />
<br />
There is also another user trying to compile the same and we are both stuck at the same point.<br />
<br />
Thanks,<br />
Sec<br />
<br />
Kill snoopers dead<br />
<br />
<br />
On Tue, 14 Jul 2009 07:30:40 +0530 wrote<br />
>On Tue, Jul 14, 2009 at 12:17:22AM -0000, Sec wrote:<br />
>> Ian,<br />
>> <br />
>> Thanks, that seemed to make it see the gcrypt.h now (INSTALL says use the libgcrypt11-dev package, but that didn't get it working somehow). I also did the same for libgpg-error and it can see that header too, but I get yet another error when I try to "make" libotr<br />
>> <br />
>> i586-mingw32msvc-gcc -g -O2 -o .libs/otr_parse.exe otr_parse.o readotr.o parse.o sha1hmac.o ../src/.libs/libotr.so /usr/lib/libgcrypt.so /usr/i586-mingw32msvc/lib/libgcrypt.so /usr/lib/libgpg-error.so -L/usr/i586-mingw32msvc/lib<br />
>> ../src/.libs/libotr.so: could not read symbols: File in wrong format<br />
>> <br />
>> The last path seems really strange : "/usr/i586-mingw32msvc/lib<br />
>> ../src/.libs/libotr.so" - there is no / after lib<br />
>> <br />
>> Can you tell me how to fix it ? <br />
><br />
>That's not the link line I get. When I compile libgpg-error and<br />
>libgcrypt, I get .a files, not .so files. Then this line links them:<br />
><br />
>i586-mingw32msvc-gcc -g -O2 -o otr_parse.exe otr_parse.o readotr.o<br />
> parse.o sha1hmac.o ../src/.libs/libotr.a -lgcrypt -lgpg-error<br />
><br />
><br />
> - Ian<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>