[Haskell-cafe] Low Level Audio - Writing bytes to the sound card?

Daniel Fischer daniel.is.fischer at web.de
Sat Dec 5 19:24:17 EST 2009

Am Sonntag 06 Dezember 2009 00:47:38 schrieb M Xyz:
> Daniel, Thank you for your thoughtful reply. I didn't know about those
> flags. The log is fairly long, and as I'm new to Haskell and Cabal it is
> mostly meaningless to me. I see very many incidences of "searching for ___
> in path. Cannot find ___ on the path" so maybe this is all as simple as me
> not setting my environment correctly.

If you have cpphs, hugs, jhc, greencard etc., it is probably something about your 
environment. If you don't have them, it's clear that they aren't found.

On the other hand, that doesn't explain

Using c2hs version 0.16.0 given by user at: C:\Program

-- so it finds c2hs, and can apparently run c2hs --version

("C:\\Program Files\\Haskell\\bin\\c2hs.exe",["--include=dist\\build","--cppopts=-
c2hs.exe: does not exist
C:\Program Files\Haskell\bin\c2hs.exe returned ExitFailure 1

-- bang

To ascertain whether c2hs works at all, can you try to run it manually?

(cd to an appropriate directory,

cabal unpack portaudio

cd portaudio (or whatever, so that Base.chs is found via .\Sound\PortAudio\Base.chs

md dist\build

c2hs.exe  --include=dist\build --cppopts=-D__GLASGOW_HASKELL__=610 --cppopts=-IC:
\A\install\programming\portaudio\portaudio\include --output-dir=dist\build --
output=Sound\PortAudio\Base.hs .\Sound\PortAudio\Base.chs
If that works, the problem is somewhere in cabal, otherwise in c2hs, either way, we'll 
know more.

More information about the Haskell-Cafe mailing list