Skip to content

RafaDdS/OpenCVGodot

Repository files navigation

Deprecated!!!

This projecte was fused with godot-gdextension-opencv, I will keep future updates there!

OpenCVGodot

This is a GDExtension to interface godot projects with the OpenCV library. My long term objective is to fully support OpenCV library, but this is still very early stage, feel free to contact me if you want to contribute.

How To Use

The extension is built to Demo/bin for quick testing, after building you may move the extension to your own project bin folder. (In the future we will setup autobuilds so you can download it directly)

Prerequisites

For end user

  • Godot 4.2.2 or later

For development

  • OpenCV 4.2.0 for the c++ language
  • CMake v3.22+
  • C++ Compiler with at least C++17 support (any recent compiler)
  • (optional) ccache for faster rebuilds
  • (optional) clang-format for linting and automatic code formatting (CI uses clang-format version 15)

Build & Install

Here's an example of how to build & install a release version (use the terminal to run the following commands in the parent directory of this repo):

Not MSVC

sh build.bash

Or

cmake -B GDExtensionTemplate-build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX=GDExtensionTemplate-install GDExtensionTemplate
cmake --build GDExtensionTemplate-build --parallel
cmake --install GDExtensionTemplate-build

MSVC

cmake -B GDExtensionTemplate-build -G"Visual Studio 17 2022"  -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=GDExtensionTemplate-install GDExtensionTemplate
cmake --build GDExtensionTemplate-build --config Release
cmake --install GDExtensionTemplate-build

Be sure to switch between Debug and realease flags acording to your current needs.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published