Closed YuehChuan closed 7 years ago
This is on master branch
I suspect that you are building with an old ViSP version (< 2.10.0) or that you have multiple ViSP installions that bring a mess.
Could you check the ViSP versions you have on your computer:
$ sudo updatedb
$ locate vpConfig.h
and the one that is used by catkin:
$ cd catkin_wk/build
$ grep VISP_DIR *
Oh thanks for your reply.
yes, originally I manually installed visp-snapshot-2017-01-07 .
$ locate vpConfig.h
Output:
/home/rapyuta/soft/visp-build/include/visp/vpConfig.h
/home/rapyuta/soft/visp-build/include/visp3/core/vpConfig.h
/home/rapyuta/soft/visp-snapshot-2017-01-07/cmake/templates/vpConfig.h.in
/usr/local/include/visp
/usr/local/include/visp3/core/vpConfig.h
I guess /usr/local/include/visp
/usr/local/include/visp3/core/vpConfig.h
is the same as
/home/rapyuta/soft/visp-build/include/visp/vpConfig.h
/home/rapyuta/soft/visp-build/include/visp3/core/vpConfig.h
? just when we did sudo make install
So the issue is version conflict?
$rapyuta_ws/build$ grep VISP_DIR *
Output:
CMakeCache.txt:VISP_DIR:PATH=/usr/local/lib/cmake/visp
grep: CMakeFiles: Is a directory
grep: apriltags: Is a directory
grep: catkin: Is a directory
grep: catkin_generated: Is a directory
grep: epnp: Is a directory
grep: gtest: Is a directory
grep: test_results: Is a directory
grep: vision_visp: Is a directory
Thanks for your time.
The Visp Version is 3.0.1
Just to be sure, do you install libzbar-dev ?
$ sudo apt-get install libzbar-dev
If it was not installed, you have to enter in ViSP build tree, configure with cmake again and do a fresh make install
WOW! You are genius, LOVE YOU!
Yes, miss $ sudo apt-get install libzbar-dev
and fresh install again.
I should read this carefully. http://visp-doc.inria.fr/doxygen/visp-daily/tutorial-install-ubuntu.html
Anyway thanks for your patient and time. YOLO!
Fixed with
sudo apt-get install libzbar-dev libdmtx-dev
and rebuild, reinstall visp, then use catkin_make to make the ros workspace
Environment: x86_64 ubuntu16.04 ROS kinectic I'll try to fix it.
edit 2017.01.11 [solved] Yes, miss
$ sudo apt-get install libzbar-dev
and then fresh install to clean the cache. I should read this carefully. http://visp-doc.inria.fr/doxygen/visp-daily/tutorial-install-ubuntu.html Anyway thanks for @fspindle patient and time. YOLO!