Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 591852 - kde-apps/libkface-16.04.3: CMake Error at /usr/share/opencv/OpenCVModules.cmake:114 (message): The imported target "opencv_core" references the file "/usr/lib64/libopencv_core.so.2.4.9" but this file does not exist.
Summary: kde-apps/libkface-16.04.3: CMake Error at /usr/share/opencv/OpenCVModules.cma...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-22 10:53 UTC by Francisco Ares
Modified: 2016-09-16 09:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge_info.txt,18.52 KB, text/plain)
2016-08-22 21:19 UTC, Francisco Ares
Details
equery f opencv (opencv_files.txt,21.82 KB, text/plain)
2016-08-22 21:20 UTC, Francisco Ares
Details
ls -l /usr/lib64/libopencv_core* (libopencv_core_list.txt,281 bytes, text/plain)
2016-08-22 21:21 UTC, Francisco Ares
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco Ares 2016-08-22 10:53:33 UTC
Hi,

This is the output of an emerge that fails:


 ~ # /usr/bin/emerge -vD kde-apps/libkface 

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] kde-apps/libkface-16.04.3:5::gentoo  USE="-debug" 8.777 KiB

Total: 1 package (1 new), Size of downloads: 8.777 KiB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) kde-apps/libkface-16.04.3::gentoo
>>> Downloading 'http://gentoo.c3sl.ufpr.br/distfiles/libkface-16.04.3.tar.xz'
--2016-08-22 07:44:20--  http://gentoo.c3sl.ufpr.br/distfiles/libkface-16.04.3.tar.xz
Resolving desenv (desenv)... 10.2.1.1
Connecting to desenv (desenv)|10.2.1.1|:8118... connected.
Proxy request sent, awaiting response... 200 OK
Length: 8987296 (8,6M) [application/x-xz]
Saving to: ‘/_distfiles/libkface-16.04.3.tar.xz’

/_distfiles/libkfac 100%[===================>]   8,57M   534KB/s    in 18s     

2016-08-22 07:44:39 (500 KB/s) - ‘/_distfiles/libkface-16.04.3.tar.xz’ saved [8987296/8987296]

 * libkface-16.04.3.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                                                                                                                                                                                                                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking libkface-16.04.3.tar.xz to /var/tmp/portage/kde-apps/libkface-16.04.3/work
>>> Source unpacked in /var/tmp/portage/kde-apps/libkface-16.04.3/work
>>> Preparing source in /var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3 ...
 * Applying libkface-15.12.2-opencv3.1.patch ...                                                                                                                                                                                                                                                                               [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3 ...
>>> Working in BUILD_DIR: "/var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3_build"
cmake -C /var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DENABLE_OPENCV3=yes -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3_build/gentoo_toolchain.cmake  /var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3
loading initial cache file /var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.9.3
-- The CXX compiler identification is GNU 4.9.3
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- ----------------------------------------------------------------------------------
-- Starting CMake configuration for: libkface
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- First try at finding OpenCV...
CMake Error at /usr/share/opencv/OpenCVModules.cmake:114 (message):
  The imported target "opencv_core" references the file

     "/usr/lib64/libopencv_core.so.2.4.9"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/share/opencv/OpenCVModules.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/share/opencv/OpenCVConfig.cmake:49 (include)
  cmake/modules/MacroOpenCV.cmake:27 (find_package)
  CMakeLists.txt:85 (DETECT_OPENCV)


-- Configuring incomplete, errors occurred!
See also "/var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3_build/CMakeFiles/CMakeOutput.log".
 * ERROR: kde-apps/libkface-16.04.3::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_configure
 *   environment, line 3877:  Called kde5_src_configure
 *   environment, line 2868:  Called cmake-utils_src_configure
 *   environment, line 1126:  Called _cmake_execute_optionally 'src_configure'
 *   environment, line  503:  Called enable_cmake-utils_src_configure
 *   environment, line 1553:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=kde-apps/libkface-16.04.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-apps/libkface-16.04.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/kde-apps/libkface-16.04.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-apps/libkface-16.04.3/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3_build'
 * S: '/var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3'

>>> Failed to emerge kde-apps/libkface-16.04.3, Log file:

>>>  '/var/tmp/portage/kde-apps/libkface-16.04.3/temp/build.log'

 * Messages for package kde-apps/libkface-16.04.3:

 * ERROR: kde-apps/libkface-16.04.3::gentoo failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_configure
 *   environment, line 3877:  Called kde5_src_configure
 *   environment, line 2868:  Called cmake-utils_src_configure
 *   environment, line 1126:  Called _cmake_execute_optionally 'src_configure'
 *   environment, line  503:  Called enable_cmake-utils_src_configure
 *   environment, line 1553:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=kde-apps/libkface-16.04.3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=kde-apps/libkface-16.04.3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/kde-apps/libkface-16.04.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/kde-apps/libkface-16.04.3/temp/environment'.
 * Working directory: '/var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3_build'
 * S: '/var/tmp/portage/kde-apps/libkface-16.04.3/work/libkface-16.04.3'




Up to date and stable OpenCV library is version 3.1.0:


 ~ # equery l opencv
 * Searching for opencv ...
[IP-] [  ] media-libs/opencv-3.1.0-r4:0/3.1


Thanks!
Francisco
Comment 1 Andreas Sturmlechner gentoo-dev 2016-08-22 17:02:29 UTC
Please show

$ emerge --info
$ equery f opencv
$ ls -l /usr/lib64/libopencv_core*
Comment 2 Francisco Ares 2016-08-22 21:19:54 UTC
Created attachment 443886 [details]
emerge --info
Comment 3 Francisco Ares 2016-08-22 21:20:29 UTC
Created attachment 443888 [details]
equery f opencv
Comment 4 Francisco Ares 2016-08-22 21:21:33 UTC
Created attachment 443890 [details]
ls -l /usr/lib64/libopencv_core*
Comment 5 Michael Palimaka (kensington) gentoo-dev 2016-08-24 18:56:57 UTC
> CMake Error at /usr/share/opencv/OpenCVModules.cmake:114 (message):

Where does this file come from? media-libs/opencv installs /usr/share/opencv/OpenCVModules.cmake (note the caps).
Comment 6 Michael Palimaka (kensington) gentoo-dev 2016-08-24 18:57:50 UTC
(In reply to Michael Palimaka (kensington) from comment #5)
> > CMake Error at /usr/share/opencv/OpenCVModules.cmake:114 (message):
> 
> Where does this file come from? media-libs/opencv installs
> /usr/share/opencv/OpenCVModules.cmake (note the caps).

Sorry, that should say:

Where does this file come from? media-libs/opencv installs /usr/share/OpenCV/OpenCVModules.cmake (note the caps).