[PyKDE] TNX .. problems downgraded, but ...
Ludger Humbert
humbert at hagen.de
Tue Apr 23 22:27:00 BST 2002
Hi,
in the meantime installing sip was successful.
First steps in installing PyQt are successful to.
But some problems remain.
[localhost:~/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2] hum% python
Python 2.2.1 (#1, Apr 18 2002, 23:40:34)
[GCC 2.95.2 19991024 (release)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import libsip
>>>
this is ok now ...
after changing form -dynamiclib
to
-bundle in the
central Makefile of PyQt
running make ...
and make install
[localhost:~/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2] hum% file
/sw/lib/python2.2/site-packages/libq*
/sw/lib/python2.2/site-packages/libqtcmodule-3.2.dylib: Mach-O bundle ppc
/sw/lib/python2.2/site-packages/libqtcmodule-3.2.so: symbolic link to
libqtcmodule-3.2.dylib
/sw/lib/python2.2/site-packages/libqtcmodule.dylib: symbolic link to
libqtcmodule-3.2.dylib
/sw/lib/python2.2/site-packages/libqtcmodule.la: English text
/sw/lib/python2.2/site-packages/libqtcmodule.so: symbolic link to
libqtcmodule-3.2.so
[localhost:~/SOFTWARE/AUSGEPACKT] hum% python
Python 2.2.1 (#1, Apr 18 2002, 23:40:34)
[GCC 2.95.2 19991024 (release)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import qt
>>>
Hey, .. this works ;-)
---------------------------------------------------------------------------------------------------
but now
>>> from struktcanvas import *
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "struktcanvas.py", line 27, in ?
class StruktCanvas(QCanvasView):
NameError: name 'QCanvasView' is not defined
>>>
---------------------------------------------------------------------------------------------------
this is due to some errors while linking:
[localhost:SOFTWARE/AUSGEPACKT/PyQt-3.2rc2] root# make install
...
Making install in qtcanvas
c++ -E -I/sw/include/python2.2 -I/sw/include -DQT_THREAD_SUPPORT
-I/usr/X11R6/include -I.. sipqtcanvasProxyqtcanvas.h
>moc_sipqtcanvasProxyqtcanvas.h
sipqtcanvasProxyqtcanvas.h:39: undefined type, found `class'
sipqtcanvasProxyqtcanvas.h:39: illegal external declaration, missing `;'
after `sipProxyqtcanvas'
sipqtcanvasProxyqtcanvas.h:39: undefined type, found `public'
sipqtcanvasProxyqtcanvas.h:39: illegal external declaration, missing `;'
after `sipProxy'
sipqtcanvasProxyqtcanvas.h:41: undefined type, found `Q_OBJECT'
sipqtcanvasProxyqtcanvas.h:43: illegal external declaration, missing `;'
after `public'
sipqtcanvasProxyqtcanvas.h:46: undefined type, found `public'
sipqtcanvasProxyqtcanvas.h:46: illegal external declaration, missing `;'
after `slots'
sipqtcanvasProxyqtcanvas.h:48: undefined type, found `QObject'
cpp-precomp: warning: errors during smart preprocessing, retrying in
basic mode
/sw/bin/moc -o sipqtcanvasProxyqtcanvas.moc moc_sipqtcanvasProxyqtcanvas.h
/bin/sh ../libtool --mode=link c++ -fno-exceptions -O2 -o
libqtcanvascmodule.la -rpath /sw/lib/python2.2/site-packages -release
3.2 qtcanvascmodule.lo sipqtcanvasQCanvasText.lo
sipqtcanvasQCanvasEllipse.lo sipqtcanvasQCanvasLine.lo
sipqtcanvasQCanvasSpline.lo sipqtcanvasQCanvasPolygon.lo
sipqtcanvasQCanvasRectangle.lo sipqtcanvasQCanvasPolygonalItem.lo
sipqtcanvasQCanvasSprite.lo sipqtcanvasQCanvasPixmapArray.lo
sipqtcanvasQCanvasPixmap.lo sipqtcanvasQCanvasView.lo
sipqtcanvasQCanvas.lo sipqtcanvasQCanvasItem.lo
sipqtcanvasQCanvasItemList.lo -L../qt -lqtcmodule
-L/sw/lib/python2.2/site-packages -L/sw/lib -lsip -lqt-mt
-L/usr/X11R6/lib -lSM -lICE -lX11
rm -fr .libs/libqtcanvascmodule.la .libs/libqtcanvascmodule.*
.libs/libqtcanvascmodule-3.2.*
*** Warning: This library needs some functionality provided by -lqtcmodule.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** Warning: This library needs some functionality provided by -lsip.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.
../libtool: parse error: condition expected: xno = [3183]
c++ -bundle -flat_namespace -undefined suppress -o
.libs/libqtcanvascmodule-3.2.dylib qtcanvascmodule.lo
sipqtcanvasQCanvasText.lo sipqtcanvasQCanvasEllipse.lo
sipqtcanvasQCanvasLine.lo sipqtcanvasQCanvasSpline.lo
sipqtcanvasQCanvasPolygon.lo sipqtcanvasQCanvasRectangle.lo
sipqtcanvasQCanvasPolygonalItem.lo sipqtcanvasQCanvasSprite.lo
sipqtcanvasQCanvasPixmapArray.lo sipqtcanvasQCanvasPixmap.lo
sipqtcanvasQCanvasView.lo sipqtcanvasQCanvas.lo
sipqtcanvasQCanvasItem.lo sipqtcanvasQCanvasItemList.lo
-L/usr/X11R6/lib -L/sw/lib -L/sw/lib/python2.2/site-packages
-L/Users/hum/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2/qt
-L/Users/hum/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2/qt/.libs -lqt-mt -lSM -lICE
-lX11 -lc -install_name
/sw/lib/python2.2/site-packages/libqtcanvascmodule-3.2.dylib
(cd .libs && rm -f libqtcanvascmodule.dylib && ln -s
libqtcanvascmodule-3.2.dylib libqtcanvascmodule.dylib)
/Users/hum/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2/qtcanvas/.libs
creating libqtcanvascmodule.la
(cd .libs && rm -f libqtcanvascmodule.la && ln -s
../libqtcanvascmodule.la libqtcanvascmodule.la)
/Users/hum/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2/qtcanvas/.libs
/bin/sh ../mkinstalldirs /sw/lib/python2.2/site-packages
/bin/sh ../libtool --mode=install /usr/bin/install -c
libqtcanvascmodule.la /sw/lib/python2.2/site-packages/libqtcanvascmodule.la
libtool: install: warning: relinking `libqtcanvascmodule.la'
cd /Users/hum/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2/qtcanvas; /bin/sh
../libtool --mode=relink c++ -fno-exceptions -O2 -o
libqtcanvascmodule.la -rpath /sw/lib/python2.2/site-packages -release
3.2 qtcanvascmodule.lo sipqtcanvasQCanvasText.lo
sipqtcanvasQCanvasEllipse.lo sipqtcanvasQCanvasLine.lo
sipqtcanvasQCanvasSpline.lo sipqtcanvasQCanvasPolygon.lo
sipqtcanvasQCanvasRectangle.lo sipqtcanvasQCanvasPolygonalItem.lo
sipqtcanvasQCanvasSprite.lo sipqtcanvasQCanvasPixmapArray.lo
sipqtcanvasQCanvasPixmap.lo sipqtcanvasQCanvasView.lo
sipqtcanvasQCanvas.lo sipqtcanvasQCanvasItem.lo
sipqtcanvasQCanvasItemList.lo -L../qt -lqtcmodule
-L/sw/lib/python2.2/site-packages -L/sw/lib -lsip -lqt-mt
-L/usr/X11R6/lib -lSM -lICE -lX11
/Users/hum/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2/qtcanvas/.libs
../libtool: parse error: condition expected: xno = [3183]
c++ -bundle -flat_namespace -undefined suppress -o
.libs/libqtcanvascmodule-3.2.dylib qtcanvascmodule.lo
sipqtcanvasQCanvasText.lo sipqtcanvasQCanvasEllipse.lo
sipqtcanvasQCanvasLine.lo sipqtcanvasQCanvasSpline.lo
sipqtcanvasQCanvasPolygon.lo sipqtcanvasQCanvasRectangle.lo
sipqtcanvasQCanvasPolygonalItem.lo sipqtcanvasQCanvasSprite.lo
sipqtcanvasQCanvasPixmapArray.lo sipqtcanvasQCanvasPixmap.lo
sipqtcanvasQCanvasView.lo sipqtcanvasQCanvas.lo
sipqtcanvasQCanvasItem.lo sipqtcanvasQCanvasItemList.lo
-L/usr/X11R6/lib -L/sw/lib -L/sw/lib/python2.2/site-packages
-L/Users/hum/SOFTWARE/AUSGEPACKT/PyQt-3.2rc2/qt
/sw/lib/python2.2/site-packages/libqtcmodule.dylib
/sw/lib/python2.2/site-packages/libsip.so -lqt-mt -lSM -lICE -lX11 -lc
-install_name /sw/lib/python2.2/site-packages/libqtcanvascmodule-3.2.dylib
/usr/bin/ld: /sw/lib/python2.2/site-packages/libqtcmodule.dylib is input
for the dynamic link editor, is not relocatable by the static link
editor again
/usr/bin/ld: /sw/lib/python2.2/site-packages/libsip.so is input for the
dynamic link editor, is not relocatable by the static link editor again
libtool: install: error: relink `libqtcanvascmodule.la' with the above
command before installing it
----------------------------------------------------------------------
Libraries have been installed in:
/sw/lib/python2.2/site-packages
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 the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
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 /sw/lib/python2.2/site-packages
/usr/bin/install -c -m 644 qtcanvas.py
/sw/lib/python2.2/site-packages/qtcanvas.py
make install-data-hook
(cd /tmp;
PYTHONPATH=/sw/lib/python2.2/site-packages:/sw/lib/python2.2/site-packages
/Users/hum/bin/python -c "import qtcanvas")
Traceback (most recent call last):
File "<string>", line 1, in ?
File "/sw/lib/python2.2/site-packages/qtcanvas.py", line 41, in ?
import libqtcanvasc
ImportError: No module named libqtcanvasc
make[3]: *** [install-data-hook] Error 1
make[2]: *** [install-data-am] Error 2
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
I want the remaining errors to go away.
Please give help a change ;-)
Ludger
More information about the PyQt
mailing list