Hi,<div><br></div><div>I have little knowledge about windows in general, but CV package requires that you install</div><div>the opencv c-libraries. You will find them at <a href="http://opencv.willowgarage.com/">http://opencv.willowgarage.com/</a>. Including</div>
<div>a windows distribution.</div><div><br></div><div>However, CV package has not been tried on windows, so there might or might not</div><div>be trouble that way. If you run into that said trouble, write a ticket at </div>
<div><a href="https://github.com/aleator/CV/issues">https://github.com/aleator/CV/issues</a> and I can try to take a look</div><div><br></div><div>Kind regards,</div><div> Ville</div><div><br><br><div class="gmail_quote">
On 17 May 2011 07:34, Antoine Latter <span dir="ltr">&lt;<a href="mailto:aslatter@gmail.com">aslatter@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Mon, May 16, 2011 at 10:47 PM, Gregory Guthrie &lt;<a href="mailto:guthrie@mum.edu">guthrie@mum.edu</a>&gt; wrote:<br>
&gt; Below is the install result. It does claim that &quot;You must install OpenCV (development packages) prior to installing this package.&quot;<br>
&gt; I don&#39;t&#39; see any Haskell /cabal opencv package, so am not sure what this means one has to do.<br>
<br>
</div>The error isn&#39;t referring to a Haskell package - it is saying that it<br>
cannot find the libraries installed on your computer.<br>
<br>
Note the line &quot;Missing C libraries: cv, highgui, cv, highgui&quot;. These<br>
are not referring to Haskell packages - they are referring to libcv<br>
and libhighgui, whatever those are.<br>
<br>
What sort of computer are you using?<br>
<font color="#888888"><br>
Antoine<br>
</font><div><div></div><div class="h5"><br>
&gt;<br>
&gt; I am not familiar enough with the Haskell install and make environment to go hacking into it, I was hoping for a simple cabal install!<br>
&gt;<br>
&gt; Thanks for the note and pointers. I am a bit surprised at the lack of graphics and Image processing libraries. I found several for Unix/Linux only, and their installs on Windows fail.<br>
&gt;<br>
&gt; I also love Linux, but windows is the 93% market share, and our student labs are all windows. I am trying to advocate using FP in more of our undergraduate level courses, and thought this might be a good area; perhaps not.<br>

&gt;<br>
&gt; Are the two packages for Hopencv the two on the hackage page? It looked to me like only one was claimed to be current and mostly complete.<br>
&gt; ---------------------------------------------------<br>
&gt;<br>
&gt; C:\Users\guthrie&gt;cabal install hopencv<br>
&gt; Resolving dependencies...<br>
&gt; Configuring HOpenCV-0.1.2.2...<br>
&gt; Warning: &#39;include-dirs: /usr/include/opencv&#39; directory does not exist.<br>
&gt; Warning: &#39;include-dirs: /usr/include/opencv&#39; directory does not exist.<br>
&gt; cabal: Missing dependencies on foreign libraries:<br>
&gt; * Missing C libraries: cv, highgui, cv, highgui<br>
&gt; This problem can usually be solved by installing the system packages that<br>
&gt; provide these libraries (you may need the &quot;-dev&quot; versions). If the libraries<br>
&gt; are already installed but in a non-standard location then you can use the<br>
&gt; flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.<br>
&gt; cabal: Error: some packages failed to install:<br>
&gt; HOpenCV-0.1.2.2 failed during the configure step. The exception was:<br>
&gt; ExitFailure 1<br>
&gt;<br>
&gt; C:\Users\guthrie&gt;cabal install cv<br>
&gt; Resolving dependencies...<br>
&gt; Configuring unix-2.4.2.0...<br>
&gt; cabal: The package has a &#39;./configure&#39; script. This requires a Unix<br>
&gt; compatibility toolchain such as MinGW+MSYS or Cygwin.<br>
&gt; cabal: Error: some packages failed to install:<br>
&gt; CV-0.3.0.1 depends on unix-2.4.2.0 which failed to install.<br>
&gt; JYU-Utils-0.1.1.1 depends on unix-2.4.2.0 which failed to install.<br>
&gt; unix-2.4.2.0 failed during the configure step. The exception was:<br>
&gt; ExitFailure 1<br>
&gt;<br>
&gt; C:\Users\guthrie&gt;cabal install highgui<br>
&gt; cabal: There is no package named &#39;highgui&#39;.<br>
&gt; You may need to run &#39;cabal update&#39; to get the latest list of available<br>
&gt; packages.<br>
&gt;<br>
&gt; -------------------------------------------<br>
&gt;&gt; -----Original Message-----<br>
&gt;&gt; From: Casey McCann [mailto:<a href="mailto:syntaxglitch@gmail.com">syntaxglitch@gmail.com</a>]<br>
&gt;&gt; Sent: Monday, May 16, 2011 1:18 PM<br>
&gt;&gt; To: Gregory Guthrie<br>
&gt;&gt; Cc: <a href="mailto:haskell-cafe@haskell.org">haskell-cafe@haskell.org</a><br>
&gt;&gt; Subject: Re: [Haskell-cafe] Open CV or alternate image processing library for Haskell on<br>
&gt;&gt; windows?<br>
&gt;&gt;<br>
&gt;&gt; On Mon, May 16, 2011 at 8:37 AM, Gregory Guthrie &lt;<a href="mailto:guthrie@mum.edu">guthrie@mum.edu</a>&gt; wrote:<br>
&gt;&gt; &gt; I wanted to look into using Haskell for an introductory Image Processing class, but the main<br>
&gt;&gt; package used for such things (OpenCV) does not appear to be available for windows systems.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Is there some other good option for image processing in Haskell, or has anyone ported<br>
&gt;&gt; openCV to a windows Leksah environment?<br>
&gt;&gt;<br>
&gt;&gt; Which package are you having difficulty with? OpenCV is a library written in C/C++ and<br>
&gt;&gt; appears to work on Windows, and there looks to be two different packages on Hackage<br>
&gt;&gt; providing bindings to it, neither of which seems to have any issues with Windows. One does<br>
&gt;&gt; rely on the unix package, but my understanding is that Cygwin is sufficient for that--not<br>
&gt;&gt; certain about the details, though. I haven&#39;t used any of these packages or OpenCV itself<br>
&gt;&gt; personally, so there may be further issues I&#39;m not seeing, but I would guess that any<br>
&gt;&gt; difficulty you&#39;ve encountered was a matter of build tools and system configuration, not the<br>
&gt;&gt; libraries themselves.<br>
&gt;&gt;<br>
&gt;&gt; I have found it necessary on multiple occasions to do manual tweaks and jury-rigging when<br>
&gt;&gt; installing FFI bindings from Hackage on Windows, as opposed to the typically seamless<br>
&gt;&gt; process of installing an external library from standard repositories on Ubuntu and then<br>
&gt;&gt; bindings from Hackage. Admittedly this may be due in large part to the horrendous condition<br>
&gt;&gt; of build tools on my Windows system. I believe I have two different GHCs and no less than<br>
&gt;&gt; four copies of GCC in different locations and I&#39;ve given up on making sense of it since I&#39;m<br>
&gt;&gt; rarely on my Windows machine when coding Haskell anyway.<br>
&gt;&gt;<br>
&gt;&gt; Incidentally, have you looked at what functionality the bindings packages offer? Both that I<br>
&gt;&gt; saw on Hackage seem to advertise themselves as emphatically not production-ready code and<br>
&gt;&gt; probably don&#39;t expose all the features of OpenCV. Before you put a lot of time into fixing<br>
&gt;&gt; build problems, you may want to verify that they even provide what you need. As a last<br>
&gt;&gt; resort, writing your own Haskell FFI bindings to a C library is sometimes tedious but not<br>
&gt;&gt; usually difficult, and there are tools to help automate the task.<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m not aware of any other existing packages in Haskell for image processing or computer<br>
&gt;&gt; vision. Depending on what you need, you could write FFI bindings (to OpenCV or something<br>
&gt;&gt; else) or, if you mostly want to work with raw data instead of using algorithms provided by the<br>
&gt;&gt; library, there was actually a question on Stack Overflow recently that may be relevant:<br>
&gt;&gt; <a href="http://stackoverflow.com/questions/6006304" target="_blank">http://stackoverflow.com/questions/6006304</a><br>
&gt;&gt;<br>
&gt;&gt; - C.<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Haskell-Cafe mailing list<br>
&gt; <a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
&gt; <a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
&gt;<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div>