o
odinpkg.dev
packages / app / opencv-odin-demo

opencv-odin-demo

2bfca4eapp

Building Odin with OpenCV demo.

MIT · updated 2 years ago

Experiment with Odin and OpenCV

Building Odin with OpenCV demo.

Build

Build static or shared library

just static
just shared

Build Odin app

odin build ../opencv-odin-demo -extra-linker-flags:"`pkg-config --libs opencv4` -lstdc++"

Run Odin app

./opencv-odin-demo

References

  1. Binding to C: https://odin-lang.org/news/binding-to-c/
  2. Odin build flags: https://gist.github.com/laytan/8dc137336d57b121c368a8f9ccb20a69
  3. OpenCV bindings
    1. Go: https://github.com/hybridgroup/gocv
    2. Zig: https://github.com/ryoppippi/zigcv