adamgf / react-native-opencv3-tests

Sample react native apps that expose OpenCV functionality on both iOS and Android
Other
19 stars 14 forks source link

How to run examples? #1

Open react-native-engineer opened 5 years ago

react-native-engineer commented 5 years ago

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

npm ERR! code E404
npm ERR! 404 Not Found: har-validator@5.1.2

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 commented 5 years ago

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 commented 5 years ago

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.