<table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" style="font: inherit;"><p>I'm working on the instructions doc now. Thanks again.<br><br><br></p>
<p>Sent from Yahoo! Mail on Android</p>
</td></tr></table>            <div id="_origMsg_">
                <div style="font-family:arial, helvetica, sans-serif:font-size:10pt">
                    <br />
                    <div style="font-family:times new roman, new york, times, serif;font-size:12pt">
                        <font size="2" face="Tahoma">
                            <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:">Subject:</span>
                            </b>
                            Re: help linking to python for dbus-python bindings                            <br>
                            <b>
                                <span style="font-weight:bold;">Sent:</span>
                            </b>
                            Thu, Jul 5, 2012 11:01:55 AM                            <br>
                            </font>
                            <br>
                            <table cellspacing="0" cellpadding="0" border="0">
                                <tbody>
                                    <tr>
                                        <td valign="top" style="font:inherit;">On 05/07/12 06:08, Mark Mikofski wrote:<BR>> *IT WORKS!*<BR><BR>Good to know. I've merged the wip-windows branch, so the next<BR>dbus-python release will be similar to the snapshot you used.<BR><BR>Since you are now the world's foremost expert on compiling dbus-python<BR>with mingw, would you mind writing a text file with instructions that<BR>can go in the doc directory?<BR><BR>Instructions for compiling dbus-glib with mingw, or any patches you<BR>needed to use, would also be very welcome.<BR><BR>> Also, I'm hopeful for the cmake build, because the win32 python is<BR>> build on msvc90, and uses that redist for extensions, altho<BR>> supposedly alt compilers can also be used (I've yet to test this -<BR>> but I guess mingw-gcc-4.7  works!). Of course this will pose another<BR>> issue for dbus-glib, which I haven't successfully built with msvc.<BR><BR>I
 believe mixing compilers is normally only a problem if you share FILE<BR>objects across library boundaries (which dbus, dbus-glib and dbus-python<BR>don't), or if you use C++ (which those projects don't). So, you should<BR>be OK here.<BR><BR>> Question on merging the cmake branch - have Ralf Habacker's KDE patches<BR>> [1] been merged?<BR><BR>If nobody has told the bug tracker about them, then most likely no.<BR><BR>> I guess maybe it would be nice to<BR>> have all of the windows ports sync'd upstream (as was done for dbus) so<BR>> there is a single source.<BR><BR>If people who have forked it want this to happen, the first step is to<BR>put patches on the bug tracker for review. I do not periodically Google<BR>for "dbus-python patch" or anything like that :-)<BR><BR>> Also, maybe I should have filed a bug, but I think it's an automake bug<BR>> in python.m4 [2] not in dbus-python. The command that finds the python<BR>> package
 directory, gets mangled on windows because it doesn't pad the<BR>> backslashes with an extra backslash, so everything get run together,<BR>> e.g. ${prefix}Libsite-packages, instead of<BR>> ${prefix}\\Lib\\site-packages. My fix is to edit the configure file and<BR>> add ".replace('\\\\\','/')" to those lines. Then it works on windows.<BR><BR>That might be a bug in Automake, yes. You should be able to work around<BR>it by putting am_cv_python_pythondir on the configure command line,<BR>something like:<BR><BR>    ./configure [... other stuff ...] \<BR>        am_cv_python_pythondir='/opt/python/Lib/site-packages'<BR><BR>(If you set a *_cv_* variable - a "cached value" - like this, Autoconf<BR>will trust what you say, and not do the automatic check it usually would.)<BR><BR>> Also, I am still getting the following warnings during make:<BR>> <BR>>     libtool: link: warning: undefined symbols not
 allowed in<BR>> i686-pc-mingw32 sharedlibraries<BR><BR>If it otherwise works, this warning is probably harmless. If there are<BR>undefined symbols in the extension, I'd need to know which symbols they<BR>are (preferably on a bug report).<BR><BR>    S<BR>_______________________________________________<BR>dbus mailing list<BR><a ymailto="mailto:dbus@lists.freedesktop.org" href="javascript:return">dbus@lists.freedesktop.org</a><BR><a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target=_blank >http://lists.freedesktop.org/mailman/listinfo/dbus</a><BR></td>
                                    </tr>
                                </tbody>
                            </table>
                    </div>
                </div>
            </div>