Created
October 17, 2015 06:09
-
-
Save horiken4/ab11e70c8ccd3e803c5a to your computer and use it in GitHub Desktop.
Post process for build OpenCV iOS framework with opencv_contrib
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Replace include path | |
modules=( | |
adas | |
aruco | |
bgsegm | |
bioinspired | |
ccalib | |
cvv | |
datasets | |
dnn | |
dpm | |
face | |
latentsvm | |
line_descriptor | |
optflow | |
reg | |
rgbd | |
saliency | |
stereo | |
structured_light | |
surface_matching | |
text | |
tracking | |
xfeatures2d | |
ximgproc | |
xobjdetect | |
xphoto | |
) | |
headers=`find ./opencv2_contrib.framework/Headers/* -name *.hpp` | |
for module in ${modules[@]}; do | |
echo $module | |
sed -i "" -e "s/opencv2\/${module}/opencv2_contrib\/${module}/g" $headers | |
done | |
# Make universal library | |
lipo -create ./build/iPhoneOS-armv7/3rdparty/lib/Release/liblibprotobuf.a ./build/iPhoneOS-armv7s/3rdparty/lib/Release/liblibprotobuf.a ./build/iPhoneOS-arm64/3rdparty/lib/Release/liblibprotobuf.a ./build/iPhoneSimulator-i386/3rdparty/lib/Release/liblibprotobuf.a ./build/iPhoneSimulator-x86_64/3rdparty/lib/Release/liblibprotobuf.a -output libprotobuf.a | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment