Skip to content

ts module not installed #8408

@adinriv

Description

@adinriv
System information (version)
  • OpenCV => 3.2.0-rc (from source)
  • Operating System / Platform => Ubuntu 16.10
  • Compiler => gcc 6.2.0
Detailed description

I'm trying to use the ts module in projects to use the same test functionalities as OpenCV. When I build OpenCV with either

  -D BUILD_TESTS=ON 
  -D BUILD_PERF_TESTS=ON 
  -D BUILD_opencv_ts=ON 

I see that the ts module is listed among the modules to built. However, it is never installed (not sure if that is intended).

The library is created (although statically, regardless of BUILD_SHARED_LIBS=ON), but not installed, and not findable by cmake, for example.

Steps to reproduce
cmake \
  -D CMAKE_BUILD_TYPE=RELEASE \
  -D ENABLE_PRECOMPILED_HEADERS=OFF \
  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
  -D BUILD_NEW_PYTHON_SUPPORT=ON \
  -D WITH_TBB=ON \
  -D WITH_QT=ON \
  -D WITH_OPENGL=ON \
  -D BUILD_TIFF=ON \
  -D BUILD_SHARED_LIBS=ON \
  -D BUILD_EXAMPLES=ON \
  -D BUILD_opencv_ts=ON \
  ..

make -j $(nproc)
sudo make install

Then try to use it, for example with cmake

find_package ( OpenCV REQUIRED ts )

fails to find the ts library.

Related questions

Already ask for help before posting, in here. However, we couldn't find a problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions