On 10/26/2018 10:07 AM, renodr via blfs-dev wrote:
Greetings!
I was attempting to compile OpenCV earlier and ran into some problems. I
was able to carry on without it for what I was working on, but it's
still worth noting that it's broken.
First of all, the sed -i 's/CV_RGB/cv::Scalar/'
src/filter/facebl0r/facebl0r.cpp && command no longer works, as there is
no src/filter/* folder in the unzipped source code. My guess is that
they restructured between versions.
After I bypassed the sed, CMake failed because of an invalid option that
it was trying to pass to g++.
===== END =====
Build output check failed:
Regex: 'unrecognized .*option'
Output line: 'cc1plus: warning: unrecognized command line option
‘-Wno-enum-compare-switch’'
Compilation failed:
source file:
'/sources/opencv-3.4.3/opencv-3.4.3/build/CMakeFiles/CMakeTmp/src.cxx'
check option: ' -Wno-enum-compare-switch'
===== BUILD LOG =====
Leaving the sed was definitely an error I made when I last updated
opencv, but the cmake line works for me.
Looking at build/CMakeFiles/CMakeError.log, I do see several instances
(actually 13 instances) of 'Compilation failed:' in
build/CMakeFiles/CMakeError.log, but that does not interfere with the
completion of the cmake command. It looks like something similar to a
configure check that fails looking for a specific capability.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page