在Haskell中为OpenCV 2.4构建OpenCV绑定

时间:2015-12-20 11:54:50

标签: opencv haskell

我尝试通过cabal(cv)安装cabal install cv库。 但它给我带来了一个错误:

Configuring CV-0.3.7...
Building CV-0.3.7...
Preprocessing library CV-0.3.7...
c2hs: C header contains errors:

dist/build/CV/Video.chs.h:22: (column 39) [ERROR]  >>> Unknown identifier!
  Cannot find a definition for `CV_CAP_PROP_WHITE_BALANCE_BLUE_U' in the header file.

cabal: Error: some packages failed to install:
CV-0.3.7 failed during the building phase. The exception was:
ExitFailure 1

我已经读过它的问题是,我的安装opencv比haskell-library需要的更新。

我的opencv

local/opencv 2.4.12.2-2
    Open Source Computer Vision Library

那么我该如何解决这个错误呢?谢谢你的帮助!

0 个答案:

没有答案