aleator / CV

Haskell wrappers and utilities for OpenCV machine vision library
http://hackage.haskell.org/package/CV
BSD 3-Clause "New" or "Revised" License
51 stars 13 forks source link

can't build due to c error #1

Closed cartazio closed 13 years ago

cartazio commented 13 years ago

I get the error /usr/include/stdlib.h:272: (column 20) [ERROR] >>> Syntax error ! The symbol `^' does not fit here.

when i'm trying to build the cv lib.

I'm on os x 10.6 if thats relevant, on ghc 7.0.3

thanks

aleator commented 13 years ago

Hi, thanks for the report. I am still stuck with 10.5 myself, so I can't really test a fix for this, but I think I know what is wrong: C2HS doesn't understand apples block notation.

Could you try the following and see if helps?

  1. First, check that you have latest c2hs installed.
  2. Compile with cabal install --c2hs-options='--cppopts=-UBLOCKS'

If this works for you, I think I can fix the .cabal file also.

cartazio commented 13 years ago

There must be exactly one binding file (suffix .chs), and optionally one or more header files (suffix .h).

is the error message i got now

-carter

On Tue, May 17, 2011 at 1:51 AM, aleator < reply@reply.github.com>wrote:

Hi, thanks for the report. I am still stuck with 10.5 myself, so I can't really test a fix for this, but I think I know what is wrong: C2HS doesn't understand apples block notation.

Could you try the following and see if helps?

  1. First, check that you have latest c2hs installed.
  2. Compile with cabal install --c2hs-options='--cppopts=-UBLOCKS'

If this works for you, I think I can fix the .cabal file also.

Reply to this email directly or view it on GitHub: https://github.com/aleator/CV/issues/1#comment_1187949

aleator commented 13 years ago

Well, that's weird. However, I made a new version and uploaded it to hackage. This includes a fix that could work for you. Care to test it again?

cartazio commented 13 years ago

it seems to have built, though i've not tested it yet

On Wed, May 18, 2011 at 1:35 AM, aleator < reply@reply.github.com>wrote:

Well, that's weird. However, I made a new version and uploaded it to hackage. This includes a fix that could work for you. Care to test it again?

Reply to this email directly or view it on GitHub: https://github.com/aleator/CV/issues/1#comment_1195118

aleator commented 13 years ago

Great. Thanks for testing the build!

cartazio commented 13 years ago

np, i seem to be doing a lot of that this past few months.

Have to say, haskell is the only language community where folks are consistently amazingly responsive and helpful when I do these bug reports :)

cheers -Carter

On Thu, May 19, 2011 at 12:55 AM, aleator < reply@reply.github.com>wrote:

Great. Thanks for testing the build!

Reply to this email directly or view it on GitHub: https://github.com/aleator/CV/issues/1#comment_1201585

aleator commented 13 years ago

No problem. Keep on reporting bugs and I'll try to fix them :)