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

How to run examples? #1

Open
react-native-engineer opened this issue Dec 6, 2018 · 2 comments
Open

How to run examples? #1

react-native-engineer opened this issue Dec 6, 2018 · 2 comments

Comments

@react-native-engineer
Copy link
Collaborator

When I run "yarn", I faced following error.

npm ERR! code E404
npm ERR! 404 Not Found: [email protected]

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jacky/.npm/_logs/2018-12-06T14_41_53_892Z-debug.log

so I removed yarn.lock, package-lock.json

and open the CvCameraPreview.xcworkspace file on xcode.
and then run "pod install" in ios folder.
I got this error

[!] CocoaPods could not find compatible versions for pod "RNOpencv3/CvCamera":
  In snapshot (Podfile.lock):
    RNOpencv3/CvCamera (from `../node_modules/react-native-opencv3/ios/RNOpencv3.podspec`)

  In Podfile:
    RNOpencv3/CvCamera (from `../node_modules/react-native-opencv3/ios/RNOpencv3.podspec`)

None of your spec sources contain a spec satisfying the dependency: `RNOpencv3/CvCamera (from `../node_modules/react-native-opencv3/ios/RNOpencv3.podspec`)`.

You have either:
 * out-of-date source repos which you can update with `pod repo update` or with `pod install --repo-update`.
 * mistyped the name or version.
 * not added the source repo that hosts the Podspec to your Podfile.

Note: as of CocoaPods 1.0, `pod repo update` does not happen on `pod install` by default.

please help me to run your example
Thank you.

@adamgf
Copy link
Owner

adamgf commented Dec 6, 2018

Hi Jacky,
I am super excited people are actually starting to use this but the examples aren't quite ready for prime time yet. I am still trying to get it to a point where there is enough functionality that people can actually start using it but the tests are out of sync with the library right now. I am still finishing up on the face detection stuff that should be ready pretty soon but I still need to start adding some effects you know other than just grayscale. This is going to be super cool I will let you know once it gets to a useable state and how to run the examples. Unless you want to start contributing? I am going to need help with this opencv is huge.
Best regards,
Adam

@adamgf
Copy link
Owner

adamgf commented Dec 6, 2018

You have to run npm install before installing from the pod file but it probably won't work I do believe the latest version is checked into github so you might have to clone react-native-opencv3 into node_modules until I update the npm package. I don't want to constantly update it so I am waiting until it is at a good release point.

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

2 participants