From nobody Wed Jul 06 14:51:22 2022 X-Original-To: desktop@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0C2281CF9BF5 for ; Wed, 6 Jul 2022 14:51:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LdMtf501dz4fFJ for ; Wed, 6 Jul 2022 14:51:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8C27B1C910 for ; Wed, 6 Jul 2022 14:51:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 266EpMu9081186 for ; Wed, 6 Jul 2022 14:51:22 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 266EpMPC081185 for desktop@FreeBSD.org; Wed, 6 Jul 2022 14:51:22 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: desktop@FreeBSD.org Subject: maintainer-feedback requested: [Bug 265063] graphics/opencv : Can't load library: /root/.Sikulix/SikulixLibs/libopencv_java430.so Date: Wed, 06 Jul 2022 14:51:22 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Using and improving FreeBSD on the desktop List-Archive: https://lists.freebsd.org/archives/freebsd-desktop List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-desktop@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657119082; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J1UWn9jnQU0tJ8Gr5ADoDn3Rr/mx94bx0s87QwEg4O4=; b=OanXA3/qIdZT3EUSSzb/eHkQxgpRyGw1i4DPCTtZ56QmA5q8YzN/ywlWwee2+e9cnayMlT grEOmEt0Sm9fmvBC/0ThHPDtnqrFnHREE6/EU9ga+A+UZ7YsTGDSLfpLC7ROmmzzjk5GBd 2BJV3QomnUMAffMG4Mk5n3dLFkNKpl8KXwDDw8shRxGCw24Y3VwK+eIk+N7KRMB360LAhj VLF1ow8ncNOTwaV22kDUHadSCA+HeSS+pnPqVbBAnkTNCKB9GiTMDD7i6uYVhiuh/NqJ9U 9bjKzGB6Dw+/SMFwKdBdyWEBDFwmlPaeo+CpOfg6bglBfdUwmq8cJ5PDuQ2tBw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657119082; a=rsa-sha256; cv=none; b=jzqGsJ8pErM//cVBY8Bi6Y+glG1mnZq3zVfhik3mKf3YxF82/RuMdfBIM+BchtfKJJwaFZ pD8ccRzD2/B3bYYNWSSLrdNhGTeJnfwiJqU8GTnkKZeBERGHxun9WmcFJi1WA/NBnYxgaI fKccLU1m4CcTGlcOpBqcV32PT7/dRQixHlB+Zw21HdwP8cHaegR3ePcMZTkpPc5DBdBgT/ EckMicRHXL90qoH4Jio3dFitIYJdJ4NyApmT1mrOcLJlRybGhik8+SVyAEIH0R6Ligb2NP pNKXZJa61kotosSnsbOFRJTWH6NaGDcdnZHplq74bGmQ1Wt61/H3PUXG1dyEIA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N Bugzilla Automation has asked freebsd-desktop (Team) for maintainer-feedback: Bug 265063: graphics/opencv : Can't load library: /root/.Sikulix/SikulixLibs/libopencv_java430.so https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265063 --- Description --- Hello. I'm playing a little bit with sikulix. I'm trying to learn how it works bec= ause I want to automatize the daily tasks of my FreeBSD 13.1-RELEASE. So,as soon= as I have implemented my first "click on the image to make a screenshot" function,I've got the error message that you see below and I don't know how= to fix it : [error] RunTime:loadLib: libopencv_java430.so (failed) probably dependent l= ibs missing: Can't load library: /root/.Sikulix/SikulixLibs/libopencv_java430.so [error] Save your work, correct the problem and restart the IDE! [error] see: https://github.com/RaiMan/SikuliX1/wiki/macOS-Linux:-Support-Libraries-for-= Open CV-4 TERMINATING: problem with native library: libopencv_java430.so [error] script [ click_image ] stopped with error in line 1 [error] java.lang.ExceptionInInitializerError ( java.lang.ExceptionInInitializerError ) [error] --- Traceback --- error source first line: module ( function ) statement 1: main ( ) click("1656348124939.png") [error] --- Traceback --- end ------------- To fix it I tried something like this : mario@marietto:/usr/ports/graphics/opencv # make (enabled JAVA) No errors. mario@marietto:/usr/ports/graphics/opencv # make install =3D=3D=3D> Installing for opencv-4.5.5_7 =3D=3D=3D> Checking if opencv is= already installed =3D=3D=3D> Registering installation for opencv-4.5.5_7=20 pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /config-3.9.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /config.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /gapi/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /load_config_py2.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /load_config_py3.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /mat_wrapper/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /misc/__init__.py:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /misc/version.py:No such file or directory=20 pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /python-3.9/cv2.cpython-39.so:No such file or directory pkg-static: Unable to access file /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/site-packages= /cv2 /utils/__init__.py:No such file or directory ***=20 Error code 1 Stop. make[1]: stopped in /usr/ports/graphics/opencv *** Error code 1 Stop. make: stopped in /usr/ports/graphics/opencv the folder /usr/ports/graphics/opencv/work/stage/usr/local/lib/python3.9/ is missing. I guess java binding might be missing in the port. And anyway the compiled = file is libopencv_java455.so,not libopencv_java430.so. Anyway the library libopencv_java455.so has been produced despite the errors : mario@marietto:/home/marietto # find / -name libopencv_java455.so /usr/ports/graphics/opencv/work/.build/lib/libopencv_java455.so=20 /usr/ports/graphics/opencv/work/stage/usr/local/share/java/opencv4/libopenc= v_ja va455.so I tried to see if it was accepted by sikulix,doing : 1) ln -s libopencv_java455.so /root/.Sikulix/SikulixLibs or : 2) mv libopencv_java455.so libopencv_java430.so ; ln -s libopencv_java430.so /root/.Sikulix/SikulixLibs but the error is still there. At this point I've installed FreeBSD 13.0-RELEASE and then I did : pkg install openjdk17=20 mount -t fdescfs fdesc /dev/fd=20 mount -t procfs proc /proc=20 mario@marietto:/usr/ports/graphics/opencv # make I wanted to enable JAVA at this point,but I didn't see any JAVA option to enable as you can see below... https://ibb.co/dJPD836 Instead,if I do the same thing with FreeBSD 13.1,I can see the java option : https://ibb.co/HCkZc7Q Unfortunately with 13.1 it produces a library that does not work and with 1= 3.0 I can't enable java so the file that I need can't be produced. And anyway,e= ven if it was produced,I need to have libopencv_java430.so and not libopencv_java341.so. So,what can I do to enjoy myself a little bit with si= kuli and opencv ? It looks like the application is expecting version 430 and I'm giving it version 455 and they may be incompatible. What about building sikulix from source? maybe then it'll try to use the correct version. So. Can someone provide some tutorials where I can learn and try to build Sikulix from sour= ce ? Or if you have some different suggestion,I will appreciate it. Very thanks = to everyone.