From nobody Wed Jul 06 14:51:22 2022 X-Original-To: ports-bugs@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 2B7201CF9F99 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 4LdMtf6hstz4fN4 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 C2A761C911 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 266EpMis081194 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 266EpMuM081193 for ports-bugs@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: ports-bugs@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: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1657119083; 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=yxJwkXiw8rTEXCUbNxlGzjL3G/+25KMOP24iYg+AdacgECctLgof8qivuOFewAMGDAK5fx yoCyk2vRSOJCeVSDBGdc+L8t+r3KJ0Me6CSCwFq/LSKAniBBy7V1EW06rLN9MH5rU8FCT/ bpW+1QtFQaxxvy+j/hg6Tjhg0S94HdnmMBzMMonTrf34hBOcZ+VdEsJwfaJx88Lj3NbUFF 3Poe0vgdZTk6Y5HccU2iblAtB68DfxWOs4xFpR9ifQ3L1HfpKrW1Xr7AlcxBxhmVl4QTgu krs9mBZDqSpBk69WdYKPtqY92ldv1n1P0jmKWkjA++g5TUlLs1EOfiQ5z3QJUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1657119083; a=rsa-sha256; cv=none; b=WJmubTVndtBp29HgTT03eta5rpf2N3GnG6mvvePZ1sHMzM9xJZzfYvsGw9N6GvYYFJa0d8 0Pko9LSePdZmeSAnVlYkPrfMibeiNsoiQiQTHwYGwIId9V7LYtXd6RB8jkudj50Nm6pcJw hoBlBiP41S99wO4ngRct4f8q5QmEkFtj2UcZaQ1HoLLZe0xfD37phHsrjhCDC5V7YI5kUc 36fRojBT9MHFen+ik10LYgd+0T2caV+kiMHxykp8HHrs0UIig8Gdv72+POkXGRMhIc40Bh VsyN3Tj9M31qZp8xe9LMpYzi1KAfLO1irvjjjjO+33mR7Q8D+PKY6llWlbWplQ== 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.=