[PyKDE] PyQt4 snapshot fails to build (pluginloader.cpp) on
FreeBSD since 2-3 days
Danny Pansters
danny at ricin.com
Fri Feb 16 22:54:40 GMT 2007
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).
But still, after that:
desktop# make
`QtCore.so' is up to date.
`QtGui.so' is up to date.
`QtNetwork.so' is up to date.
`QtOpenGL.so' is up to date.
`QtSql.so' is up to date.
`QtSvg.so' is up to date.
`QtTest.so' is up to date.
`QtXml.so' is up to date.
`QtAssistant.so' is up to date.
`QtDesigner.so' is up to date.
`qt.so' is up to date.
`pylupdate4' is up to date.
`pyrcc4' is up to date.
c++ -c -pipe -O2 -fno-strict-aliasing -pipe -Wall -W -fPIC -DPYTHON_LIB=\"/usr/local/lib/python2.4/config/libpython2.4.a\" -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I. -I/usr/local/include/QtDesigner -I/usr/local/include/QtCore -I/usr/local/include/QtCore -I/usr/local/include/QtGui -I/usr/local/include/QtGui -I/usr/local/include/QtXml -I/usr/local/include/QtXml -I/usr/local/include -I/usr/local/include/python2.4 -I. -I. -I/usr/local/include -o
pluginloader.o pluginloader.cpp
pluginloader.cpp: In constructor `PyCustomWidgets::PyCustomWidgets(QObject*)':
pluginloader.cpp:176: error: invalid conversion from `const char*' to `char*'
pluginloader.cpp:176: error: initializing argument 1 of `PyObject*
PyImport_ImportModule(char*)'
pluginloader.cpp: In static member function `static PyObject*
PyCustomWidgets::getModuleAttr(const char*, const char*)':
pluginloader.cpp:247: error: invalid conversion from `const char*' to `char*'
pluginloader.cpp:247: error: initializing argument 1 of `PyObject*
PyImport_ImportModule(char*)'
pluginloader.cpp:255: error: invalid conversion from `const char*' to `char*'
pluginloader.cpp:255: error: initializing argument 2 of `PyObject*
PyObject_GetAttrString(PyObject*, char*)'
*** Error code 1
desktop# python -V
Python 2.4.3
desktop# gcc -v
Using built-in specs.
Configured with: FreeBSD/i386 system compiler
Thread model: posix
gcc version 3.4.6 [FreeBSD] 20060305
Looks to be a casting problem. Any ideas?
Cheers,
Dan
On Thursday 15 February 2007 23:32, Danny Pansters wrote:
> Hi,
>
> I get what seems to be a similar problem as what Patrick is seeing on his
> Mac, on FreeBSD. We recently had the Qt4 ports comitted and I've been
> working on the FreeBSD ports for PyQt4, sip (update), Qscintilla2 and have
> been following the snapshots daily, running full builds of the packages on
> my tinderbox. Since a day or two/three, I get this (before that it built
> and ran):
>
> c++ -c -pipe -O2 -fno-strict-aliasing -pipe -Wall -W -fPIC
> -DPYTHON_LIB=\"/usr/local/lib/libpython2.4.a\" -DQT_NO_DEBUG -DQT_PLUGIN
> -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQDESIGNER_EXPORT_WIDGETS
> -DQT_SHARED
> -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
> -I/usr/local/include/QtDesigner -I/usr/local/include/QtCore
> -I/usr/local/include/QtCore -I/usr/local/include/QtGui
> -I/usr/local/include/QtGui -I/usr/local/include/QtXml
> -I/usr/local/include/QtXml -I/usr/local/include
> -I/usr/local/include/python2.4 -I. -I. -I/usr/local/include -o
> pluginloader.o pluginloader.cpp
> In file included from /usr/local/include/python2.4/Python.h:76,
> from pluginloader.cpp:29:
> /usr/local/include/python2.4/object.h:343: error: expected unqualified-id
> before ';' token
> /usr/local/include/python2.4/object.h:343: error: abstract declarator
> `PyObject*' used as declaration
> pluginloader.cpp: In constructor
> `PyCustomWidgets::PyCustomWidgets(QObject*)': pluginloader.cpp:162: error:
> invalid conversion from `const char*' to `char*' pluginloader.cpp:162:
> error: initializing argument 1 of `PyObject*
> PyImport_ImportModule(char*)'
> *** Error code 1
>
> Stop
> in
> /work/a/ports/x11-toolkits/py-qt4/work/PyQt-x11-gpl-4-snapshot-20070212/des
>igner. *** Error code 1
>
> It wants to use libpython2.4.a archive, but FreeBSD only has the .so
>
> I can provide the complete build log including configure but it's probably
> not very interesting, everything gets picked up. Qt components, qscintilla,
> py-dus, .. are options to the port and all of them are enabled by default.
> For qscintilla2 I have 3 ports that use the same source tarball:
> qscintilla2, qscintilla-designerplugin, py-qscintilla2 (this has dependency
> on py-qt4), the latter two are seperate because they need qscintilla2 to be
> installed first.
>
> Cheers,
>
> Dan
>
> _______________________________________________
> PyKDE mailing list PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
More information about the PyQt
mailing list