Open nebuta opened 11 years ago
Hi,
Sorry for not noticing this report earlier. Can you try installing with cabal flag -fopencv24? Also, what is your opencv library version?
Thanks for the reply! I could get it installed with cabal install cv -fopencv24
OpenCV version is 2.4.5.
Hi, I'm also having trouble building cv with opencv 2.4.5 on OS X 10.8.4.
Doing cabal install cv -fopencv24
(using the latest haskell platform, GHC 7.4.2) I get
Resolving dependencies...
Configuring CV-0.3.7...
Building CV-0.3.7...
Preprocessing library CV-0.3.7...
Types.hsc: In function 'main':
Types.hsc:59: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:59: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:59: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:59: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:59: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:59: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:75: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:75: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:75: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:75: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:75: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:75: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:107: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:107: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:107: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:107: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:107: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:107: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:124: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:124: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:124: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:124: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:124: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:124: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:152: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:152: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:152: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:152: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:152: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:152: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:161: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:161: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:161: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:161: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:161: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:161: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:172: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:172: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:172: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:172: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:172: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:172: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:177: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:177: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:177: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:177: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:177: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:177: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:187: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:187: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:187: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:187: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:187: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:187: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:209: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:209: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:209: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:209: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:209: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:209: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:243: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:243: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:243: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:243: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:243: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:243: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:254: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:254: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:254: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:254: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:254: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:254: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:260: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:260: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:260: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:260: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:260: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:260: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:327: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:327: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:327: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:327: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:327: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:327: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:335: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:335: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:335: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:335: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:335: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
Types.hsc:335: warning: format '%ju' expects type 'uintmax_t', but argument 2 has type 'int'
c2hs: C header contains errors:
dist/build/CV/Transforms.chs.h:17: (column 14) [ERROR] >>> Unknown identifier!
Cannot find a definition for `CV_DIST_LABEL_CCOMP' in the header file.
Failed to install CV-0.3.7
cabal: Error: some packages failed to install:
CV-0.3.7 failed during the building phase. The exception was:
ExitFailure 1
Any suggestions?
@mvarela I don't know why 0.4 hasn't hit hackage yet, but it fixes some compilation issues for me.
This library looks nice, and I tried to install CV-0.3.7 from cabal, but CV/Transforms.chs caused a compile error. I specified --extra-include-dirs=/usr/local/include, there was no problem with include files. My environment is Mac OSX 10.8.4. Below is the log.