Skip to content

Windows build failure for aeneas due to unresolved espeak symbols #315

@oabareload

Description

@oabareload

Hello,

I am encountering an issue while trying to install aeneas on Windows as part of the dependencies for the VoiceCraft project. The installation fails with a linking error related to espeak.

I have tried the following steps to resolve this:

Installed espeak-ng for Windows and added its bin directory to the system PATH. This did not resolve the issue, and the error message still referred to espeak.lib.
Installed the original espeak for Windows (version 1.48.04 from SourceForge) and added its command_line directory to the system PATH. The where espeak command now finds the executable.
Attempted to compile espeak from source (version 1.48.04) using CMake, but encountered an error indicating that CMakeLists.txt was missing in the source directory.
I have searched my system for espeak.lib after installing the original espeak but could not find it. Only espeak_sapi.dll was present in the installation directory.
As a test, I copied and renamed espeak-ng.lib to espeak.lib in the espeak-ng installation directory, but this also resulted in a linking error.
The error consistently shows unresolved external symbols related to espeak.

Error Messages:

Here are the error messages I am receiving during the pip install process:

cew_func.obj : error LNK2001: unresolved external symbol espeak_Synth
cew_func.obj : error LNK2001: unresolved external symbol espeak_SetSynthCallback
cew_func.obj : error LNK2001: unresolved external symbol espeak_SetVoiceByProperties
cew_func.obj : error LNK2001: unresolved external symbol espeak_Initialize
cew_func.obj : error LNK2001: unresolved external symbol espeak_Synchronize
cew_func.obj : error LNK2001: unresolved external symbol espeak_Terminate
build\lib.win-amd64-cpython-39\aeneas\cew\cew.cp39-win_amd64.pyd : fatal error LNK1120: 6 unresolved externals
error: Command "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\bin\HostX86\x64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\ProgramData\anaconda3\envs\voicecraft\libs /LIBPATH:C:\ProgramData\anaconda3\envs\voicecraft /LIBPATH:C:\ProgramData\anaconda3\envs\voicecraft\PCbuild\amd64 /LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.43.34808\lib\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.22621.0\ucrt\x64 /LIBPATH:C:\Program Files (x86)\Windows Kits\10\\lib\10.0.22621.0\\um\x64 espeak.lib /EXPORT:PyInit_cew build\temp.win-amd64-cpython-39\Release\aeneas\cew\cew_func.obj build\temp.win-amd64-cpython-39\Release\aeneas\cew\cew_py.obj /OUT:build\lib.win-amd64-cpython-39\aeneas\cew\cew.cp39-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-39\Release\aeneas\cew\cew.cp39-win_amd64.lib" failed with exit status 1120

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for aeneas
Running setup.py clean for aeneas
Failed to build aeneas
ERROR: Failed to build installable wheels for some pyproject.toml based projects (aeneas)

System Information:

Operating System: Windows 11
Python Version: 3.9 (as indicated in the error logs)
Installation Method: Trying to install from gradio_requirements.txt for VoiceCraft. I have also tried installing aeneas==1.7.3 directly with the same result.
I would appreciate any guidance on how to resolve this build issue on Windows. It seems that the espeak library is either missing or not being linked correctly.

Thank you for your time and assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions