Package Details: opencv-java 4.0.1-1

Git Clone URL: https://aur.archlinux.org/opencv-java.git (read-only, click to copy)
Package Base: opencv-java
Description: Open Source Computer Vision Library - Java bindings
Upstream URL: http://opencv.org/
Licenses: BSD
Submitter: ItachiSan
Maintainer: None
Last Packager: ItachiSan
Votes: 3
Popularity: 0.000000
First Submitted: 2015-07-12 18:35 (UTC)
Last Updated: 2019-01-03 09:34 (UTC)

Dependencies (15)

Required by (0)

Sources (2)

Latest Comments

1 2 Next › Last »

Wlvarine commented on 2025-07-13 02:34 (UTC)

At beginning had trouble with build, with cmake-4.0.3 n then had problems with this

Building CXX object modules/CMakeFiles/ade.dir//3rdparty/ade/ade-0.1.1d/sources/ade/source/topological_sort.cpp.o cc1plus: warning: command-line option '-Wmissing-prototypes' is valid for C/ObjC but not for C++ cc1plus: warning: command-line option '-Wstrict-prototypes' is valid for C/ObjC but not for C++ In file included from /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/passes/topological_sort.hpp:17, from /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/source/topological_sort.cpp:7: /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:101:10: error: 'uintptr_t' in namespace 'std' does not name a type [-Wtemplate-body] 101 | std::uintptr_t m_srcGraph; | ^ /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:22:1: note: 'std::uintptr_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' 21 | #include "typed_metadata.hpp" +++ |+#include <cstdint> 22 | /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp: In member function 'const ade::Graph& ade::ConstTypedGraph<Types>::getCGraph() const': /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:106:53: error: 'm_srcGraph' was not declared in this scope [-Wtemplate-body] 106 | return reinterpret_cast<const ade::Graph*>(m_srcGraph); | ^~ /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp: In constructor 'ade::ConstTypedGraph<Types>::ConstTypedGraph(const ade::Graph&)': /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:122:9: error: class 'ade::ConstTypedGraph<Types>' does not have any field named 'm_srcGraph' [-Wtemplate-body] 122 | m_srcGraph(reinterpret_cast<std::uintptr_t>(&graph)) | ^~ /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:122:42: error: 'uintptr_t' in namespace 'std' does not name a type [-Wtemplate-body] 122 | m_srcGraph(reinterpret_cast<std::uintptr_t>(&graph)) | ^ /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:122:37: note: 'std::uintptr_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>' 122 | m_srcGraph(reinterpret_cast<std::uintptr_t>(&graph)) | ^ /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp: In constructor 'ade::ConstTypedGraph<Types>::ConstTypedGraph(const ade::ConstTypedGraph<OtherTypes ...>&)': /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:130:9: error: class 'ade::ConstTypedGraph<Types>' does not have any field named 'm_srcGraph' [-Wtemplate-body] 130 | m_srcGraph(other.m_srcGraph) | ^~ /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp: In instantiation of 'ade::Graph& ade::TypedGraph<Types>::getGraph() const [with Types = {ade::passes::TopologicalSortData}]': /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:238:16: required from 'ade::Graph::NodesListRange ade::TypedGraph<Types>::nodes() [with Types = {ade::passes::TopologicalSortData}; ade::Graph::NodesListRange = ade::util::Range::MapRange<ade::util::Range::IterRange<__gnu_cxx::__normal_iterator<std::shared_ptr\<ade::Node>*, std::vector\<std::shared_ptr\<ade::Node> > > >, ade::Graph::HandleMapper>]' 238 | return getGraph().nodes(); | ^~ /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/source/topological_sort.cpp:39:40: required from here 39 | for (auto node: context.graph.nodes()) | ~~~^~ /opt/opencv-java/src/build/3rdparty/ade/ade-0.1.1d/sources/ade/include/ade/typed_graph.hpp:167:53: error: 'const class ade::TypedGraph<ade::passes::TopologicalSortData>' has no member named 'm_srcGraph' 167 | return reinterpret_cast<ade::Graph*>(this->m_srcGraph); | ^~~~ make[2]: *** [modules/CMakeFiles/ade.dir/build.make:303: modules/CMakeFiles/ade.dir//3rdparty/ade/ade-0.1.1d/sources/ade/source/topological_sort.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:3894: modules/CMakeFiles/ade.dir/all] Error 2 make: *** [Makefile:166: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

Captain_Rage commented on 2019-01-07 20:35 (UTC)

Getting 'opencv: /usr/share/java/opencv4/opencv-401.jar exists in filesystem (owned by opencv-java)' after trying to update opencv (to opencv-4.0.1-3). Looks like said file is handled by opencv as of 4.0.1-3.

osmank3 commented on 2019-01-06 13:27 (UTC)

@ItachiSan Thank you for full build. I tried it myself but I couldn't succeed. With last update all modules included to jar file. Thank you...

ItachiSan commented on 2019-01-02 10:36 (UTC)

@osmank3 it is normal, as I limited the build to only build the Java module and its dependencies.

I will re-enable a full build, to generate the proper bindings with the standard OpenCV ArchLinux package, with an option to make it slim for quicker builds (e.g. test builds).

osmank3 commented on 2018-12-30 10:16 (UTC)

Is there any problem with dependencies? I built this package but some modules not included. I need videoio module but compiled jar file isn't contain that module. Compiled jar file contains only core, imgproc, osgi and utils modules.

Captain_Rage commented on 2018-12-08 08:53 (UTC)

Hi, @ItachiSan. Thank you for your reply and sincere apologies for not having replied until now. Yes, the symbolic link you wrote should be more than enough to get it running on Arch Linux. If possible, please include it in the next release. More information can be found here: https://sikulix-2014.readthedocs.io/en/latest/newslinux.html#newslinux (under "Getting the OpenCV support ready"). The only difference is that next version will probably have the version number 400 instead of the current 343, so name the symbolic link accordingly it should still work.

ItachiSan commented on 2018-10-24 20:57 (UTC)

Hey @Captain_Rage, is a similar link OK?

$ tar tvf opencv-java-3.4.3-2-x86_64.pkg.tar.xz
...
lrwxrwxrwx root/root         0 2018-10-24 22:32 usr/lib/libopencv_java.so -> /usr/share/opencv/java/libopencv_java343.so
...

If yes, I will push the updated package, else I will wait more info regarding it.

Captain_Rage commented on 2018-10-13 07:10 (UTC)

I'm using a program that requires a symbolic link to be created manually in order for it to find the opencv Java binding ('ln -s /usr/share/opencv/java/libopencv_java343.so /usr/lib/libopencv_java.so'). Maybe this symlink could be included in the AUR package by default..? I'm not sure if this breaks any convention or is bad in any way, not being an expert on Arch Linux, but it would be nice from a user point of view. Apologies in advance if this is a technically silly or stupid nitpicky request.

ItachiSan commented on 2016-05-19 06:59 (UTC)

Adding a test comment to see if my email is working properly now. Sorry to everybody.