<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br>John Lask, <br>The steps you enumerated below successfully built portaudio for me! Thank you!<br><br>I wonder though, you said to rename the dll to libpa19.dll from portaudio_x86.dll<br>and to change the .cabal entry from "extra-Libraries: portaudio" to "extra-Libraries: pa19".<br>Since my .dll name and .cabal file entry were mismatched, was that what could have been wrong all along? Was the creation of a .a file necessary?<br>I would delete the .a file and retry with libportaudio.dll but I won't push my luck.<br><br>Now if I could just get Gtk2hs working now, I could be happy *and* productive. :)<br><br>--- On <b>Sat, 12/5/09, john lask <i>&lt;jvlask@hotmail.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: john lask &lt;jvlask@hotmail.com&gt;<br>Subject: RE: [Haskell-cafe]
 Low Level Audio - Writing bytes to the sound card?<br>To: daniel.is.fischer@web.de, functionallyharmonious@yahoo.com<br>Cc: haskell-cafe@haskell.org<br>Date: Saturday, December 5, 2009, 9:03 PM<br><br><div id="yiv591630302">

<style><!--
#yiv591630302 .hmmessage P
{
margin:0px;padding:0px;}
#yiv591630302 {
font-size:10pt;font-family:Verdana;}
--></style>
<br><br>I don't know whether this will help you but I just downloaded an built<br>the haskell portaudio package ... (I had a windows msvc build of<br>portaudio dll already) the process I used ... ghc 6.10.4, portaudio-19<br><br>make an import lib for ghc from dll:<br>pexports libpa19.dll &gt; libpa19.def<br>dlltool --input-def libpa19.def --output-lib libpa19.a<br><br>edit the .cabal file or use command line flags<br><br>&nbsp; extra-Libraries: pa19<br>&nbsp; extra-lib-dirs: c:\portaudio19\lib<br>&nbsp; include-dirs:&nbsp;&nbsp; c:\portaudio19\include<br><br>&nbsp;runghc setup configure<br><br>make sure you have cpp i.e. the c-preprocessor on your exe path,<br>otherwise you will get<br>'cpp' is not recognized as an internal or external command,<br>operable program or batch file.<br>c2hs.exe: Error during preprocessing custom header file<br><br>runghc setup build<br><br>builds ok ...??<br><br><br>&gt; From: daniel.is.fischer@web.de<br>&gt; To:
 functionallyharmonious@yahoo.com<br>&gt; Subject: Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?<br>&gt; Date: Sun, 6 Dec 2009 02:34:17 +0100<br>&gt; CC: haskell-cafe@haskell.org<br>&gt; <br>&gt; Am Sonntag 06 Dezember 2009 01:49:49 schrieb M Xyz:<br>&gt; <br>&gt; I just had another idea.<br>&gt; <br>&gt; dafis@linux-mkk1:~&gt; c2hs -o memyself.hs memyself.chs<br>&gt; c2hs: does not exist<br>&gt; <br>&gt; it's not that c2hs isn't found or something, c2hs doesn't find Base.chs!<br>&gt; <br>&gt; Try installing from the unpacked sources (cd portaudio; cabal install) or the old-<br>&gt; fashioned way:<br>&gt; <br>&gt; cd portaudio-0.0.1<br>&gt; <br>&gt; ghc --make Setup<br>&gt; <br>&gt; ./Setup configure --help<br>&gt; (choose your options, prefix, profiling, ...)<br>&gt; <br>&gt; ./Setup configure $OPTIONS<br>&gt; ./Setup build<br>&gt; <br>&gt; if all's well,<br>&gt; <br>&gt; ./Setup haddock<br>&gt; ./Setup install<br>&gt; <br>&gt;
 (dies for me with<br>&gt; dist/build/Sound/PortAudio/Base.chs.h:1:23: error: portaudio.h: Datei oder <br>&gt; Verzeichnisnicht gefunden<br>&gt; c2hs: Error during preprocessing custom header file<br>&gt; cabal: Error: some packages failed to install:<br>&gt; portaudio-0.0.1 failed during the building phase. The exception was:<br>&gt; exit: ExitFailure 1<br>&gt; because I don't have portaudio installed)<br>&gt; _______________________________________________<br>&gt; Haskell-Cafe mailing list<br>&gt; Haskell-Cafe@haskell.org<br>&gt; http://www.haskell.org/mailman/listinfo/haskell-cafe<br>                                               <br><hr>Australia's #1 job site <a rel="nofollow" target="_blank" href="http://clk.atdmt.com/NMN/go/157639755/direct/01/">If It Exists, You'll Find it on SEEK</a> 
</div></blockquote></td></tr></table><br>