修订版 | 385bbcc0b8119163c1ff9e6debd5243201f30474 (tree) |
---|---|
时间 | 2023-10-18 16:44:12 |
作者 | matsuand <30614168+matsuand@user...> |
Commiter | matsuand |
[BLFS] Update opencv-4.8.1.
@@ -3,7 +3,7 @@ | ||
3 | 3 | . ./_blfsset.sh |
4 | 4 | |
5 | 5 | APPNAME=opencv |
6 | -VER=2.4.7 | |
6 | +VER=4.8.1 | |
7 | 7 | TARGET=$APPNAME-$VER |
8 | 8 | TARGETBALL=$DLD/$TARGET.tar.gz |
9 | 9 | TARGETDIR=$TARGET |
@@ -11,9 +11,8 @@ TARGETDIR=$TARGET | ||
11 | 11 | echo $TARGET |
12 | 12 | |
13 | 13 | . $WRK/_checkRequired.sh \ |
14 | - cmake | |
15 | -. $WRK/_checkOptions.sh \ | |
16 | - libdc1394 openexr video4linux ffmpeg | |
14 | + cmake unzip | |
15 | +. $WRK/_checkOptions.sh "" | |
17 | 16 | . $WRK/_checkTarball.sh |
18 | 17 | . $WRK/_checkExit.sh "$1" || exit $? |
19 | 18 |
@@ -25,12 +24,22 @@ TimeStart | ||
25 | 24 | |
26 | 25 | cd $TARGETDIR |
27 | 26 | |
27 | +tar -xf $DLD/opencv_contrib-$VER.tar.gz || echo exit 1 | |
28 | + | |
28 | 29 | mkdir build |
29 | 30 | cd build |
30 | 31 | |
31 | 32 | echo Cmaking... |
32 | -cmake .. \ | |
33 | - -DCMAKE_INSTALL_PREFIX=/usr \ | |
33 | +cmake -DCMAKE_INSTALL_PREFIX=/usr \ | |
34 | + -DCMAKE_BUILD_TYPE=Release \ | |
35 | + -DENABLE_CXX11=ON \ | |
36 | + -DBUILD_PERF_TESTS=OFF \ | |
37 | + -DWITH_XINE=ON \ | |
38 | + -DBUILD_TESTS=OFF \ | |
39 | + -DENABLE_PRECOMPILED_HEADERS=OFF \ | |
40 | + -DCMAKE_SKIP_RPATH=ON \ | |
41 | + -DBUILD_WITH_DEBUG_INFO=OFF \ | |
42 | + -Wno-dev .. \ | |
34 | 43 | 1> $LOG/$TARGET.1_cmake.log 2>&1 || exit 1 |
35 | 44 | |
36 | 45 | Making |
@@ -38,12 +47,12 @@ make \ | ||
38 | 47 | 1> $LOG/$TARGET.2_make.log 2>&1 || exit 1 |
39 | 48 | |
40 | 49 | Installing |
41 | -paco -p $TARGET "make install" \ | |
50 | +porg -lp $TARGET -E$PWD "make install" \ | |
42 | 51 | 1> $LOG/$TARGET.3_install.log 2>&1 || exit 1 |
43 | 52 | |
44 | 53 | TimeEnd |
45 | 54 | |
46 | 55 | cd ../.. |
47 | 56 | RemoveSrcDir |
48 | -PacoingDone | |
57 | +PorgingDone | |
49 | 58 |