error when i use of cvblob-python

70 views
Skip to first unread message

biogene

unread,
May 9, 2011, 4:32:02 AM5/9/11
to cvBlob
hello , i don't know if it'st he right place to ask this ... but ...
i installed python (i hope the latest ) open cv with this option
cmake -D CMAKE_BUILD_TYPE=RELEASE -D BUILD_PYTHON_SUPPORT=ON -D
WITH_TBB=ON -D BUILD_SWIG_PYTHON_SUPPORT=ON -D CMAKE_INSTALL_PREFIX=/
usr ..
and apt-get
sudo apt-get install build-essential swig gfortran cmake gcc pkg-
config libjpeg62-dev libtiff4-dev libpng12-dev libopenexr-dev
libavformat-dev libswscale-dev liblapack-dev python-dev python-
setuptools boost-build libboost-all-dev

then i compile cvblob .. the exe "test" work fine
then i compile cvblob-python with changing the build.sh to python
2.7 ... i thing it's good because the shell give me no error (but no
good result too ... anything is written)
and when i try to import cvblob this what i get
In [1]: import cvblob
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)

/home/biogene/Téléchargements/cvblob/python/<ipython console> in
<module>()

/home/biogene/Téléchargements/cvblob/python/cvblob/__init__.py in
<module>()
11
12 import cv;
---> 13 from _cvblob import *;
14
15 #chaincode constants


ImportError: /usr/local/lib/libcvblob.so: undefined symbol:
cvSaveImage

In [2]: import cvblob



for info my configuration is
uname -a
Linux biogene 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC
2011 x86_64 x86_64 x86_64 GNU/Linux
python -V
Python 2.7.1+


thank a lot

Nathan Oostendorp

unread,
May 9, 2011, 8:46:35 AM5/9/11
to cvb...@googlegroups.com
Hi biogene,

First, my apologies on the build.sh for python-cvblob -- I haven't spent the time to master setup.py yet.  

That error makes me think your cvblob install isn't getting properly linked with OpenCV somehow -- and unfortunately if your cvblob tests are running properly, it might be something python-context specific.

A couple things I would try:

Use the python-swig cvblob interface instead of cvblob-python -- this is in the 10.4_pythonswig branch of cvblob's SVN.


I also have a set of installation scripts which build cvblob-python for on ubuntu Maverick at:


You might want to compare these to your install notes (they're still using python2.6 so you'll still need to make that change). 

hope this helps,

Nate

biogene

unread,
May 9, 2011, 10:01:34 AM5/9/11
to cvBlob
thank a lot nathan.... what a speedy answer...
i install the svn version (the 10.4_pythonswig) compile and try ))

the "core librairi" seem to work even if the test.py doesn't work as
well as the other precompil ( i have a little window)...

i will try the other way (set of installation scripts) and
compare ....

"keep all good like you are ...." (bad translation)

thank

juju


On 9 mai, 14:46, Nathan Oostendorp <n...@oostendorp.net> wrote:
> Hi biogene,
>
> First, my apologies on the build.sh for python-cvblob -- I haven't spent the
> time to master setup.py yet.
>
> That error makes me think your cvblob install isn't getting properly linked
> with OpenCV somehow -- and unfortunately if your cvblob tests are running
> properly, it might be something python-context specific.
>
> A couple things I would try:
>
> Use the python-swig cvblob interface instead of cvblob-python -- this is in
> the 10.4_pythonswig branch of cvblob's SVN.
>
> http://code.google.com/p/cvblob/source/browse/#svn%2Fbranches%2F0.10....
Reply all
Reply to author
Forward
0 new messages