On 11/25/2018 05:54 AM, Maxence Buisson via blfs-dev wrote:
Hi,
I tried to install opencv (requested for frei0r-plugins and KF5) using
the instructions and it seems that the sed command is not placed where
it's supposed to be.
sed -i 's/CV_RGB/cv::Scalar/' src/filter/facebl0r/facebl0r.cpp
This sed must be used for compiling frei0r-plugins and not opencv so it
must look as:
In opencv:
mkdir build &&
cd build &&
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_CXX11=ON \
-DBUILD_PERF_TESTS=OFF \
-DWITH_XINE=ON \
-DBUILD_TESTS=OFF \
-DENABLE_PRECOMPILED_HEADERS=OFF \
-DCMAKE_SKIP_RPATH=ON \
-DBUILD_WITH_DEBUG_INFO=OFF \
-Wno-dev .. &&
make
In frei0r-plugins:
sed -i 's/CV_RGB/cv::Scalar/' src/filter/facebl0r/facebl0r.cpp &&
mkdir -vp build &&
cd build &&
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DOpenCV_DIR=/usr/share/OpenCV \
-Wno-dev .. &&
make
Yes, you are right. We will have to put that into the book's errata.
Thank you for the report.
-- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page