Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Can't find libopencv_core3.so.3.2 #42

Open
void-robotics opened this issue Jan 25, 2018 · 5 comments
Open

Can't find libopencv_core3.so.3.2 #42

void-robotics opened this issue Jan 25, 2018 · 5 comments

Comments

@void-robotics
Copy link

Hello,

I performed an update using the Ubuntu 16.04 package manager but now I get the following error when trying to start my o3d303 camera:

/home/bloom/catkin_ws/devel/lib/o3d3xx/o3d3xx_node: error while loading shared libraries: libopencv_core3.so.3.2: cannot open shared object file: No such file or directory

If I look into /opt/ros/kinetic/lib, i see libopencv_core3.so, libopencv_core3.so.3.3, and libopencv_core3.so.3.3.1, but not what I need.

How do I fix this?

@tpanzarella
Copy link

Rebuild libo3d3xx and o3d3xx-ros so they link to your newly updated libraries.

@void-robotics
Copy link
Author

thanks; in trying to re-make libo3d3xx, i get the following error

/home/bloom/catkin_ws/src/libo3d3xx/modules/image/test/o3d3xx-image-tests.cpp:242: Failure
Value of: imgs_eq(cimg, cimg2)
  Actual: true
Expected: false
/home/bloom/catkin_ws/src/libo3d3xx/modules/image/test/o3d3xx-image-tests.cpp:247: Failure
Value of: imgs_eq(cimg, cimg2)
  Actual: true
Expected: false
[  FAILED  ] ImageBuffers_Tests.ConfidenceImage (400 ms)
[ RUN      ] ImageBuffers_Tests.Bytes
[       OK ] ImageBuffers_Tests.Bytes (402 ms)
[ RUN      ] ImageBuffers_Tests.CopyConstructor
[       OK ] ImageBuffers_Tests.CopyConstructor (996 ms)
[ RUN      ] ImageBuffers_Tests.CopyAssignmentOperator
[       OK ] ImageBuffers_Tests.CopyAssignmentOperator (999 ms)
[ RUN      ] ImageBuffers_Tests.Extrinsics
[       OK ] ImageBuffers_Tests.Extrinsics (4394 ms)
[ RUN      ] ImageBuffers_Tests.UnitVectorAccess
[       OK ] ImageBuffers_Tests.UnitVectorAccess (391 ms)
[ RUN      ] ImageBuffers_Tests.ComputeCartesian
[       OK ] ImageBuffers_Tests.ComputeCartesian (358 ms)
[----------] 12 tests from ImageBuffers_Tests (9863 ms total)

[----------] Global test environment tear-down
[==========] 12 tests from 1 test case ran. (9864 ms total)
[  PASSED  ] 11 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] ImageBuffers_Tests.ConfidenceImage

 1 FAILED TEST
  YOU HAVE 2 DISABLED TESTS

I'm pretty sure my camera is connected (because running o3d3xx-dump works) and all dependencies are installed correctly. How do I fix this error?

@void-robotics
Copy link
Author

Temporarily, I re-made both packages by commenting out the tests (I also made sure to re-make the executable by deleting catkin_ws/build and catkin_ws/devel, which is where the node is being called), but I still get the same error.

@void-robotics
Copy link
Author

also, please see this thread for additional help: ros/ros-overlay#104 (comment)

@void-robotics
Copy link
Author

A local engineer from ROS helped me fix this issue. Basically, my camera was pulling the .so from /usr/lib; so I thought deleting the devel and build folders and redoing catkin_make would fix it, but what I forgot was that I manually copied files over to /usr/lib because the build tests were failing; so basically deleting those files and redoing catkin_make worked. Also, I didn't know that debian packages can be installed with dpkg, which also helped. The problem is that this repo's README says the make command installs it; but I believe we installed the debian package manually, although I could be getting confused.

Anyways it's working now; thanks.

Now, the appropriate libopencv file is being linked to my executable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant