Skip to content

Unable to compile due to missing ONNXRuntime and OpenCV headers (Go 1.20.8) #3

@AkshayMahM

Description

@AkshayMahM

Hi,

First of all, thank you for this great project!

I'm currently trying to set up the project but facing some issues during compilation. I’ve followed the instructions, but I'm running into a few errors related to dependencies. I’d really appreciate any guidance on resolving them.

Here’s the error output I'm seeing:

`

github.com/ivansuteja96/go-onnxruntime

In file included from ../../../../.gvm/pkgsets/go1.20.8/global/pkg/mod/github.com/ivansuteja96/go-onnxruntime@v0.0.0-20220724043122-8d5640cbb46b/core.go:5:
./core.h:8:10: fatal error: onnxruntime_c_api.h: No such file or directory
8 | #include <onnxruntime_c_api.h>
| ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.

github.com/jack139/arcface-go/gocvx

In file included from core.cpp:1:
core.h:31:10: fatal error: opencv2/opencv.hpp: No such file or directory
31 | #include <opencv2/opencv.hpp>
| ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
`

Environment:

  • Go version: go1.20.8
  • OS: Linux

My Questions:

  1. Could you please confirm the correct way to install and link the ONNX Runtime C API on Linux?
  2. Similarly, what is the recommended way to install OpenCV so that the project compiles successfully?

I’ve tried resolving it on my own but haven’t had much luck. Any help or pointers would be greatly appreciated!

Thanks in advance for your support 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions