Could not find a package configuration file provided by “Qt5Core”

Asked by Begueradj on 2015-04-08

I tried to build Opencv-2.4.10 from sources using CMake in order to install it. So I run this command:

    begueradj@begueradj-hacker:~/opencv/opencv-2.4.10/build$ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON ..

I got this error:

    -- The CXX compiler identification is GNU 4.8.2
    -- The C compiler identification is GNU 4.8.2
    -- Check for working CXX compiler: /usr/bin/c++
    -- Check for working CXX compiler: /usr/bin/c++ -- works
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc
    -- Check for working C compiler: /usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Detected version of GNU GCC: 48 (408)
    -- Performing Test HAVE_CXX_FSIGNED_CHAR
    -- Performing Test HAVE_CXX_FSIGNED_CHAR - Success
    -- Performing Test HAVE_C_FSIGNED_CHAR
    -- Performing Test HAVE_C_FSIGNED_CHAR - Success
    -- Performing Test HAVE_CXX_W
    -- Performing Test HAVE_CXX_W - Success
    -- Performing Test HAVE_C_W
    -- Performing Test HAVE_C_W - Success
    -- Performing Test HAVE_CXX_WALL
    -- Performing Test HAVE_CXX_WALL - Success
    -- Performing Test HAVE_C_WALL
    -- Performing Test HAVE_C_WALL - Success
    -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE
    -- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success
    -- Performing Test HAVE_C_WERROR_RETURN_TYPE
    -- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success
    -- Performing Test HAVE_CXX_WERROR_ADDRESS
    -- Performing Test HAVE_CXX_WERROR_ADDRESS - Success
    -- Performing Test HAVE_C_WERROR_ADDRESS
    -- Performing Test HAVE_C_WERROR_ADDRESS - Success
    -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT
    -- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success
    -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT
    -- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success
    -- Performing Test HAVE_CXX_WFORMAT
    -- Performing Test HAVE_CXX_WFORMAT - Success
    -- Performing Test HAVE_C_WFORMAT
    -- Performing Test HAVE_C_WFORMAT - Success
    -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY
    -- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success
    -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY
    -- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success
    -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS
    -- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success
    -- Performing Test HAVE_C_WMISSING_DECLARATIONS
    -- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success
    -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES
    -- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed
    -- Performing Test HAVE_C_WMISSING_PROTOTYPES
    -- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success
    -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES
    -- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed
    -- Performing Test HAVE_C_WSTRICT_PROTOTYPES
    -- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success
    -- Performing Test HAVE_CXX_WUNDEF
    -- Performing Test HAVE_CXX_WUNDEF - Success
    -- Performing Test HAVE_C_WUNDEF
    -- Performing Test HAVE_C_WUNDEF - Success
    -- Performing Test HAVE_CXX_WINIT_SELF
    -- Performing Test HAVE_CXX_WINIT_SELF - Success
    -- Performing Test HAVE_C_WINIT_SELF
    -- Performing Test HAVE_C_WINIT_SELF - Success
    -- Performing Test HAVE_CXX_WPOINTER_ARITH
    -- Performing Test HAVE_CXX_WPOINTER_ARITH - Success
    -- Performing Test HAVE_C_WPOINTER_ARITH
    -- Performing Test HAVE_C_WPOINTER_ARITH - Success
    -- Performing Test HAVE_CXX_WSHADOW
    -- Performing Test HAVE_CXX_WSHADOW - Success
    -- Performing Test HAVE_C_WSHADOW
    -- Performing Test HAVE_C_WSHADOW - Success
    -- Performing Test HAVE_CXX_WSIGN_PROMO
    -- Performing Test HAVE_CXX_WSIGN_PROMO - Success
    -- Performing Test HAVE_C_WSIGN_PROMO
    -- Performing Test HAVE_C_WSIGN_PROMO - Failed
    -- Performing Test HAVE_CXX_WNO_NARROWING
    -- Performing Test HAVE_CXX_WNO_NARROWING - Success
    -- Performing Test HAVE_C_WNO_NARROWING
    -- Performing Test HAVE_C_WNO_NARROWING - Success
    -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR
    -- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success
    -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR
    -- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed
    -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
    -- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
    -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS
    -- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
    -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION
    -- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success
    -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION
    -- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success
    -- Performing Test HAVE_CXX_WNO_LONG_LONG
    -- Performing Test HAVE_CXX_WNO_LONG_LONG - Success
    -- Performing Test HAVE_C_WNO_LONG_LONG
    -- Performing Test HAVE_C_WNO_LONG_LONG - Success
    -- Performing Test HAVE_CXX_PTHREAD
    -- Performing Test HAVE_CXX_PTHREAD - Success
    -- Performing Test HAVE_C_PTHREAD
    -- Performing Test HAVE_C_PTHREAD - Success
    -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER
    -- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success
    -- Performing Test HAVE_C_FOMIT_FRAME_POINTER
    -- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success
    -- Performing Test HAVE_CXX_MSSE
    -- Performing Test HAVE_CXX_MSSE - Success
    -- Performing Test HAVE_C_MSSE
    -- Performing Test HAVE_C_MSSE - Success
    -- Performing Test HAVE_CXX_MSSE2
    -- Performing Test HAVE_CXX_MSSE2 - Success
    -- Performing Test HAVE_C_MSSE2
    -- Performing Test HAVE_C_MSSE2 - Success
    -- Performing Test HAVE_CXX_MSSE3
    -- Performing Test HAVE_CXX_MSSE3 - Success
    -- Performing Test HAVE_C_MSSE3
    -- Performing Test HAVE_C_MSSE3 - Success
    -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS
    -- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success
    -- Performing Test HAVE_C_FFUNCTION_SECTIONS
    -- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success
    -- Looking for pthread.h
    -- Looking for pthread.h - found
    -- Check if the system is big endian
    -- Searching 16 bit integer
    -- Looking for sys/types.h
    -- Looking for sys/types.h - found
    -- Looking for stdint.h
    -- Looking for stdint.h - found
    -- Looking for stddef.h
    -- Looking for stddef.h - found
    -- Check size of unsigned short
    -- Check size of unsigned short - done
    -- Using unsigned short
    -- Check if the system is big endian - little endian
    -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.8")
    -- Found TIFF: /usr/lib/x86_64-linux-gnu/libtiff.so (found version "4.0.3")
    -- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so
    -- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1")
    -- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.2.50")
    -- Looking for /usr/include/libpng/png.h
    -- Looking for /usr/include/libpng/png.h - found
    -- Looking for semaphore.h
    -- Looking for semaphore.h - found
    -- Performing Test HAVE_CXX_WNO_SHADOW
    -- Performing Test HAVE_CXX_WNO_SHADOW - Success
    -- Performing Test HAVE_CXX_WNO_UNUSED
    -- Performing Test HAVE_CXX_WNO_UNUSED - Success
    -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE
    -- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success
    -- Performing Test HAVE_CXX_WNO_UNDEF
    -- Performing Test HAVE_CXX_WNO_UNDEF - Success
    -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS
    -- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success
    -- Performing Test HAVE_CXX_WNO_UNINITIALIZED
    -- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success
    -- Performing Test HAVE_CXX_WNO_SWITCH
    -- Performing Test HAVE_CXX_WNO_SWITCH - Success
    -- Performing Test HAVE_CXX_WNO_PARENTHESES
    -- Performing Test HAVE_CXX_WNO_PARENTHESES - Success
    -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS
    -- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success
    -- Performing Test HAVE_CXX_WNO_EXTRA
    -- Performing Test HAVE_CXX_WNO_EXTRA - Success
    CMake Warning at cmake/OpenCVFindLibsGUI.cmake:18 (find_package):
      By not providing "FindQt5Core.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "Qt5Core", but
      CMake did not find one.

      Could not find a package configuration file provided by "Qt5Core" with any
      of the following names:

        Qt5CoreConfig.cmake
        qt5core-config.cmake

      Add the installation prefix of "Qt5Core" to CMAKE_PREFIX_PATH or set
      "Qt5Core_DIR" to a directory containing one of the above files. If
      "Qt5Core" provides a separate development package or SDK, be sure it has
      been installed.
    Call Stack (most recent call first):
      CMakeLists.txt:472 (include)

    CMake Warning at cmake/OpenCVFindLibsGUI.cmake:19 (find_package):
      By not providing "FindQt5Gui.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "Qt5Gui", but
      CMake did not find one.

      Could not find a package configuration file provided by "Qt5Gui" with any
      of the following names:

        Qt5GuiConfig.cmake
        qt5gui-config.cmake

      Add the installation prefix of "Qt5Gui" to CMAKE_PREFIX_PATH or set
      "Qt5Gui_DIR" to a directory containing one of the above files. If "Qt5Gui"
      provides a separate development package or SDK, be sure it has been
      installed.
    Call Stack (most recent call first):
      CMakeLists.txt:472 (include)

    CMake Warning at cmake/OpenCVFindLibsGUI.cmake:20 (find_package):
      By not providing "FindQt5Widgets.cmake" in CMAKE_MODULE_PATH this project
      has asked CMake to find a package configuration file provided by
      "Qt5Widgets", but CMake did not find one.

      Could not find a package configuration file provided by "Qt5Widgets" with
      any of the following names:

        Qt5WidgetsConfig.cmake
        qt5widgets-config.cmake

      Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
      "Qt5Widgets_DIR" to a directory containing one of the above files. If
      "Qt5Widgets" provides a separate development package or SDK, be sure it has
      been installed.
    Call Stack (most recent call first):
      CMakeLists.txt:472 (include)

    CMake Warning at cmake/OpenCVFindLibsGUI.cmake:21 (find_package):
      By not providing "FindQt5Test.cmake" in CMAKE_MODULE_PATH this project has
      asked CMake to find a package configuration file provided by "Qt5Test", but
      CMake did not find one.

      Could not find a package configuration file provided by "Qt5Test" with any
      of the following names:

        Qt5TestConfig.cmake
        qt5test-config.cmake

      Add the installation prefix of "Qt5Test" to CMAKE_PREFIX_PATH or set
      "Qt5Test_DIR" to a directory containing one of the above files. If
      "Qt5Test" provides a separate development package or SDK, be sure it has
      been installed.
    Call Stack (most recent call first):
      CMakeLists.txt:472 (include)

    CMake Warning at cmake/OpenCVFindLibsGUI.cmake:22 (find_package):
      By not providing "FindQt5Concurrent.cmake" in CMAKE_MODULE_PATH this
      project has asked CMake to find a package configuration file provided by
      "Qt5Concurrent", but CMake did not find one.

      Could not find a package configuration file provided by "Qt5Concurrent"
      with any of the following names:

        Qt5ConcurrentConfig.cmake
        qt5concurrent-config.cmake

      Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set
      "Qt5Concurrent_DIR" to a directory containing one of the above files. If
      "Qt5Concurrent" provides a separate development package or SDK, be sure it
      has been installed.
    Call Stack (most recent call first):
      CMakeLists.txt:472 (include)

    qmake: could not exec '/usr/lib/x86_64-linux-gnu/qt4/bin/qmake': No such file or directory
    CMake Error at /usr/share/cmake-2.8/Modules/FindQt4.cmake:1386 (message):
      Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
    Call Stack (most recent call first):
      cmake/OpenCVFindLibsGUI.cmake:34 (find_package)
      CMakeLists.txt:472 (include)

    -- Configuring incomplete, errors occurred!
    See also "/home/begueradj/opencv/opencv-2.4.10/build/CMakeFiles/CMakeOutput.log".
    See also "/home/begueradj/opencv/opencv-2.4.10/build/CMakeFiles/CMakeError.log".

How to fix this ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu webbrowser-app Edit question
Assignee:
No assignee Edit question
Solved by:
Begueradj
Solved:
2015-04-09
Last query:
2015-04-09
Last reply:
2015-04-09
Manfred Hampl (m-hampl) said : #1

Have you tried installing the packages qt5-qmake and/or qtbase5-dev-tools or similar?

Begueradj (beg-bill) said : #2

@Manfred Hampl (m-hampl) : I will try to do that as soon as I get internet access on my other laptop and let you know.
For the moment I am rather thinking to run sudo apt-get install qt5-default

Is there not a PPA?

Begueradj (beg-bill) said : #4

I resolved the problem by running: sudo apt-get install qt5-default

henrydevid (henrydevid1) said : #5

Actually searching is a great part for all, so for that, I have some different tricks, to search. if you just go running button and after that just type which file you want to search and then you will search it properly and for further about it
 https://babasupport.org/printer/epson-error-code-0xf1/ just visit with it.