help linking to python for dbus-python bindings

Mark Mikofski bwanamarko at yahoo.com
Tue Jul 3 17:44:49 PDT 2012


I am in great awe of the amazing work the dbus developers have done! But I need help with dbus-python.

I am using mingw, windows xp sp3 (x86), dbus-1.6.0 (confirmed works), dbus-glib-0.100.
I have passed PYTHON_LIBS="-L/c/python27/libs -llibpython27.a" with and without the "a" extension.
I also made my own library from python27.dll using the directions on mingw faqs [1], then linking using PYTHON_LIBS="-L/mingw/lib -libpython27" which is where I copied the library too, both with and without the "a" extension.
I tried linking with PYTHON_LIBS="-L/c/windows/system32 -lpython27.dll" with and without "dll" extension.

The linker always warns that undefined objects will be ignored, and then compiles all of the objects in _dbus_bindings, links them together, without libpython.

Then python doesn't recognize the extension

traceback is dll error, %1 is not a valid win32 application.

nm _dbus_bindings shows that it's full of libraries.

[1] http://www.mingw.org/wiki/FAQ

I'm trying the cmake variations now from kde and chris hoeger, but any help would be greatly appreciated. Thanks!
 
Thanks,
Mark Mikofski
poquitopicante.blogspot.com
breakingbytes.blogspot.com
www.breaking-bytes.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20120703/cb91f111/attachment.html>


More information about the dbus mailing list