Code: Select all
mkdir build
cd build
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -D CMAKE_C_COMPILER=gcc -D CMAKE_CXX_COMPILER=g++ -S .. -B . -DBUILD_SHARED_LIBS=YES -DHAVE_PTHREAD=yes
cmake --build .
cmake --install . --prefix /mingw64
Code: Select all
cmake --install .I ran Oolite and it appeared to work, offering the choice of many different voices eg. Afrikaans. However, no words were actually spoken. I checked and then realised it needs a dependency pcaudiolib for audio output.
I tried to build pcaudiolib. The xaudio2 build didn't seem to work probably because it assumes the Visual Studio compiler. There's also a ticket about Windows support. I needed a sound server so I tried pulseaudio support. MSYS2 has a pulseaudio mingw64 package which installed ok. With some modifications, I could get pcaudiolib to build and use it:
Code: Select all
./autogen.sh
./configure --prefix=/mingw64
sed -i.bak -e "s/\(allow_undefined=\)yes/\1no/" libtool
make LIBTOOLFLAGS=-v -j16
Code: Select all
W: [(null)] ../pulseaudio-17.0/src/pulsecore/core-util.c: Secure directory creation not supported on this platform.
E: [(null)] ../pulseaudio-17.0/src/modules/module-protocol-stub.c: Failed to remove stale UNIX socket 'C:\msys64\home\mcara\.config\pulse\Holly-runtime\native': No such file or directory
E: [(null)] ../pulseaudio-17.0/src/pulsecore/module.c: Failed to load module "module-native-protocol-unix" (argument: ""): initialization failed.
W: [(null)] ../pulseaudio-17.0/src/pulsecore/cli-command.c: stat('C:\msys64\mingw64\etc\pulse\/default.pa.d'): No such file or directory
W: [(null)] ../pulseaudio-17.0/src/pulsecore/core-util.c: Secure directory creation not supported on this platform.

