<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><jvlask@hotmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: john lask <jvlask@hotmail.com><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 > 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> extra-Libraries: pa19<br> extra-lib-dirs: c:\portaudio19\lib<br> include-dirs: c:\portaudio19\include<br><br> 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>> From: daniel.is.fischer@web.de<br>> To:
functionallyharmonious@yahoo.com<br>> Subject: Re: [Haskell-cafe] Low Level Audio - Writing bytes to the sound card?<br>> Date: Sun, 6 Dec 2009 02:34:17 +0100<br>> CC: haskell-cafe@haskell.org<br>> <br>> Am Sonntag 06 Dezember 2009 01:49:49 schrieb M Xyz:<br>> <br>> I just had another idea.<br>> <br>> dafis@linux-mkk1:~> c2hs -o memyself.hs memyself.chs<br>> c2hs: does not exist<br>> <br>> it's not that c2hs isn't found or something, c2hs doesn't find Base.chs!<br>> <br>> Try installing from the unpacked sources (cd portaudio; cabal install) or the old-<br>> fashioned way:<br>> <br>> cd portaudio-0.0.1<br>> <br>> ghc --make Setup<br>> <br>> ./Setup configure --help<br>> (choose your options, prefix, profiling, ...)<br>> <br>> ./Setup configure $OPTIONS<br>> ./Setup build<br>> <br>> if all's well,<br>> <br>> ./Setup haddock<br>> ./Setup install<br>> <br>>
(dies for me with<br>> dist/build/Sound/PortAudio/Base.chs.h:1:23: error: portaudio.h: Datei oder <br>> Verzeichnisnicht gefunden<br>> c2hs: Error during preprocessing custom header file<br>> cabal: Error: some packages failed to install:<br>> portaudio-0.0.1 failed during the building phase. The exception was:<br>> exit: ExitFailure 1<br>> because I don't have portaudio installed)<br>> _______________________________________________<br>> Haskell-Cafe mailing list<br>> Haskell-Cafe@haskell.org<br>> 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>