problem trying to build opencv-3.0.0
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 ...
so far, no useful information here. (as it is now, we cannot help)
please EDIT your question, and add the cmake console output
and why on earth outdated 3.0.0 ?
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
the warnings are irrelevant.
please just do what i say, edit your question, and put the cmake OUTPUT there.
sorry, but still not the required information
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.
Do you want the cmakeoutput.log file?
your console output from cmake, please. NOT THIS ONE
close your issue please
https://docs.google.com/document/d/1d...
Please refer the above link
so, i found this:
please, give up on opencv3.0.0 get latest 3.4.5 instead, it will work properly with your cmake 3.10.2