Installation and Build #
MMDAgent-EX runs on Windows, macOS, and Linux. It also works on WSL2 under Windows.
The following environments have been tested for build and execution:
- Windows: Windows 11 with Visual Studio 2022 (win32 / x64)
- macOS: M2 MacBook Air / macOS Ventura / Sonoma / Sequoia, Intel Mac / macOS Sonoma
- Linux: Ubuntu-22.04, Ubuntu-20.04
- Linux on WSL: Ubuntu-22.04, 24.04 on WSL2 on Windows
Windows #
Download from the Release page of the MMDAgent-EX repository. Get MMDAgent-EX-x64-vx.x.zip
from the latest release (or Win32 if you prefer) and extract all to a folder.
On Windows, attempting to run
.exe
or.dll
files inside a ZIP archive downloaded from the Internet may result in them being “blocked” by Windows security features.
This is part of antivirus protection and is not an error.If you cannot run the program #
Right-click the downloaded ZIP file, select “Properties,” and look for a message near the bottom such as:
“This file came from another computer and might be blocked to help protect this computer.”
There will be a [Unblock] checkbox (or “Allow” button). Check it, click OK, and then extract the ZIP file.
Make sure the unpacked files look like this:
(top)/
├── MMDAgent-EX.exe
├── MMDAgent-EX.mdf
├── AppData/
├── DLLs64/ (or Dlls/ on win32)
└── Plugins/
├── Plugin_AnyScript.dll
├── Plugin_Audio.dll
├── Plugin_Flite_plus_hts_engine.dll
├── Plugin_Julius.dll
├── Plugin_Kafka.dll
├── Plugin_LookAt.dll
├── Plugin_Network.dll
├── Plugin_Open_JTalk.dll
├── Plugin_RabbitMQ.dll
├── Plugin_Remote.dll
├── Plugin_TextArea.dll
├── Plugin_Variables.dll
└── Plugin_VIManager.dll
Then Test if it works. Double-click the MMDAgent-EX.exe
and see a window opens. If you see some window, it means it works well, so close the window and go on.
If it would not start, just seeing nothing, you may need to install the
Visual C++ 2022 Redistributable Package.
Download and run vc_regist.x64.exe
, then try again.
For the 32-bit version (win32), install the “X86” package (vc_regist_x86.exe
).
If it works, you’re done. Continue to the next steps.
To build from source code, read the following.
Build Instructions #
Getting the Code #
Clone the repository from GitHub:
git clone https://github.com/mmdagent-ex/MMDAgent-EX.git
Build Steps #
macOS #
Install the following packages with brew install
:
- cmake
- poco
- glew
- libjpeg
- jpeg-turbo
- re2
- portaudio
- minizip
- libsndfile
- libsamplerate
- sox
- rabbitmq-c
- libomp
- librdkafka
Build with CMake. The executable and plugins will be generated under the Release/ directory.
cd MMDAgent-EX
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build
Error Case 1: Errors related to libomp
Run the following and retry:
brew link --force libomp
Error Case 2: Errors related to Utf8Proc::Utf8Proc
If the Poco library version is 1.14 or newer, MMDAgent-EX will not work. MMDAgent-EX includes Poco 1.12.4 source archive, which should be used. If this error occurs, follow these steps (lines beginning with # are comments for clarity and should not be entered):
# Uninstall Poco installed via Homebrew
brew uninstall poco
# Install required modules
brew install pcre2
# Extract Poco 1.12.4 source code included under Library_Poco
cd Library_Poco
unzip poco-1.12.4-all.zip
cd poco-1.12.4-all
# Build with cmake and install to /usr/local
mkdir cmake-build
cd cmake-build
cmake .. -DPOCO_UNBUNDLED=ON
make -s -j
sudo make install
# Return and rebuild as usual
cd ../../..
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build
If your brew package prefix is non-standard, define the environment variable HOMEBREW_PREFIX
.
MMDAgent-EX uses this variable if defined, otherwise it uses the result of brew --prefix
.
Linux (Ubuntu, WSL2) #
A list of required packages is in the file requirements-linux.txt
. Install all of them via apt. For example:
cd MMDAgent-EX
sudo apt update
sudo apt install `cat requirements-linux.txt`
Then build with CMake:
cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build
The executable and plugins will be generated under the Release/
directory.
Windows #
You can build with Visual Studio 2022.
When installing Visual Studio 2022, check “Desktop development with C++” and install MSVC v143 and the Windows 11 SDK (confirmed with 10.0.22000.0).
Since version 2.1 (2025.10.1), required DLLs and prebuilt binaries are no longer included in the repository.
To build on Windows, download MMDAgent-EX-deps_win.zip
from the latest release.
Download location:
- Releases - MMDAgent-EX
- Download
MMDAgent-EX-deps_win.zip
in theAssets
.
After download, unpack the .zip file, and copy the contents into the top directory of the repository.
Then follow the build steps:
- Open MMDAgent_vs2022.sln in Visual Studio 2022
- In Solution Explorer, right-click main and set it as the startup project
- Select the platform: x64 or Win32
- Set build configuration to Release
- Run “Build Solution”
If the program exits immediately and does not run, install
the Visual C++ 2022 Redistributable Package. Download and run vc_regist.x64.exe
, then try again.
For the 32-bit version (win32), install the “X86” package (vc_regist_x86.exe
).
Generated Files #
All necessary runtime files are generated under the Release
folder.
The following is an example for Windows. On macOS and Linux, there is no .exe extension, and .dll files become .so.
AppData
contains required runtime data files.
DLLs
and DLLs64
are Windows-only external DLLs required for certain features.
Release/
├── MMDAgent-EX.exe
├── MMDAgent-EX.mdf
├── AppData/
├── DLLs/
├── DLLs64/
└── Plugins/
├── Plugin_AnyScript.dll
├── Plugin_Audio.dll
├── Plugin_Flite_plus_hts_engine.dll
├── Plugin_Julius.dll
├── Plugin_Kafka.dll
├── Plugin_LookAt.dll
├── Plugin_Network.dll
├── Plugin_Open_JTalk.dll
├── Plugin_RabbitMQ.dll
├── Plugin_Remote.dll
├── Plugin_TextArea.dll
├── Plugin_Variables.dll
└── Plugin_VIManager.dll
That completes the build.
Only the files under the Release folder are required to run the program. To run in another location, simply copy the entire Release folder.