Universal binaries will be places in build/lib/universal folder. “build” folder is the name of the directory you’ve entered on the first stage when generating workspace in CMake. Include headers can be obtained by running install target in XCode in build/include.
Here is bash script that will merge them together:
# Create armv7 + i386 OpenCV library mkdir -p build/lib/universal lipo -create build/lib/Release-iphoneos/libopencv_calib3d.a build/lib/Release-iphonesimulator/libopencv_calib3d.a -output build/lib/universal/libopencv_calib3d.a lipo -create build/lib/Release-iphoneos/libopencv_contrib.a build/lib/Release-iphonesimulator/libopencv_contrib.a -output build/lib/universal/libopencv_contrib.a lipo -create build/lib/Release-iphoneos/libopencv_core.a build/lib/Release-iphonesimulator/libopencv_core.a -output build/lib/universal/libopencv_core.a lipo -create build/lib/Release-iphoneos/libopencv_features2d.a build/lib/Release-iphonesimulator/libopencv_features2d.a -output build/lib/universal/libopencv_features2d.a lipo -create build/lib/Release-iphoneos/libopencv_gpu.a build/lib/Release-iphonesimulator/libopencv_gpu.a -output build/lib/universal/libopencv_gpu.a lipo -create build/lib/Release-iphoneos/libopencv_imgproc.a build/lib/Release-iphonesimulator/libopencv_imgproc.a -output build/lib/universal/libopencv_imgproc.a lipo -create build/lib/Release-iphoneos/libopencv_legacy.a build/lib/Release-iphonesimulator/libopencv_legacy.a -output build/lib/universal/libopencv_legacy.a lipo -create build/lib/Release-iphoneos/libopencv_ml.a build/lib/Release-iphonesimulator/libopencv_ml.a -output build/lib/universal/libopencv_ml.a lipo -create build/lib/Release-iphoneos/libopencv_objdetect.a build/lib/Release-iphonesimulator/libopencv_objdetect.a -output build/lib/universal/libopencv_objdetect.a lipo -create build/lib/Release-iphoneos/libopencv_video.a build/lib/Release-iphonesimulator/libopencv_video.a -output build/lib/universal/libopencv_video.a lipo -create build/lib/Release-iphoneos/libopencv_flann.a build/lib/Release-iphonesimulator/libopencv_flann.a -output build/lib/universal/libopencv_flann.a lipo -create build/3rdparty/lib/Release-iphoneos/libopencv_lapack.a build/3rdparty/lib/Release-iphonesimulator/libopencv_lapack.a -output build/lib/universal/libopencv_lapack.a lipo -create build/3rdparty/lib/Release-iphoneos/liblibjpeg.a build/3rdparty/lib/Release-iphonesimulator/liblibjpeg.a -output build/lib/universal/liblibjpeg.a lipo -create build/3rdparty/lib/Release-iphoneos/liblibpng.a build/3rdparty/lib/Release-iphonesimulator/liblibpng.a -output build/lib/universal/liblibpng.a lipo -create build/3rdparty/lib/Release-iphoneos/libzlib.a build/3rdparty/lib/Release-iphonesimulator/libzlib.a -output build/lib/universal/libzlib.a lipo -create build/lib/Debug-iphoneos/libopencv_calib3d.a build/lib/Debug-iphonesimulator/libopencv_calib3d.a -output build/lib/universal/libopencv_calib3dd.a lipo -create build/lib/Debug-iphoneos/libopencv_contrib.a build/lib/Debug-iphonesimulator/libopencv_contrib.a -output build/lib/universal/libopencv_contribd.a lipo -create build/lib/Debug-iphoneos/libopencv_core.a build/lib/Debug-iphonesimulator/libopencv_core.a -output build/lib/universal/libopencv_cored.a lipo -create build/lib/Debug-iphoneos/libopencv_features2d.a build/lib/Debug-iphonesimulator/libopencv_features2d.a -output build/lib/universal/libopencv_features2dd.a lipo -create build/lib/Debug-iphoneos/libopencv_gpu.a build/lib/Debug-iphonesimulator/libopencv_gpu.a -output build/lib/universal/libopencv_gpud.a lipo -create build/lib/Debug-iphoneos/libopencv_imgproc.a build/lib/Debug-iphonesimulator/libopencv_imgproc.a -output build/lib/universal/libopencv_imgprocd.a lipo -create build/lib/Debug-iphoneos/libopencv_legacy.a build/lib/Debug-iphonesimulator/libopencv_legacy.a -output build/lib/universal/libopencv_legacyd.a lipo -create build/lib/Debug-iphoneos/libopencv_ml.a build/lib/Debug-iphonesimulator/libopencv_ml.a -output build/lib/universal/libopencv_mld.a lipo -create build/lib/Debug-iphoneos/libopencv_objdetect.a build/lib/Debug-iphonesimulator/libopencv_objdetect.a -output build/lib/universal/libopencv_objdetectd.a lipo -create build/lib/Debug-iphoneos/libopencv_video.a build/lib/Debug-iphonesimulator/libopencv_video.a -output build/lib/universal/libopencv_videod.a lipo -create build/lib/Debug-iphoneos/libopencv_flann.a build/lib/Debug-iphonesimulator/libopencv_flann.a -output build/lib/universal/libopencv_flannd.a lipo -create build/3rdparty/lib/Debug-iphoneos/libopencv_lapack.a build/3rdparty/lib/Debug-iphonesimulator/libopencv_lapack.a -output build/lib/universal/libopencv_lapackd.a lipo -create build/3rdparty/lib/Debug-iphoneos/liblibjpeg.a build/3rdparty/lib/Debug-iphonesimulator/liblibjpeg.a -output build/lib/universal/liblibjpegd.a lipo -create build/3rdparty/lib/Debug-iphoneos/liblibpng.a build/3rdparty/lib/Debug-iphonesimulator/liblibpng.a -output build/lib/universal/liblibpngd.a lipo -create build/3rdparty/lib/Debug-iphoneos/libzlib.a build/3rdparty/lib/Debug-iphonesimulator/libzlib.a -output build/lib/universal/libzlibd.a
No comments:
Post a Comment