Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCV Error : Configuration incomplete #3

Open
nukadelic opened this issue Nov 6, 2017 · 5 comments
Open

OpenCV Error : Configuration incomplete #3

nukadelic opened this issue Nov 6, 2017 · 5 comments

Comments

@nukadelic
Copy link

nukadelic commented Nov 6, 2017

I have followed your instructions up until the cmake -G Makefiles... command and got the following error:

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:487 (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:487 (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:487 (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:487 (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:487 (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-3.5/Modules/FindQt4.cmake:1326 (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:487 (include)


-- Configuring incomplete, errors occurred!
See also "/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeOutput.log".
See also "/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeError.log".

[edit]

CMakeError.log

Determining if the system is big endian passed with the following output:
Change Dir: /home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_67d3e/fast"
/usr/bin/make -f CMakeFiles/cmTC_67d3e.dir/build.make CMakeFiles/cmTC_67d3e.dir/build
make[1]: Entering directory '/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_67d3e.dir/TestEndianess.c.o
/usr/bin/cc    -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -msse3 -ffunction-sections  -O3 -DNDEBUG   -o CMakeFiles/cmTC_67d3e.dir/TestEndianess.c.o   -c /home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp/TestEndianess.c
Linking C executable cmTC_67d3e
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_67d3e.dir/link.txt --verbose=1
/usr/bin/cc   -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -msse3 -ffunction-sections  -O3 -DNDEBUG    CMakeFiles/cmTC_67d3e.dir/TestEndianess.c.o  -o cmTC_67d3e -rdynamic 
make[1]: Leaving directory '/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp'

TestEndianess.c:
/* A 16 bit integer is required. */
typedef unsigned short cmakeint16;

/* On a little endian machine, these 16bit ints will give "THIS IS LITTLE ENDIAN."
   On a big endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_little[] =  {0x4854, 0x5349, 0x4920, 0x2053, 0x494c, 0x5454, 0x454c, 0x4520, 0x444e, 0x4149, 0x2e4e, 0x0000};

/* on a big endian machine, these 16bit ints will give "THIS IS BIG ENDIAN."
   On a little endian machine the characters will be exchanged pairwise. */
const cmakeint16 info_big[] =     {0x5448, 0x4953, 0x2049, 0x5320, 0x4249, 0x4720, 0x454e, 0x4449, 0x414e, 0x2e2e, 0x0000};

#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
  int require = 0;
  require += info_little[argc];
  require += info_big[argc];
  (void)argv;
  return require;
}


Determining if the include file io.h exists failed with the following output:
Change Dir: /home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_2e298/fast"
/usr/bin/make -f CMakeFiles/cmTC_2e298.dir/build.make CMakeFiles/cmTC_2e298.dir/build
make[1]: Entering directory '/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_2e298.dir/CheckIncludeFile.c.o
/usr/bin/cc    -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -msse3 -ffunction-sections  -O3 -DNDEBUG   -o CMakeFiles/cmTC_2e298.dir/CheckIncludeFile.c.o   -c /home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp/CheckIncludeFile.c
/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp/CheckIncludeFile.c:1:16: fatal error: io.h: No such file or directory
compilation terminated.
CMakeFiles/cmTC_2e298.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_2e298.dir/CheckIncludeFile.c.o' failed
make[1]: *** [CMakeFiles/cmTC_2e298.dir/CheckIncludeFile.c.o] Error 1
make[1]: Leaving directory '/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_2e298/fast' failed
make: *** [cmTC_2e298/fast] Error 2


Determining if the function jbg_newlen exists failed with the following output:
Change Dir: /home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_36db2/fast"
/usr/bin/make -f CMakeFiles/cmTC_36db2.dir/build.make CMakeFiles/cmTC_36db2.dir/build
make[1]: Entering directory '/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp'
Building C object CMakeFiles/cmTC_36db2.dir/CheckFunctionExists.c.o
/usr/bin/cc    -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -msse3 -ffunction-sections -DCHECK_FUNCTION_EXISTS=jbg_newlen -O3 -DNDEBUG   -o CMakeFiles/cmTC_36db2.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.5/Modules/CheckFunctionExists.c
/usr/share/cmake-3.5/Modules/CheckFunctionExists.c:6:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
 char CHECK_FUNCTION_EXISTS();
 ^
Linking C executable cmTC_36db2
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_36db2.dir/link.txt --verbose=1
/usr/bin/cc   -fPIC   -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wno-narrowing -Wno-array-bounds -Wno-aggressive-loop-optimizations -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffast-math -msse -msse2 -msse3 -ffunction-sections -DCHECK_FUNCTION_EXISTS=jbg_newlen -O3 -DNDEBUG    CMakeFiles/cmTC_36db2.dir/CheckFunctionExists.c.o  -o cmTC_36db2 -rdynamic 
CMakeFiles/cmTC_36db2.dir/CheckFunctionExists.c.o: In function `main':
CheckFunctionExists.c:(.text.startup.main+0xe): undefined reference to `jbg_newlen'
collect2: error: ld returned 1 exit status
CMakeFiles/cmTC_36db2.dir/build.make:97: recipe for target 'cmTC_36db2' failed
make[1]: *** [cmTC_36db2] Error 1
make[1]: Leaving directory '/home/nukadelic/opencv-2.4.13/release/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_36db2/fast' failed
make: *** [cmTC_36db2/fast] Error 2
@KleinYuan
Copy link
Owner

@nukadelic did you already install another opencv on your system? Also the logs say that you need to install Qt5 and try install that and run again. (Weird tho...)

@KleinYuan
Copy link
Owner

@nukadelic any followup?

@nukadelic
Copy link
Author

Not really. Currently I'm using win7 with openCV ( wheel file installation ).

@MuhammadSalmanGalileo
Copy link

@KleinYuan i got the same problem and i have other opencv but i need the source file so i install a different one. is that any problem with that?

@KleinYuan
Copy link
Owner

@Demonkid I think the openCV version matters. Also if you have opencv different versions installed, I'd suggest using Anaconda to manage that one.

This is a quite old repo. Blame on me that I didn't maintain it quite often. All I can guarantee is that with the set up I wrote in Readme, it can just run, subject to changes of dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants