[blfs-dev] [BLFS 8.3 - stable] Problems while installing opencv and frei0r-plugins.

Maxence Buisson maxence.buisson at gmail.com
Sun Nov 25 03:54:18 PST 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/blfs-dev/attachments/20181125/ac180d28/attachment.html>


More information about the blfs-dev mailing list