From nobody Fri Nov 19 07:08:08 2021 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 227C2189A46C for ; Fri, 19 Nov 2021 07:08:09 +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 4HwSRs0CZsz3t1X for ; Fri, 19 Nov 2021 07:08:09 +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 D854623F2E for ; Fri, 19 Nov 2021 07:08:08 +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 1AJ788P4011167 for ; Fri, 19 Nov 2021 07:08:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1AJ788Oe011166 for ports-bugs@FreeBSD.org; Fri, 19 Nov 2021 07:08:08 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 259930] graphics/opencv: cmake fails, if graphics/tesseract installed Date: Fri, 19 Nov 2021 07:08:08 +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: rhurlin@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc 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 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259930 Bug ID: 259930 Summary: graphics/opencv: cmake fails, if graphics/tesseract installed Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: rhurlin@FreeBSD.org CC: pkubaj@FreeBSD.org, tcberner@freebsd.org CC: pkubaj@FreeBSD.org, tcberner@freebsd.org I have encountered a problem on my system that seems to be related to graphics/opencv and graphics/tesseract. If the system already has graphics/tesseract installed, configure does not = work for graphics/opencv:=20 ----------------------------------------- CMake Error at /usr/local/cmake/TesseractConfig.cmake:24 (find_package): By not providing "FindLeptonica.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "Leptonica", but CMake did not find one. Could not find a package configuration file provided by "Leptonica" with any of the following names: LeptonicaConfig.cmake leptonica-config.cmake Add the installation prefix of "Leptonica" to CMAKE_PREFIX_PATH or set "Leptonica_DIR" to a directory containing one of the above files. If "Leptonica" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): contrib/modules/text/cmake/init.cmake:8 (find_package) cmake/OpenCVModule.cmake:298 (include) cmake/OpenCVModule.cmake:364 (_add_modules_1) modules/CMakeLists.txt:7 (ocv_glob_modules) -- Configuring incomplete, errors occurred! See also "/usr/ports/graphics/opencv/work/.build/CMakeFiles/CMakeOutput.log= ". See also "/usr/ports/graphics/opencv/work/.build/CMakeFiles/CMakeError.log". *** Error code 1 ----------------------------------------- The mentioned log file CMakeError.log contains: ----------------------------------------- Determining if the include file sys/videoio.h exists failed with the follow= ing output: Change Dir: /usr/ports/graphics/opencv/work/.build/CMakeFiles/CMakeTmp Run Build Command(s):/usr/local/bin/ninja cmTC_73ae6 && [1/2] Building C ob= ject CMakeFiles/cmTC_73ae6.dir/CheckIncludeFile.c.o FAILED: CMakeFiles/cmTC_73ae6.dir/CheckIncludeFile.c.o=20 /usr/bin/cc -O2 -pipe -fstack-protector-strong -isystem /usr/local/inclu= de -fno-strict-aliasing -fsigned-char -W -Wall -Werror=3Dreturn-type -Werror=3Dnon-virtual-dtor -Werror=3Daddress -Werror=3Dsequence-point -Wfor= mat -Werror=3Dformat-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-pro= mo -Wuninitialized -Winconsistent-missing-override -Wno-delete-non-virtual-dtor -Wno-unnamed-type-template-args -Wno-comment -Wno-deprecated-enum-enum-conversion -Wno-deprecated-anon-enum-enum-convers= ion -fdiagnostics-show-option -Wno-long-long -pthread -Qunused-arguments -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=3Dhid= den -fvisibility-inlines-hidden -O2 -pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing -DNDEBUG -fPIE -MD -MT CMakeFiles/cmTC_73ae6.dir/CheckIncludeFile.c.o -MF CMakeFiles/cmTC_73ae6.dir/CheckIncludeFile.c.o.d -o CMakeFiles/cmTC_73ae6.dir/CheckIncludeFile.c.o -c /usr/ports/graphics/opencv/work/.build/CMakeFiles/CMakeTmp/CheckIncludeFile= .c /usr/ports/graphics/opencv/work/.build/CMakeFiles/CMakeTmp/CheckIncludeFile= .c:1:10: fatal error: 'sys/videoio.h' file not found #include ^~~~~~~~~~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. ----------------------------------------- OpenCV seems to use an internal tesseract if no external one is found on the system. Once tesseract is present, the file FindLeptonica.cmake is also nee= ded, but it is not installed by graphics/leptonica, graphics/tesseract or graphics/opencv. This all seems to have become a problem only since graphics/tesseract switc= hed from autoconf to cmake [1] [1] https://cgit.freebsd.org/ports/commit/?id=3D3f1cf94980fdec66bdb115c46c94635= ec3b54572 You can easily reproduce the erroneous behavior in Poudriere by temporarily defining the following dependency in the graphics/opencv Makefile and then building it: LIB_DEPENDS+=3Dlibtesseract.so:graphics/tesseract --=20 You are receiving this mail because: You are the assignee for the bug.=