On Sun, 3 Jul 2016, chrys87 wrote:

this is because brltty doesnt respect the installation path of arch
if you do a
sudo ln -s /usr/include/speech-dispatcher /usr/include/speech-dispatcher/include
before compiling it it will work

it would be cool if that path (/usr/include/speech-dispatcher
) would been respected by brltty by default because there are many arch based distors out there.

This isn't only affecting arch. OpenSUSE has been applying the attached patch for a while, though it isn't really the right fix to go upstream.

Do we want to use configure to locate speech-dispatcher? I think that Luke may have sent a patch to do this a while ago, or at least suggested doing it, but there was concern about compatibility with older versions of speech-dispatcher.

-Mike
From: Jan Engelhardt <jeng...@inai.de>
Date: 2013-06-18 11:27:55.105668872 +0200

speech-dispatcher-0.8 moved speechd.h from /usr/include
to /usr/include/speech-dispatcher.

This patch is not really for upstream; the proper way to
use speech-dispatcher is by way of pkg-config. This here is
just a quick way to get it building in openSUSE again.

---
 Drivers/Speech/SpeechDispatcher/speech.c |    2 +-
 configure                                |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Index: brltty-4.3/Drivers/Speech/SpeechDispatcher/speech.c
===================================================================
--- brltty-4.3.orig/Drivers/Speech/SpeechDispatcher/speech.c
+++ brltty-4.3/Drivers/Speech/SpeechDispatcher/speech.c
@@ -34,7 +34,7 @@ typedef enum {
 
 #include "spk_driver.h"
 
-#include <libspeechd.h>
+#include <speech-dispatcher/libspeechd.h>
 
 static SPDConnection *connectionHandle = NULL;
 static const char *moduleName;
diff --git a/configure.ac b/configure.ac
index bc14d72..a832e78 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1697,7 +1697,7 @@ BRLTTY_ARG_DISABLE(
    BRLTTY_SPEECH_DRIVER([fv], [Festival])
    BRLTTY_SPEECH_DRIVER([gs], [GenericSay])
    BRLTTY_IF_PACKAGE([Mikropuhe], [mikropuhe], [mpwrfile.h], 
[BRLTTY_IF_PTHREADS([BRLTTY_SPEECH_DRIVER([mp], [Mikropuhe], [-L$(MPLINUX_ROOT) 
-lmplinux])])])
-   BRLTTY_IF_PACKAGE([speech-dispatcher], [speechd], [include/libspeechd.h], 
[BRLTTY_SPEECH_DRIVER([sd], [SpeechDispatcher], [-L$(SPEECHD_ROOT)/lib 
-lspeechd])])
+   BRLTTY_IF_PACKAGE([speech-dispatcher], [speechd], 
[include/speech-dispatcher/libspeechd.h], [BRLTTY_SPEECH_DRIVER([sd], 
[SpeechDispatcher], [-L$(SPEECHD_ROOT)/lib -lspeechd])])
    BRLTTY_IF_PACKAGE([Swift], [swift], [include/swift.h], 
[BRLTTY_SPEECH_DRIVER([sw], [Swift], [-L$(SWIFT_ROOT)/lib -lswift -lm])])
    BRLTTY_IF_PACKAGE([Theta], [theta], [include/theta.h], 
[BRLTTY_SPEECH_DRIVER([th], [Theta], [-L$(THETA_ROOT)/lib -ltheta])])
    BRLTTY_IF_PACKAGE([ViaVoice], [viavoice], [include/eci.h], 
[BRLTTY_SPEECH_DRIVER([vv], [ViaVoice], [-L$(VIAVOICE_ROOT)/lib -libmeci50])])
_______________________________________________
This message was sent via the BRLTTY mailing list.
To post a message, send an e-mail to: BRLTTY@mielke.cc
For general information, go to: http://mielke.cc/mailman/listinfo/brltty

Reply via email to