<html><body><div style="color:#000; background-color:#fff; font-family:garamond, new york, times, serif;font-size:12pt"><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span>Simon, t</span><span style="font-size: 12pt; ">hanks so much for helping me (and others) in getting dbus-python built for windows! I will try out the wip-windows branch and let you know how it goes. </span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span style="font-size: 12pt; "><br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span style="font-size: 12pt; ">*IT WORKS!*</span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span style="font-size: 12pt; "><br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span style="font-size: 12pt; ">Also, I'm hopeful for the cmake build,
because the win32 python is build on msvc90, and uses that redist for extensions, altho supposedly alt compilers can also be used (I've yet to test this - but I guess mingw-gcc-4.7 works!). Of course this will pose another issue for dbus-glib, which I haven't successfully built with msvc.</span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span>Question on merging the cmake branch - have Ralf Habacker's KDE patches [1] been merged? I don't think they were merged in choeger's fork, and they probably have some redundancies. I guess maybe it would be nice to have all of the windows ports sync'd upstream (as was done for dbus) so there is a single source.</span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: garamond, 'new
york', times, serif; font-size: 12pt; "><span>Also, maybe I should have filed a bug, but I think it's an automake bug in python.m4 [2] not in dbus-python. The command that finds the python package directory, gets mangled on windows because it doesn't pad the backslashes with an extra backslash, so everything get run together, e.g. ${prefix}Libsite-packages, instead of ${prefix}\\Lib\\site-packages. My fix is to edit the configure file and add ".replace('\\\\\','/')" to those lines. Then it works on windows.</span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span>Also, I am still getting the following warnings during make:</span></div><div><br></div><div> libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 sharedlibraries</div><div style="font-family: garamond, 'new york',
times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; ">Anyway, thanks again!</div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span><br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span>[1] <a href="http://websvn.kde.org/trunk/kdesupport/emerge/portage/testing/dbus-python/">http://websvn.kde.org/trunk/kdesupport/emerge/portage/testing/dbus-python/</a> <br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; ">[2] <a href="http://poquitopicante.blogspot.com/2012/07/pythonm4-macro-not-for-windows-mingw32.html" style="font-size: 12pt; ">http://poquitopicante.blogspot.com/2012/07/pythonm4-macro-not-for-windows-mingw32.html</a></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span
style="font-family:garamond, times, serif;" class="yui_3_2_0_18_134145992499974"><br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span style="font-family:garamond, times, serif;" class="yui_3_2_0_18_134145992499974"><br></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><span style="font-family: garamond, times, serif; ">Thanks,<br>Mark Mikofski<br><a rel="nofollow" target="_blank" href="http://poquitopicante.blogspot.com/">poquitopicante.blogspot.com</a><br><a rel="nofollow" target="_blank" href="http://breakingbytes.blogspot.com/">breakingbytes.blogspot.com</a><br><a rel="nofollow" target="_blank" href="http://www.breaking-bytes.com/">www.breaking-bytes.com</a></span></div><div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "><br></div> <div style="font-family: garamond, 'new york', times, serif; font-size: 12pt; "> <div
style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Simon McVittie <simon.mcvittie@collabora.co.uk><br> <b><span style="font-weight: bold;">To:</span></b> dbus@lists.freedesktop.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, July 4, 2012 4:29 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: help linking to python for dbus-python bindings<br> </font> </div> <br>
On 04/07/12 01:44, Mark Mikofski wrote:<br>> I have passed PYTHON_LIBS="-L/c/python27/libs -llibpython27.a" with and<br>> without the "a" extension.<br><br>The right syntax for -l (at least on Unix...) looks like "-lpython27".<br>You shouldn't specify the "lib" at the beginning, or the extension (.a,<br>.dll, .lib) at the end - the compiler should add those automatically.<br><br>If you have libraries visible to your compiler in<br>/c/python27/libs/libpython27.a, /c/python27/libs/libpython27.lib and/or<br>/c/python27/libs/libpython27.dll (probably easiest to copy them all into<br>the same directory?) then the correct value for PYTHON_LIBS would be:<br><br> PYTHON_LIBS="-L/c/python27/libs -lpython27"<br><br>Please try this patched version of the dbus-python source, which should<br>hopefully improve matters on Windows:<br><br>http://people.freedesktop.org/~smcv/dbus-python-1.1.1.20120704.tar.gz<br><br>or get the 'wip-windows' branch from
the dbus-python git repository<br>(it's the same code). Let me know if this works better, I'll merge it if<br>there's positive feedback.<br><br>> I also made my own library from python27.dll using the directions on<br>> mingw faqs [1], then linking using PYTHON_LIBS="-L/mingw/lib<br>> -libpython27" which is where I copied the library too, both with and<br>> without the "a" extension.<br><br>When reporting a bug or asking for help, a good format is:<br><br>* what you did (in enough detail that someone else could do exactly the<br>same - so in this case, please include the exact configure and make<br>commands you used)<br><br>* what you expected to happen (presumably "a _dbus_bindings.pyd that I<br>can import" in this case)<br><br>* what actually happened, including the exact text of any error messages<br><br>Thanks,<br> S<br>_______________________________________________<br>dbus mailing list<br><a
ymailto="mailto:dbus@lists.freedesktop.org" href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>http://lists.freedesktop.org/mailman/listinfo/dbus<br><br><br> </div> </div> </div></body></html>