opencv3.3.0 with TBB, libtbb-dev installed, but build fails
After my 5th attempt and unable to progress any further, I now call on you all.
I'm on Ubuntu 16.04, trying to build opencv3.3.0 with its corresponding contrib modules; libtbb-dev
is installed (apt-get install
confirms it's already the latest version), the .so libraries are here:
/usr/lib/x86_64-linux-gnu/libtbb.so
/usr/lib/x86_64-linux-gnu/libtbbmalloc_proxy.so
/usr/lib/x86_64-linux-gnu/libtbb.so.2
/usr/lib/x86_64-linux-gnu/libtbbmalloc_proxy.so.2
/usr/lib/x86_64-linux-gnu/libtbbmalloc.so.2
/usr/lib/x86_64-linux-gnu/libtbbmalloc.so
In my cmake I did specify -DWITH_TBB=ON
, but got the following error at the [83%] mark:
No rule to make target '/usr/lib/libtbb.so', needed by 'lib/libopencv_sfm.so.3.3.0'.
I then specified a path to the libtbb libraries as follows:
-DTBB_LIB_DIR=/usr/lib/x86_64-linux-gnu
But still to no avail. I've got the same error:
No rule to make target '/usr/lib/libtbb.so', needed by 'lib/libopencv_sfm.so.3.3.0'.
I have also check the interactive cmake (ccmake), and it does show:
TBB_ENV_LIB /usr/lib/x86_64-linux-gnu/libtbb.so
So why, when libtbb is present, when I do give its path and cmake confirms it sees it, the build is looking for a misplaced libtbb.so and fails?