The reference to X11.lib comes from the original setup.py. The reference to python27.lib seems to come from distutils (build_ext.py, in the get_libraries method)<br>I didn&#39;t find any .lib file in my pypy installation (the standard binaries version 1.7 32bits for windows), just some dlls.<br>
Do I need to rebuild pypy from source ?<br><br>Thanks,<br>Arnaud<br><br><div class="gmail_quote">2012/1/18 Amaury Forgeot d&#39;Arc <span dir="ltr">&lt;<a href="mailto:amauryfa@gmail.com">amauryfa@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im">2012/1/18 Arnaud F <span dir="ltr">&lt;<a href="mailto:pachalmars@gmail.com" target="_blank">pachalmars@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Still no luck.<br>I made sure that i am using the correct version of tcl/tk and tested the compilation of tkinter with python27 and it worked.<br>With pypy, i still have to define WITH_THREAD (it&#39;s defined in pyconfig.h for python27 but not in pypy-1.7); I also had to modify the setup.py since i used tcl/tk 8.5 (and the libs do not have the dot in windows : tcl85 and tk85)<br>


Now I get missing libs error from the linker :<br><br>LINK : fatal error LNK1181: cannot open input file &#39;X11.lib&#39;<br>LINK : fatal error LNK1181: cannot open input file &#39;python27.lib&#39;<br></blockquote><div>

<br></div></div><div>Well, this is progress!</div><div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">if i try to remove X11 from the librairies in setup.py and add a path to python27.lib, i get a lot of unresolved external symbols<br>

</blockquote><div><br></div></div><div>How comes that you need the X11 library? didn&#39;t you build a dll version of tcl/tk? (tcl85.dll, tk85.dll)</div><div>Don&#39;t use the CPython python27.lib, you should use the one shipped with pypy; it&#39;s possible that it is named libpypy.lib instead. Just rename it if needed.</div>

<div><br></div></div><div class="HOEnZb"><div class="h5">-- <br>Amaury Forgeot d&#39;Arc<br>
</div></div></blockquote></div><br>