problem trying to build opencv-3.0.0

asked 2019-01-26 18:03:45 -0600

manoj4898 gravatar image

updated 2019-01-27 02:06:28 -0600

Os: Ubuntu 18.04.1 opencv-3.0.0 when I used cmake -D CMAKE_BUILD_TYPE=RELEASE \

  -D CMAKE_INSTALL_PREFIX=/usr/local \
  -D INSTALL_PYTHON_EXAMPLES=ON \
  -D INSTALL_C_EXAMPLES=OFF \
  -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.0.0/modules \
  -D PYTHON_EXECUTABLE=~/.virtualenvs/cv/bin/python \
  -D BUILD_EXAMPLES=ON ..

to build opencv, I got cmake warnings for project developers and at last it said "Configuring incomplete, errors occurred"

These are the contents of cmake errorlog file:

The system is: Linux - 4.15.0-43-generic - x86_64 Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded. Compiler: /usr/bin/c++ Build flags: Id flags:

The output was: 0

Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"

The CXX compiler identification is GNU, found in "/home/manoj/Documents/opencv-3.0.0/build/CMakeFiles/3.10.2/CompilerIdCXX/a.out"

Compiling the C compiler identification source file "CMakeCCompilerId.c" succeeded. Compiler: /usr/bin/cc Build flags: Id flags:

The output was: 0

Compilation of the C compiler identification source "CMakeCCompilerId.c" produced "a.out"

The C compiler identification is GNU, found in "/home/manoj/Documents/opencv-3.0.0/build/CMakeFiles/3.10.2/CompilerIdC/a.out"

Determining if the CXX compiler works passed with the following output: Change Dir: /home/manoj/Documents/opencv-3.0.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_76612/fast" /usr/bin/make -f CMakeFiles/cmTC_76612.dir/build.make CMakeFiles/cmTC_76612.dir/build make[1]: Entering directory '/home/manoj/Documents/opencv-3.0.0/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_76612.dir/testCXXCompiler.cxx.o /usr/bin/c++ -o CMakeFiles/cmTC_76612.dir/testCXXCompiler.cxx.o -c /home/manoj/Documents/opencv-3.0.0/build/CMakeFiles/CMakeTmp/testCXXCompiler.cxx Linking CXX executable cmTC_76612 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_76612.dir/link.txt --verbose=1 /usr/bin/c++ -rdynamic CMakeFiles/cmTC_76612.dir/testCXXCompiler.cxx.o -o cmTC_76612 make[1]: Leaving directory '/home/manoj/Documents/opencv-3.0.0/build/CMakeFiles/CMakeTmp'

Detecting CXX compiler ABI info compiled with the following output: Change Dir: /home/manoj/Documents/opencv-3.0.0/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_48a73/fast" /usr/bin/make -f CMakeFiles/cmTC_48a73.dir/build.make CMakeFiles/cmTC_48a73.dir/build make[1]: Entering directory '/home/manoj/Documents/opencv-3.0.0/build/CMakeFiles/CMakeTmp' Building CXX object CMakeFiles/cmTC_48a73.dir/CMakeCXXCompilerABI.cpp.o /usr/bin/c++ -o CMakeFiles/cmTC_48a73.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.10/Modules/CMakeCXXCompilerABI.cpp Linking CXX executable cmTC_48a73 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_48a73.dir/link.txt --verbose=1 /usr/bin/c++ -v -rdynamic CMakeFiles/cmTC_48a73.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_48a73 Using built-in specs. COLLECT_GCC=/usr/bin/c++ COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.3.0-27ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time ... (more)

edit retag flag offensive close merge delete

Comments

so far, no useful information here. (as it is now, we cannot help)

please EDIT your question, and add the cmake console output

berak gravatar imageberak ( 2019-01-26 19:36:21 -0600 )edit

and why on earth outdated 3.0.0 ?

berak gravatar imageberak ( 2019-01-26 19:38:12 -0600 )edit

I am getting many warnings of this kind: CMake Warning (dev) at cmake/OpenCVPCHSupport.cmake:80 (GET_DIRECTORY_PROPERTY): Policy CMP0059 is not set: Do not treat DEFINITIONS as a built-in directory property. Run "cmake --help-policy CMP0059" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): cmake/OpenCVPCHSupport.cmake:256 (_PCH_GET_COMPILE_FLAGS) cmake/OpenCVPCHSupport.cmake:369 (add_precompiled_header) cmake/OpenCVModule.cmake:835 (ocv_add_precompiled_header_to_target) cmake/OpenCVModule.cmake:1008 (_ocv_add_precompiled_headers) cmake/OpenCVModule.cmake:859 (ocv_add_accuracy_tests) modules/features2d/CMakeLists.txt:2 (ocv_define_module) This warning is for project developers. Use -Wno-de

manoj4898 gravatar imagemanoj4898 ( 2019-01-26 20:53:50 -0600 )edit

the warnings are irrelevant.

please just do what i say, edit your question, and put the cmake OUTPUT there.

berak gravatar imageberak ( 2019-01-27 01:26:21 -0600 )edit

sorry, but still not the required information

at last it said "Configuring incomplete, errors occurred"

that's the one we need ! not your cmake error log, which is also irrelevant. the compiler has to make a few tests, and some of them will fail.

berak gravatar imageberak ( 2019-01-27 02:24:23 -0600 )edit

Do you want the cmakeoutput.log file?

manoj4898 gravatar imagemanoj4898 ( 2019-01-27 03:11:17 -0600 )edit

your console output from cmake, please. NOT THIS ONE

berak gravatar imageberak ( 2019-01-27 03:39:50 -0600 )edit
1

close your issue please

LBerger gravatar imageLBerger ( 2019-01-27 05:12:32 -0600 )edit

https://docs.google.com/document/d/1d...

Please refer the above link

manoj4898 gravatar imagemanoj4898 ( 2019-01-27 05:36:50 -0600 )edit

so, i found this:

CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:85 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:109 (include)


CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:86 (list):
  list GET given empty list
Call Stack (most recent call first):
  CMakeLists.txt:109 (include)


CMake Error at cmake/OpenCVDetectCXXCompiler.cmake:89 (math):
  math cannot parse the expression: "*100 + ": syntax error, unexpected
  exp_TIMES, expecting exp_PLUS or exp_MINUS or exp_OPENPARENT or exp_NUMBER
  (1)
Call Stack (most recent call first):
  CMakeLists.txt:109 (include)

please, give up on opencv3.0.0 get latest 3.4.5 instead, it will work properly with your cmake 3.10.2

berak gravatar imageberak ( 2019-01-27 06:30:53 -0600 )edit