File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,13 @@ mkdir -p lambda-package/cv2 build/numpy
9
9
pip install --install-option=" --prefix=$PWD /build/numpy" numpy
10
10
cp -rf build/numpy/lib64/python2.7/site-packages/numpy lambda-package
11
11
12
- # Build OpenCV 3.1
12
+ # Build OpenCV 3.2
13
13
(
14
14
NUMPY=$PWD /lambda-package/numpy/core/include
15
15
cd build
16
16
git clone https://github.com/Itseez/opencv.git
17
17
cd opencv
18
- git checkout 3.1 .0
18
+ git checkout 3.2 .0
19
19
cmake \
20
20
-D CMAKE_BUILD_TYPE=RELEASE \
21
21
-D WITH_TBB=ON \
@@ -28,12 +28,14 @@ cp -rf build/numpy/lib64/python2.7/site-packages/numpy lambda-package
28
28
-D ENABLE_POPCNT=ON \
29
29
-D ENABLE_FAST_MATH=ON \
30
30
-D BUILD_EXAMPLES=OFF \
31
+ -D BUILD_TESTS=OFF \
32
+ -D BUILD_PERF_TESTS=OFF \
31
33
-D PYTHON2_NUMPY_INCLUDE_DIRS=" $NUMPY " \
32
34
.
33
- make
35
+ make -j ` cat /proc/cpuinfo | grep MHz | wc -l `
34
36
)
35
37
cp build/opencv/lib/cv2.so lambda-package/cv2/__init__.so
36
- cp -L build/opencv/lib/* .so.3.1 lambda-package/cv2
38
+ cp -L build/opencv/lib/* .so.3.2 lambda-package/cv2
37
39
strip --strip-all lambda-package/cv2/*
38
40
chrpath -r ' $ORIGIN' lambda-package/cv2/__init__.so
39
41
touch lambda-package/cv2/__init__.py
You can’t perform that action at this time.
0 commit comments