From bfcceaac93082176ddf0c0aa31d6edb7c230d70b Mon Sep 17 00:00:00 2001 From: Adrian Cochrane Date: Sun, 10 Jan 2021 21:49:43 +1300 Subject: [PATCH] Add dependency on CMU Sphinx. --- rhapsode.cabal | 2 ++ src/main.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rhapsode.cabal b/rhapsode.cabal index 92a53d6..1dcf0cf 100644 --- a/rhapsode.cabal +++ b/rhapsode.cabal @@ -78,6 +78,8 @@ executable rhapsode main-is: main.c ghc-options: -no-hs-main -threaded extra-libraries: espeak-ng, sndfile + -- pkgconfig-depends: pocketsphinx, sphinxbase -- FIXME errors out + cc-options: -I/usr/include/sphinxbase -I/usr/include/pocketsphinx -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu/sphinxbase -lpocketsphinx -lsphinxbase -lsphinxad build-depends: base >=4.9 && <=4.12, rhapsode other-modules: Stub hs-source-dirs: src diff --git a/src/main.c b/src/main.c index e9b649f..f670eda 100644 --- a/src/main.c +++ b/src/main.c @@ -10,6 +10,8 @@ #include #include +#include + // #define WITH_SPEECHD // FIXME Doesn't support audio cues, navigation, or even read the full page. #ifdef WITH_SPEECHD #include -- 2.30.2