x-plane_plugins icon indicating copy to clipboard operation
x-plane_plugins copied to clipboard

XLinSpeak compilation and installation instructions for Ubuntu 18.04 64-bit

Open killerkalamari opened this issue 6 years ago • 5 comments

1. Problems compiling 32-bit version on 64-bit:

gcc -g -shared -fvisibility=hidden -fPIC -o lin32.xpl \
    -Wall -Wextra -m32 \
            -I SDK/CHeaders/XPLM xpl.c hook.c hook.h sec.c sec.h len.c len.h utils.c utils.h hook_asm32.o -L. -lspeechd
In file included from xpl.c:6:0:
/usr/include/stdio.h:27:10: fatal error: bits/libc-header-start.h: No such file or directory
 #include <bits/libc-header-start.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Solution: Could install gcc-multilib, 32-bit libraries, etc. But the easy fix is to skip compilation of the 32-bit version. make lin64.xpl

2. Missing XPLM headers:

nasm -f elf64 -o hook_asm64.o hook_asm64.asm
gcc -g -shared -fvisibility=hidden -fPIC -o lin64.xpl \
    -Wall -Wextra \
            -I SDK/CHeaders/XPLM xpl.c hook.c hook.h sec.c sec.h len64.c len.h utils.c utils.h hook_asm64.o -lspeechd
xpl.c:8:10: fatal error: XPLMDefs.h: No such file or directory
 #include <XPLMDefs.h>
          ^~~~~~~~~~~~
compilation terminated.
utils.c:11:10: fatal error: XPLMUtilities.h: No such file or directory
 #include "XPLMUtilities.h"
          ^~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:11: recipe for target 'lin64.xpl' failed
make: *** [lin64.xpl] Error 1

Solution: Download X-Plane SDK 3.0.1 from https://developer.x-plane.com/sdk/plugin-sdk-downloads/ and extract the SDK folder into the XLinSpeak directory.

3. Installation:

PLUGINS_DIR="X-Plane 11/Resources/plugins" # Adjust as needed
mkdir -p "$PLUGINS_DIR/XLinSpeak/64"
cp lin64.xpl "$PLUGINS_DIR/XLinSpeak/64/lin.xpl" # NOTE: File is RENAMED to lin.xpl

killerkalamari avatar Jan 02 '19 07:01 killerkalamari

Thank you! I ran into the exact same issues last night, will try compiling the 64 bit plugin soon.

Will this plugin enable speech output with the 124thATC plugin as well?

Thanks, Uwe

hoover67 avatar Mar 06 '19 08:03 hoover67

I followed the install instructions, the plugin compiled fine, I created the directory and copied the plugin there, however it's not listed in my X-plane plugin list. Sadly there is no documentation on installation, any ideas what could be the issue here? Do I need to have some form of "speechd" running for this to work?

Thanks!

Uwe

hoover@feynman:/src/x-plane_plugins/XLinSpeak$ make lin64.xpl nasm -f elf64 -o hook_asm64.o hook_asm64.asm gcc -g -shared -fvisibility=hidden -fPIC -o lin64.xpl
-Wall -Wextra
-I SDK/CHeaders/XPLM xpl.c hook.c hook.h sec.c sec.h len64.c len.h utils.c utils.h hook_asm64.o -lspeechd hoover@feynman:/src/x-plane_plugins/XLinSpeak$ mkdir -p /usr/games/xplane11/Resources/plugins/XLinSpeak/64/ hoover@feynman:/src/x-plane_plugins/XLinSpeak$ cp lin64.xpl /usr/games/xplane11/Resources/plugins/XLinSpeak/64/

hoover67 avatar Mar 06 '19 16:03 hoover67

Looks like I'm getting ATC messages with the standard ATC, just not with the

124thATC

plugin. I'll try to contact the developer.

Great work, the voice sounds really nice!

hoover67 avatar Mar 06 '19 17:03 hoover67

@hoover67 I believe the plugin needs to be renamed to lin.xpl not lin64.xpl.

killerkalamari avatar Jul 05 '19 20:07 killerkalamari

THANK YOU EVERYONE!!!! after finding this, and your legwork here... I now have the ATIS (etc) and also the Xchecklist running full speed! For a bit of time, I had to have the 'voice prompt' turned off in xchecklist, to keep it from mangling all the other sounds (at startup, the engine screamed like an un-oiled banshee!).

One thing I DID do, was to go into my software manager, and d/l ALL the speech dispatcher output modules and dependencies (as I wasn't sure which I would need. yes, a bit of overkill, perhaps, but I REALLY wanted the sound output.

THANK YOU ALL AGAIN!!!!

Nitemist avatar Aug 18 '19 23:08 Nitemist