Giter Club home page Giter Club logo

Comments (4)

x41lex avatar x41lex commented on September 26, 2024 1

Building with "-DWITH_OBSENSOR=OFF" as suggested here fixed this issue for me.

from gocv.

stedwick avatar stedwick commented on September 26, 2024

I also cannot get it installed on Windows 11. It cannot find the header files, even though they are right there?

PS C:\Users\phili\SourceCode\goopencv> set CGO_CPPFLAGS="-IC:/Users/phili/SourceCode/opencv/build/include"
PS C:\Users\phili\SourceCode\goopencv> go run -tags customenv "C:\Users\phili\go\pkg\mod\gocv.io\x\[email protected]\cmd\version\main.go"
# gocv.io/x/gocv
In file included from aruco.cpp:1:0:
aruco.h:5:10: fatal error: opencv2/opencv.hpp: No such file or directory
 #include <opencv2/opencv.hpp>
          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.

PS C:\Users\phili\SourceCode\goopencv> dir C:\Users\phili\SourceCode\opencv\build\include\opencv2\opencv.hpp

    Directory: C:\Users\phili\SourceCode\opencv\build\include\opencv2

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
-a----         9/27/2023   9:54 AM           3558 opencv.hpp

PS C:\Users\phili\SourceCode\goopencv>

from gocv.

stedwick avatar stedwick commented on September 26, 2024

I tried installing it in MSYS2 and got a different error:

phili@PhilBook3 UCRT64 ~/gocv
$ go run "C:\msys64\ucrt64\lib\go\pkg\mod\gocv.io\x\[email protected]\cmd\version\main.go"

# gocv.io/x/gocv
C:\Users\phili\go\pkg\mod\gocv.io\x\[email protected]\calib3d_string.go:3:9: undefined: CalibFlag
C:\Users\phili\go\pkg\mod\gocv.io\x\[email protected]\calib3d_string.go:29:9: undefined: CalibCBFlag
C:\Users\phili\go\pkg\mod\gocv.io\x\[email protected]\core_string.go:3:9: undefined: MatType
...
C:\Users\phili\go\pkg\mod\gocv.io\x\[email protected]\core_string.go:159:9: too many errors

from gocv.

ajmandourah avatar ajmandourah commented on September 26, 2024

I also cannot get it installed on Windows 11. It cannot find the header files, even though they are right there?

PS C:\Users\phili\SourceCode\goopencv> set CGO_CPPFLAGS="-IC:/Users/phili/SourceCode/opencv/build/include"

maybe use "\" instead of "/"

from gocv.

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.