4

I want to implement FFmpeg functionality in iOS which can hide/show images at sepcific frames. I was able to built ffmpeg library and compile in Xcode as Objective-C project but not in Swift. The error in Swift is “‘d3d11.h’ file not found” from file d3d11va.h.

The file was build from here kewlbear/FFmpeg-iOS-build-script

Karthik Menon
  • 71
  • 1
  • 4
  • Header-bridge Objective-C files into a Swift project. – El Tomato Jun 06 '16 at 12:50
  • Hey, Got it running. But, I had another issue. After some tweaks like modifying Architecture(Removing arm64) and other changes, I had an error **Duplicate symbol _main** from 2 files - one of ffmpeg and other on AppDelegate.swift. By removing AppDelegate from **Compile Sources**, the project compiled successfully. Isn't that wrong? – Karthik Menon Jun 06 '16 at 14:17
  • Got that too. It was due to main methods in AppDelegate.swift(internally) and in ffmpeg.c file.I just renamed main method of ffmpeg.c and included in ffmpeg.h file. – Karthik Menon Jun 07 '16 at 11:54

1 Answers1

0

There is a great quick start guide in this answer: https://stackoverflow.com/a/72673294/921573

Summary:

de.
  • 7,068
  • 3
  • 40
  • 69