problem beim laden einer shared library
ich arbeite auf ubuntu 14.04 und habe eine eine library gebaut mit cmake . make make install das resultat ist: root@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@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 * hat mir da jemand einen typ, wo ich schrauben muss danke robert
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@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@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
Danke für die Antwort On 21.04.2014 14:36, Diez B. Roggisch wrote:
Hallo,
ich arbeite auf ubuntu 14.04
und habe eine eine library gebaut mit cmake . Welche genau waere auch hilfreich. Zum sourcecode-schmoekern. ich habe angefangen einen "brain dum"p für mich zu machen
http://projects.redcor.ch/diverses/installing-python-cvblob hoffentlich mach das die Dinge klarer danke robert
make make install
das resultat ist: root@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@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
_______________________________________________ python-de maillist - python-de@python.org https://mail.python.org/mailman/listinfo/python-de
On Mon, 21 Apr 2014 15:19:36 +0200
robert rottermann
und habe eine eine library gebaut mit cmake . Welche genau waere auch hilfreich. Zum sourcecode-schmoekern. ich habe angefangen einen "brain dum"p für mich zu machen
http://projects.redcor.ch/diverses/installing-python-cvblob
hoffentlich mach das die Dinge klarer
Die Library ist halt eine C Library und hat offenbar kein Python-Binding. Zumindest konnte ich auf https://code.google.com/p/cvblob/ keines finden. grüße, Marek
On Tue, 22 Apr 2014 02:16:45 +0200
Marek Kubica
On Mon, 21 Apr 2014 15:19:36 +0200 robert rottermann
wrote: und habe eine eine library gebaut mit cmake . Welche genau waere auch hilfreich. Zum sourcecode-schmoekern. ich habe angefangen einen "brain dum"p für mich zu machen
http://projects.redcor.ch/diverses/installing-python-cvblob
hoffentlich mach das die Dinge klarer
Die Library ist halt eine C Library und hat offenbar kein Python-Binding. Zumindest konnte ich auf https://code.google.com/p/cvblob/ keines finden.
Nachtrag: da braucht man dann wohl eher sowas: https://github.com/oostendo/cvblob-python grüße, Marek
Hi Robert, On 2014-04-21 13:43, robert rottermann wrote:
ich arbeite auf ubuntu 14.04
und habe eine eine library gebaut mit cmake . make make install
das resultat ist: root@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@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 *
bei diesem Import-Statement nehme ich an, dass es eine Datei `_cvblob.so` oder `_cvblog.py` gibt - oder besser gesagt geben soll. Mir scheint, du hast eine C-Bibliothek installiert, aber kein passendes Python-Binding dafür. Viele Grüße Stefan
participants (4)
-
Diez B. Roggisch
-
Marek Kubica
-
robert rottermann
-
Stefan Schwarzer