Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#37754 - [opencv] CMake error: opencv_ts not found

Attached to Project: Arch Linux
Opened by Hanno J. (hanno) - Wednesday, 13 November 2013, 09:29 GMT
Last edited by Ray Rashif (schivmeister) - Friday, 15 November 2013, 08:46 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ray Rashif (schivmeister)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description:
When using cmake to include OpenCV in a project, the cmake command "find_package( OpenCV )" fails with:
"CMake Error at /usr/share/opencv/OpenCVModules.cmake:117 (message):
The imported target "opencv_ts" references the file
"/usr/lib/libopencv_ts.a"
but this file does not exist. (...)"

Additional info:
* package version(s): opencv 2.4.7-1

Steps to reproduce:
Create a cmake file CMakeLists.txt with content:

# CMakeLists.txt content BEGIN
project( test )
cmake_minimum_required(VERSION 2.8)
find_package(OpenCV)
# CMakeLists.txt content END

and perform this command in the folder of the created CMakeLists.txt:
mkdir build && cd build && cmake ..
This task depends upon

Closed by  Ray Rashif (schivmeister)
Friday, 15 November 2013, 08:46 GMT
Reason for closing:  Fixed
Comment by Jan Rüegg (rggjan) - Wednesday, 13 November 2013, 16:20 GMT
Same problem here, I can confirm this...

Probably has to do with static libraries being removed from all archlinux packages...
Comment by Matt (v01d) - Wednesday, 13 November 2013, 19:50 GMT
Same here
Comment by Ray Rashif (schivmeister) - Wednesday, 13 November 2013, 20:40 GMT
  • Field changed: Architecture (x86_64 → All)
Thanks for the report. It is actually the absence of libopencv_ts.so that triggers this -- it was not built this time. May even be a packaging bug since I had to rewrite existing patches on top of their new changes for the minor revision. Will look into it, and will push revised packages to [testing].

edit: On further inspection, the newly introduced OpenCVModules.cmake requires this static file. Try building with staticlibs set until I get to it.
Comment by Ray Rashif (schivmeister) - Thursday, 14 November 2013, 21:32 GMT
Pushed to [testing] along with some additional minor changes, should be fine now. Please test, so I can move it to [extra] without additional delay.
Comment by zozi56 (zozi56) - Thursday, 14 November 2013, 21:49 GMT
I tested it, the problem seems to have been solved.
Comment by Hanno J. (hanno) - Friday, 15 November 2013, 08:35 GMT
I tested it as well, everything works again!

Loading...