[Python-de] problem beim laden einer shared library

robert rottermann robert at redcor.ch
Mo Apr 21 15:19:36 CEST 2014


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 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
>
>
> _______________________________________________
> python-de maillist  -  python-de at python.org
> https://mail.python.org/mailman/listinfo/python-de

-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://mail.python.org/pipermail/python-de/attachments/20140421/9a3328fc/attachment.html>


Mehr Informationen über die Mailingliste python-de