[Python-de] problem beim laden einer shared library
Diez B. Roggisch
deets at web.de
Mo Apr 21 14:36:45 CEST 2014
Hallo,
> ich arbeite auf ubuntu 14.04
>
> und habe eine eine library gebaut mit cmake .
Welche genau waere auch hilfreich. Zum sourcecode-schmoekern.
> make
> make install
>
> das resultat ist:
> root at salice:/home/robert/Downloads/cvblob/cvblob# make install
> [ 66%] Built target cvblob
> [ 77%] Built target test
> [ 88%] Built target test_random
> [100%] Built target test_tracking
> Install the project...
> -- Install configuration: "Release"
> -- Up-to-date: /usr/local/share/cvblob/cvBlobConfig.cmake
> -- Up-to-date: /usr/local/lib/pkgconfig/cvblob.pc
> -- Up-to-date: /usr/local/include/cvblob.h
> -- Installing: /usr/local/lib/libcvblob.so
> -- Removed runtime path from "/usr/local/lib/libcvblob.so"
>
>
> wenn ich die library aber brauchen will:
> bekomme ich folgenden fehler:
>
> robert at salice:~/Downloads/cvblob/cvblob/contrib/python$ python test.py
> Traceback (most recent call last):
> File "test.py", line 4, in <module>
> import cvblob
> File "/home/robert/Downloads/cvblob/cvblob/contrib/python/cvblob/__init__.py", line 13, in <module>
> from _cvblob import *
Da ich nicht weiss, ob _cvblob eine Python-Datei oder eine Library ist, ist die Antwort: kommt drauf an. Moegliche Probleme sind:
- libcvblob wird von _cvblob.py mittels ctypes geladen, und da geht was schief
- _cvblob.so ist nicht gebaut worden
- eine der .so-files ist nicht binaer-kompatibel mit deinem Python
Mehr faellt mir nicht ein.
Diez
-------------- nächster Teil --------------
Ein Dateianhang mit Binärdaten wurde abgetrennt...
Dateiname : signature.asc
Dateityp : application/pgp-signature
Dateigröße : 496 bytes
Beschreibung: Message signed with OpenPGP using GPGMail
URL : <http://mail.python.org/pipermail/python-de/attachments/20140421/d7683308/attachment.sig>
Mehr Informationen über die Mailingliste python-de