Git Product home page Git Product logo

Comments (14)

rainyl avatar rainyl commented on August 16, 2024 1

All right, please downgrade to v1.0.4 for now and waiting for #78 to be finished.

from opencv_dart.

rainyl avatar rainyl commented on August 16, 2024 1

You are welcome.

It almost finished, could you please test whether it works for you with the following deps:

opencv_dart:
    git:
      url: https://github.com/rainyl/opencv_dart
      ref: 96a936a

Please install the dependencies before running examples if you haven't install them, especially conan:

brew install --force --overwrite ninja ffmpeg@6 conan
brew link --overwrite ffmpeg@6
conan profile detect -f

from opencv_dart.

arozdorozhniuk avatar arozdorozhniuk commented on August 16, 2024 1

It works now!

from opencv_dart.

rainyl avatar rainyl commented on August 16, 2024 1

v1.0.5+1 has been published, I have tested it on macos (x86_64) and ios simulator (x86_64), but not tested on arm64 although the workflow passed, if you are using arm64 devices please test it, if it doesn't work please open a new issue. :)

from opencv_dart.

rainyl avatar rainyl commented on August 16, 2024

Using opencv_dart inside another plugin has not been tested, please provide a minimal example to reproduce it.

from opencv_dart.

arozdorozhniuk avatar arozdorozhniuk commented on August 16, 2024

Using opencv_dart inside another plugin has not been tested, please provide a minimal example to reproduce it.

I've basically created a plugin wih this command:
flutter create --template=plugin --platforms=android,ios some_plugin

And added your plugin as a dependency in main pubspec.yaml like that:

dependencies:
  flutter:
    sdk: flutter
  opencv_dart: ^1.0.5
  plugin_platform_interface: ^2.0.2

Than I run example project inside plugin folder to test it. And Android downloads everything and runs well, but iOS is giving this error for some strange reasons.

I can provide full package but literally done nothing else with it.

from opencv_dart.

rainyl avatar rainyl commented on August 16, 2024

get it. may i ask that you are running on a simulator or real device ?

from opencv_dart.

rainyl avatar rainyl commented on August 16, 2024

@arozdorozhniuk
Confirmed, You can run setup command manually to solve this, refer to README for detailed setup commands.

It's because the incorrect working directory in Makefile of ios, I am considering to compile locally instead of download from releases, please setup manually until it is finished.

from opencv_dart.

arozdorozhniuk avatar arozdorozhniuk commented on August 16, 2024

I've tried calling dart run opencv_dart:setup ios --arch x64 or arm64 for simulator or device accordingly. But it seems that it does nothing.

Example output in terminal:

arozdorozhniuk@NB01ACCO006 example % dart run opencv_dart:setup ios --arch x64  
Building package executable... 
Built opencv_dart:setup.
opencv_dart: working for ios x64
Building with assumed project root in: /Users/arozdorozhniuk/Documents/work/some_plugin/example/
Using package:opencv_dart from /Users/arozdorozhniuk/.pub-cache/hosted/pub.dev/opencv_dart-1.0.5
Downloading https://github.com/rainyl/opencv_dart/releases/download/v1.0.5/libopencv_dart-ios-x64.tar.gz
Cached to /Users/arozdorozhniuk/.pub-cache/hosted/pub.dev/opencv_dart-1.0.5/.dart_tool/.cache/libopencv_dart-ios-x64.tar.gz
Libs already exists in /Users/arozdorozhniuk/.pub-cache/hosted/pub.dev/opencv_dart-1.0.5/ios, Skipping...
Finished

Should I refer to some other setup process in readme?

from opencv_dart.

rainyl avatar rainyl commented on August 16, 2024

/Users/arozdorozhniuk/.pub-cache/hosted/pub.dev/opencv_dart-1.0.5/ios

please take a look at /Users/arozdorozhniuk/.pub-cache/hosted/pub.dev/opencv_dart-1.0.5/ios and see whether opencv_dart.framework is there and ensure the content of opencv_dart.framework is not empty, you can manually delete it and try to re-run the setup commands.

from opencv_dart.

arozdorozhniuk avatar arozdorozhniuk commented on August 16, 2024
Screenshot 2024-06-05 at 10 20 02

It becomes even stranger, because it seems that opencv_dart.framework is not empty..

from opencv_dart.

rainyl avatar rainyl commented on August 16, 2024

Try to delete the directory and re-run setup, and run the example to see whether it works

from opencv_dart.

arozdorozhniuk avatar arozdorozhniuk commented on August 16, 2024

I've tried all of that, and it seems like opencv_dart exists but somehow it is not being found.

Also, i've just reilsed that 1.0.4 version is working and it is becoming even stranger now

from opencv_dart.

arozdorozhniuk avatar arozdorozhniuk commented on August 16, 2024

Thanks a lot, you're really helpful!

from opencv_dart.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.