[PyKDE] PyQt4 snapshot fails to build (pluginloader.cpp) on FreeBSD since 2-3 days

Danny Pansters danny at ricin.com
Sat Feb 17 16:07:52 GMT 2007


On Saturday 17 February 2007 01:35, Phil Thompson wrote:
> On Saturday 17 February 2007 12:10 am, Danny Pansters wrote:
> > On Saturday 17 February 2007 00:18, Phil Thompson wrote:
> > > On Friday 16 February 2007 10:54 pm, Danny Pansters wrote:
> > > > A little bit better:
> > > >
> > > > If I use pyldlib_dir = ducfg["LIBPL"] it seems to get the correct
> > > > path (/usr/local/lib/python2.4/config/python2.4.a).
> > >
> > > Try with tonight's snapshot which has now been fully ported to Mac and
> > > Windows. I don't run FreeBSD so there will probably still be problems.
> >
> > Will do.
> >
> > BTW, when googling "python2.4.a" I noticed that there are also Linux
> > distros that use $prefix/lib/python$ver/config/ for the .a so that bit is
> > probably not only a consideration on FreeBSD. If
> > get_config_vars(["LIBPL"]) works for you I'd suggest using that rather
> > than hardcoding $prefix/lib.
>
> I don't want the directory with the .a file, I want the directory with the
> .so file.

It seems to work now anyway.

> > But the real build failure is the second one with the const char* vs
> > char*.
>
> I think it should be fixed - its a problem with Python 2.4 and earlier.

There's one more:

--- designer/pluginloader.cpp.orig      Sat Feb 17 04:45:08 2007
+++ designer/pluginloader.cpp   Sat Feb 17 16:47:46 2007
@@ -173,7 +173,7 @@
         // Import each plugin.
         for (int plug = 0; plug < plugins.size(); ++plug)
         {
-            PyObject *plug_mod = 
PyImport_ImportModule(plugins.at(plug).toAscii().constData());
+            PyObject *plug_mod = 
PyImport_ImportModule(plugins.at(plug).toAscii().data());

             if (!plug_mod)
             {

It builds now, yay! Thanks,

Dan




More information about the PyQt mailing list