Hi guys,<br><br>Thanks for replying back.<br><br>I&#39;ve made changes as suggested by Vincent. It&#39;s all quite a quickly put together hack for now but I get the warnings on static libraries as can be seen in the attached without-noundefined text file. I don&#39;t have any shared library .so files for the win32 xcb port I&#39;ve generated, just the dll and the .a,.la files......neither do the xcb-util libraries generate .so files....do I need to add -shared somewhere so these are built first?<br>
<br>The above is done without adding the -no-undefined directive. The with-undefined file which I&#39;m attaching shows what happens if I add  -no-undefined to libxcb_atom_la_LDFLAGS as an example here atom/Makefile.am. I get a bunch of  undefined references here. The same happens with image or any of the other libraries.<br>
<br>Any clues?<br><br>Thanks....n I don&#39;t know whether this list prefers file attachments or I should have pasted the text instead but if its the latter my bad..sorry :)<br><br>Bye for now<br><br><br><br><div class="gmail_quote">
On Sun, May 3, 2009 at 1:57 PM, Vincent Torri <span dir="ltr">&lt;<a href="mailto:vtorri@univ-evry.fr">vtorri@univ-evry.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
<br>
On Sun, 3 May 2009, Jeetu Golani wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Hi,<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
When you build and install libxcb, it will create xcb.pc. Points<br>
PKG_CONFIG_PATH there. For example I built libxcb with prefix<br>
$HOME/w/x11 so it would configure xcb-util like this:<br>
</blockquote>
<br>
I got past this step. I setup the XCB_CFLAGS and XCB_LIBS environment<br>
variables instead so that works.  I also had to setup environment variables<br>
for SHM and Render. Although I&#39;ve set things up so as to link against my<br>
pthreadGC2 dll there is still one place (at least) which is still causing it<br>
to link against -lpthread which fails for me....tried making changes within<br>
Makefile.am but didn&#39;t work so as a quick hack setup a symlink between<br>
libpthread.a and my pthreadGC2.dll so I got through this step.<br>
<br>
In order to get a DLL I tried doing what I did for XCB i.e. in <a href="http://configure.ac" target="_blank">configure.ac</a> I<br>
put in an AC_LIBTOOL_WIN32_DLL before AC_PROG_LIBTOOL. Also in Makefile.am I<br>
put in a libxcb_image_LDFLAGS=-no-undefined. (reciting by memory so hope I<br>
haven&#39;t made a mistake writing this but I think this seems what I did)<br>
<br>
Everything goes through now but under image/.libs all i can see is a<br>
libxcb-image.a and a .la file....no dll...so I&#39;m guessing something more<br>
needs to be done....any ideas?<br>
</blockquote>
<br></div>
to make libtool aware of building a dll:<br>
<br>
1) put AC_LIBTOOL_WIN32_DLL before AC_PROG_LIBTOOL (you already did that)<br>
2) add -no-undefined in the *_LDFLAGS cariable in the Makefile.am file<br>
3) have all the dependency dll needed to build the lib.<br>
<br>
don&#39;t forget to run &#39;make clean&#39; to force the link again before running make.<br>
<br>
check if during the link, there is no warning message that tells you that libtool can create only the static lib (for some reason). If yes, then the dll is not built. Then, paste the message.<br><font color="#888888">
<br>
Vincent<br>
</font></blockquote></div><br>