gocv icon indicating copy to clipboard operation
gocv copied to clipboard

Build Failing - had to add flags to the build.

Open krum110487 opened this issue 1 year ago • 2 comments

I was having issues building with the default command.

Description

It was failing due to a couple items.

Steps to Reproduce

go get and try running the command, it fails, but I fixed it by adding the following flags

-DBUILD_ZLIB=OFF -DWITH_OBSENSOR=OFF -DWITH_MSMF=OFF to the cmd line to build it.

Your Environment

  • Operating System and version: Windows
  • OpenCV version used: 4.7.0
  • How did you install OpenCV? using the cmd as direction
  • GoCV version used: 0.32.1
  • Go version: 1.19.4

krum110487 avatar Feb 27 '23 15:02 krum110487

У меня были проблемы со сборкой с помощью команды по умолчанию.

Описание

Это не удалось из-за пары пунктов.

Действия по воспроизведению

иди и попробуй запустить команду, она не работает, но я исправил это, добавив следующие флаги

-DBUILD_ZLIB=OFF -DWITH_OBSENSOR=OFF -DWITH_MSMF=OFF в строку cmd для его сборки.

Ваша среда

  • Операционная система и версия: Windows
  • Используемая версия OpenCV: 4.7.0
  • Как вы установили OpenCV? используя cmd как направление
  • Используемая версия GoCV: 0.32.1
  • Перейти версия: 1.19.4

You mean C:\Users\kiril\go\pkg\mod\gocv.io\x\[email protected]>win_build_opencv.cmd -DBUILD_ZLIB=OFF -DWITH_OBSENSOR=OFF -DWITH_MSMF=OFF ?

kirill011 avatar Mar 15 '23 21:03 kirill011

I made the change inside the cmd itself, but if passing the flags in works! Then yeah same difference.

krum110487 avatar Mar 20 '23 19:03 krum110487