Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build iOS framework with --dynamic --legacy_build arguments. #19887

Open
4 tasks done
utibenkei opened this issue Apr 9, 2021 · 0 comments
Open
4 tasks done

Comments

@utibenkei
Copy link
Contributor

utibenkei commented Apr 9, 2021

System information (version)
  • OpenCV => 4.5.2
  • Operating System / Platform => macOS Catalina 10.15.7
  • Xcode => 12.2
  • cmake => 3.20.0
  • platform => iOS
Detailed description

Failed to build iOS framework with --dynamic --legacy_build arguments.

Steps to reproduce

python opencv/platforms/ios/build_framework.py --contrib opencv_contrib --dynamic --legacy_build ios

Undefined symbols for architecture armv7:
  "_kCVPixelBufferCGImageCompatibilityKey", referenced from:
      -[CvVideoCamera pixelBufferFromCGImage:] in libopencv_world.a(cap_ios_video_camera.o)
  "_OBJC_CLASS_$_CALayer", referenced from:
      objc-class-ref in libopencv_world.a(cap_ios_video_camera.o)
  "_CGAffineTransformMakeRotation", referenced from:
      -[CvVideoCamera adjustLayoutToInterfaceOrientation:] in libopencv_world.a(cap_ios_video_camera.o)
      -[CvVideoCamera layoutPreviewLayer] in libopencv_world.a(cap_ios_video_camera.o)
  "_OBJC_CLASS_$_AVCaptureStillImageOutput", referenced from:
      objc-class-ref in libopencv_world.a(cap_ios_photo_camera.o)

All results are here.
log.txt

However, when the --legacy_build argument was excluded, the iOS framework was successfully built.
python opencv/platforms/ios/build_framework.py --contrib opencv_contrib --dynamic ios

Issue submission checklist
  • I report the issue, it's not a question

  • I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found solution

  • I updated to latest OpenCV version and the issue is still there

  • There is reproducer code and related data files: videos, images, onnx, etc

@utibenkei utibenkei changed the title Failed to build iOS framework with --dynamic --legacy_build parameter. Failed to build iOS framework with --dynamic --legacy_build arguments. Apr 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants