Could not find a package configuration file provided by “Qt5Core”
I tried to build Opencv-2.4.10 from sources using CMake in order to install it. So I run this command:
begueradj@
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_
-- Performing Test HAVE_CXX_
-- 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_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- 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_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- 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_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- 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_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_WSIGN_PROMO
-- Performing Test HAVE_C_WSIGN_PROMO - Failed
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- 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_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- 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_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_C_
-- Performing Test HAVE_C_
-- 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/
-- Found TIFF: /usr/lib/
-- Found JPEG: /usr/lib/
-- Found Jasper: /usr/lib/
-- Found PNG: /usr/lib/
-- Looking for /usr/include/
-- Looking for /usr/include/
-- 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_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_WNO_UNDEF
-- Performing Test HAVE_CXX_WNO_UNDEF - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_WNO_SWITCH
-- Performing Test HAVE_CXX_WNO_SWITCH - Success
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_
-- Performing Test HAVE_CXX_WNO_EXTRA
-- Performing Test HAVE_CXX_WNO_EXTRA - Success
CMake Warning at cmake/OpenCVFin
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:
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):
CMakeList
CMake Warning at cmake/OpenCVFin
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:
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):
CMakeList
CMake Warning at cmake/OpenCVFin
By not providing "FindQt5Widgets
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:
Add the installation prefix of "Qt5Widgets" to CMAKE_PREFIX_PATH or set
"
"Qt5Widgets" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeList
CMake Warning at cmake/OpenCVFin
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:
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):
CMakeList
CMake Warning at cmake/OpenCVFin
By not providing "FindQt5Concurr
project has asked CMake to find a package configuration file provided by
"
Could not find a package configuration file provided by "Qt5Concurrent"
with any of the following names:
Add the installation prefix of "Qt5Concurrent" to CMAKE_PREFIX_PATH or set
"
"
has been installed.
Call Stack (most recent call first):
CMakeList
qmake: could not exec '/usr/lib/
CMake Error at /usr/share/
Found unsuitable Qt version "" from NOTFOUND, this code requires Qt 4.x
Call Stack (most recent call first):
cmake/
CMakeList
-- Configuring incomplete, errors occurred!
See also "/home/
See also "/home/
How to fix this ?
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Begueradj
- Solved:
- Last query:
- Last reply: