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 2BF041CF9F9A 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 4LdMtf63mrz4fHd 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 B15681C893 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 266EpMKJ081190 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 266EpMPB081189 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 From: bugzilla-noreply@freebsd.org To: desktop@FreeBSD.org Subject: [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-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None 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: marietto2008@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: desktop@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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; bh=lYVYcJZ9VF/vxLWGregpkitkfAvs/M8Ikb9/QyPt7tY=; b=p0LEd+SV+YNXea1XPGjCls/eZtypVYaTpYLswPnFMuU/sbhQtA9/gE8SYZLhTFfjQ6XDfK 4Ajdb1AS5TIw9OS7yPWoLsbyb3B+emyoNjfUjTxb1M8YHiy+wC0fDt2tiDh4jv2gDtjAu2 ecOsFhRI/Yo50fefwlJehRgfar4xBEagy6c8h0BaQ6jvrdQjDmGqTLb6/P6fY1KsevTWpz wzdGWuYTys2jIlGDm+Vq9usxogjXlIc25X8ujJdKuZoZh6Q6RE1CMN5swlAyC6lF0kPErR FRNOKHgH0g5JfQap0syLOXbKjA1sUgHv5v041kddw4eH//Nf3f5g+uv1vyqdMA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657119082; a=rsa-sha256; cv=none; b=ewF9d1llFqlXYexInxyEqKn44lkpdfLEc//gEYjG9nLre949zBGCYYm5CMb+rvyDv8kmFB WjDrGgwMSfvtax4OBFjV3r3r+LsRMGFNnZqjPmEZPiibBs+KSycNIFa07E7MsOLjwGR5tu VROynB2AiRRqZCbsLEqB7e96gq1c8vURgDbVcRmyv1GSaBqjUZVvU8jDK8KCSZZF+XuKNX I8dRotDv6HnH9Ov4moSq57g8rA2xV8Vo0sdGAHIz8U4Frzli9TzT0CJ5S6UZPB5c2zMWcR 4exgcmxX5cMVHBrtZo36jjmkOaBHbFbvvG6wv7c+MmU9eVYUWr1UFcI6lms1Vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265063 Bug ID: 265063 Summary: graphics/opencv : Can't load library: /root/.Sikulix/SikulixLibs/libopencv_java430.so Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: desktop@FreeBSD.org Reporter: marietto2008@gmail.com Flags: maintainer-feedback?(desktop@FreeBSD.org) Assignee: desktop@FreeBSD.org 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-= OpenCV-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_java455.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. --=20 You are receiving this mail because: You are the assignee for the bug.=