mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 14:13:15 +08:00
fix for supporting 64-bit architecture
This commit is contained in:
parent
f6283432ff
commit
9631cb6de9
@ -52,8 +52,8 @@ def build_opencv(srcroot, buildroot, target, arch):
|
|||||||
if os.path.isfile(wlib):
|
if os.path.isfile(wlib):
|
||||||
os.remove(wlib)
|
os.remove(wlib)
|
||||||
|
|
||||||
os.system("xcodebuild -parallelizeTargets ARCHS=%s -jobs 8 -sdk %s -configuration Release -target ALL_BUILD" % (arch, target.lower()))
|
os.system("xcodebuild IPHONEOS_DEPLOYMENT_TARGET=6.0 -parallelizeTargets ARCHS=%s -jobs 8 -sdk %s -configuration Release -target ALL_BUILD" % (arch, target.lower()))
|
||||||
os.system("xcodebuild ARCHS=%s -sdk %s -configuration Release -target install install" % (arch, target.lower()))
|
os.system("xcodebuild IPHONEOS_DEPLOYMENT_TARGET=6.0 ARCHS=%s -sdk %s -configuration Release -target install install" % (arch, target.lower()))
|
||||||
os.chdir(currdir)
|
os.chdir(currdir)
|
||||||
|
|
||||||
def put_framework_together(srcroot, dstroot):
|
def put_framework_together(srcroot, dstroot):
|
||||||
@ -96,8 +96,8 @@ def put_framework_together(srcroot, dstroot):
|
|||||||
def build_framework(srcroot, dstroot):
|
def build_framework(srcroot, dstroot):
|
||||||
"main function to do all the work"
|
"main function to do all the work"
|
||||||
|
|
||||||
targets = ["iPhoneOS", "iPhoneOS", "iPhoneSimulator"]
|
targets = ["iPhoneOS", "iPhoneOS", "iPhoneOS", "iPhoneSimulator", "iPhoneSimulator"]
|
||||||
archs = ["armv7", "armv7s", "i386"]
|
archs = ["armv7", "armv7s", "arm64", "i386", "x86_64"]
|
||||||
for i in range(len(targets)):
|
for i in range(len(targets)):
|
||||||
build_opencv(srcroot, os.path.join(dstroot, "build"), targets[i], archs[i])
|
build_opencv(srcroot, os.path.join(dstroot, "build"), targets[i], archs[i])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user