[PyKDE] PyQt Problems compiling with Qt 2.1.1

Eiji Katagiri katagiri at teikokupr.co.jp
Thu Jul 27 05:00:10 BST 2000


I have been trying to get the PyQt module to compile
with Qt 2.1.1 and can't get it work.
The configure and make both seem to work fine, but when i do a make
install, it dies one heck of a horrible death. I got a following error.

ImportError: dynamic module does not define init function (initlibqtc)

Environment: HP-UX10.20, Python1.5.2, Qt-2.1.1, sip-0.12, PyQt-0.12

Thanks for any help,

Eiji Katagiri


# gmake install
Making install in qt
gmake[1]: Entering directory `/opensrc/PyQt-0.12/qt'
gmake[2]: Entering directory `/opensrc/PyQt-0.12/qt'
/bin/sh ../mkinstalldirs /opt/python/lib/python1.5/lib-dynload
/bin/sh ../libtool  --mode=install .././install-sh -c libqtcmodule.la /opt/python/li
b/python1.5/lib-dynload/libqtcmodule.la
.././install-sh -c .libs/libqtcmodule-0.12.sl /opt/python/lib/python1.5/lib-dynload/
libqtcmodule-0.12.sl
(cd /opt/python/lib/python1.5/lib-dynload && rm -f libqtcmodule.sl && ln -s libqtcmo
dule-0.12.sl libqtcmodule.sl)
chmod 555 /opt/python/lib/python1.5/lib-dynload/libqtcmodule-0.12.sl
.././install-sh -c .libs/libqtcmodule.lai /opt/python/lib/python1.5/lib-dynload/libq
tcmodule.la
----------------------------------------------------------------------
Libraries have been installed in:
   /opt/python/lib/python1.5/lib-dynload

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `SHLIB_PATH' environment variable
     during execution
   - use the `-Wl,+b -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
/bin/sh ../mkinstalldirs /opt/python/lib/python1.5
 .././install-sh -c -m 644 ./qt.py /opt/python/lib/python1.5/qt.py
gmake  install-data-hook
gmake[3]: Entering directory `/opensrc/PyQt-0.12/qt'
(cd /tmp; PYTHONPATH=/opt/python/lib/python1.5:/opt/python/lib/python1.5/lib-dynload
 python -c "import qt")
Traceback (innermost last):
  File "<string>", line 1, in ?
  File "/opt/python/lib/python1.5/qt.py", line 16, in ?
    import libqtc
ImportError: dynamic module does not define init function (initlibqtc)
gmake[3]: *** [install-data-hook] Error 1
gmake[3]: Leaving directory `/opensrc/PyQt-0.12/qt'
gmake[2]: *** [install-data-am] Error 2
gmake[2]: Leaving directory `/opensrc/PyQt-0.12/qt'
gmake[1]: *** [install-am] Error 2
gmake[1]: Leaving directory `/opensrc/PyQt-0.12/qt'
gmake: *** [install-recursive] Error 1



Here, configuration is following.

./configure --prefix=/opt/PyQt \
        --x-includes=/usr/include/X11R6 --x-libraries=/usr/lib/X11R6 \
        --with-python-includes=/opt/python/include/python1.5 \
        --with-python-modules=/opt/python/lib/python1.5 \
        --with-sip-includes=/opt/sip/include/sip \
        --with-sip-libraries=/opt/sip/lib \
        --with-qt-dir=/usr/lib/qt






More information about the PyQt mailing list