FS#41452 - [opencv] missing apache-ant in makedepends
Attached to Project:
Arch Linux
Opened by edac val (edacval) - Monday, 04 August 2014, 06:11 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 06 January 2019, 13:07 GMT
Opened by edac val (edacval) - Monday, 04 August 2014, 06:11 GMT
Last edited by Antonio Rojas (arojas) - Sunday, 06 January 2019, 13:07 GMT
|
Details
Description:
if apache-ant is not installed, opencv will be built without java support. Additional info: * package version(s) * config and/or log files etc. opencv 2.4.9 Steps to reproduce: |
This task depends upon
Closed by Antonio Rojas (arojas)
Sunday, 06 January 2019, 13:07 GMT
Reason for closing: Implemented
Additional comments about closing: opencv 4.0.1-3
Sunday, 06 January 2019, 13:07 GMT
Reason for closing: Implemented
Additional comments about closing: opencv 4.0.1-3
CMake Error at /usr/share/opencv/OpenCVModules.cmake:120 (message):
The imported target "opencv_java" references the file
"/usr/share/OpenCV/java/libopencv_java249.so"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/usr/share/opencv/OpenCVModules.cmake"
but not all the files it references.
Call Stack (most recent call first):
/usr/share/opencv/OpenCVConfig.cmake:49 (include)
I think you must change the file fsh.patch and add the java directory name.
Instead of this:
/usr/share/OpenCV/java/libopencv_java249.so
It should be this (mind the casing):
/usr/share/opencv/java/libopencv_java249.so
I chose to abandon the patch the last time I updated the package because it was looking to become a huge maintenance burden due to the sheer size of changes that go into opencv on every other release. However, the only case then was frei0r.
From a quick glance it looks like upstream finally realized the problem and _almost_ solved their mixed-case mess (except corner cases they forgot about). Please confirm with me that /usr/share/OpenCV no longer exists since the 2.4.9 release.
I take it that those of you reporting this are not concerned with the java support, and this update has simply broken your traditional cv setup. Confirm that and I will revert the update. In the meantime, you can install -1 from your local cache if available.
[1] http://code.opencv.org/issues/2512
My package does just save Java files, so it does not conflict with the official package.
For the official sources, the edits that should be done for building the Java library are:
- Setting JAVA_HOME (see in prepare())
- Adding Java-related things in makedepends() ('apache-ant' and 'java-environment')