-
Notifications
You must be signed in to change notification settings - Fork 0
/
build_opencv.sh
executable file
·51 lines (46 loc) · 1.07 KB
/
build_opencv.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
rm -r opencv opencv2.xcframework
git clone https://github.com/opencv/opencv.git
cd opencv
python3 platforms/apple/build_xcframework.py -o output \
--iphoneos_archs arm64 --iphonesimulator_archs x86_64,arm64 \
--iphoneos_deployment_target 13.4 \
--without apps \
--without shape \
--without videostab \
--without superres \
--without videoio \
--without video \
--without calib3d \
--without features2d \
--without objdetect \
--without dnn \
--without ml \
--without flann \
--without photo \
--without highgui \
--without stitching \
--without world \
--without gapi \
--without java \
--without python2 \
--without python3 \
--without objc \
--without java_bindings_generator \
--without js_bindings_generator \
--without objc_bindings_generator \
--disable 1394 \
--disable ADE \
--disable AVFOUNDATION \
--disable CAP_IOS \
--disable IMGCODEC_HDR \
--disable IMGCODEC_PFM \
--disable IMGCODEC_PXM \
--disable IMGCODEC_SUNRASTER \
--disable PROTOBUF \
--disable QUIRC \
--disable WEBP \
--disable-swift
cp -rp output/opencv2.xcframework ../opencv2.xcframework
cd ..
exit 0