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

"DJISDK/DJISDK.h" not found VideoPreviewer with Swift, CocoaPods #7

Open
guicolares opened this issue May 12, 2016 · 5 comments
Open

Comments

@guicolares
Copy link

guicolares commented May 12, 2016

Hi,

I am trying develop camera feature with Swift, cocoapods and using the import VideoPreviewer but I'm having the error below:

-/Users/guilherme/Documents/xcodeprojects/skydronesCapture/VideoPreviewer/VideoPreviewer/VideoPreviewer.m:13:9: 'DJISDK/DJISDK.h' file not found

But the parent project is works fine the import DJISDK.

Thanks.

@oliverou
Copy link
Contributor

Hi, please make sure the VideoPreviewer folder(Includes the VideoPreviewer.xcodeproj file, not just the .h and .m files) you download is placed in the same Frameworks folder as DJISDK.framework. Follow the Importing the VideoPreviewer section in the tutorial. Hope this helps.

@dwcares
Copy link

dwcares commented May 11, 2017

porting to Swift was a little tricker than i expected, especially with the binary data types/streams for the video previewer.

i built a sample here:
https://github.com/dwcares/iOS-FPVDemo-Swift

feel free to pull it into the samples.

@oliverou
Copy link
Contributor

Hi @dwcares, thanks for the help. You can also check Importing the VideoPreviewer tutorial for help.

@dwcares
Copy link

dwcares commented May 16, 2017

@oliverou thanks! the tutorial is helpful but since it's only objective-c it doesn't help with the tricky bits like getting the Swift3 Data object from ::videoFeed piped to the VideoPreviewer. if you make a new swift repo i will create a PR for a swift version of the sample that i wrote. (https://github.com/dwcares/iOS-FPVDemo-Swift)

#11

@oliverou
Copy link
Contributor

Hi @dwcares , thanks! Please check my reply on this issue. Close this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants