10 July, 2025
0 Comments
1 category
Specific Steps to Rename Stockfish to other name Using MinGW64
1. Clone and Prepare the Code
git clone https://github.com/official-stockfish/Stockfish.git<br>cd Stockfish/src
2. Essential Code Modifications
a. uci.cpp
(UCI Identification):
// Find (~line 130):<br>sync_cout << "id name Stockfish " << engine_info() << sync_endl;<br><br>// Change to:<br>sync_cout << "id name other name " << engine_info() << sync_endl;
b. main.cpp
(Startup Message):
// Find (~line 150):<br>cerr << "Stockfish " << engine_info() << endl;<br><br>// Change to:<br>cerr << "other name " << engine_info() << endl;
c. engine_info()
(in uci.cpp
):
// Find (~line 120):<br>ss << "Stockfish " << ...;<br><br>// Change to:<br>ss << "other name " << ...;
d. CMakeLists.txt
(Project Root):
# Find (~line 20):<br>set(exe_name "stockfish")<br><br>// Change to:<br>set(exe_name "other name")
3. Compilation with MinGW64 (Windows)
a. Install Dependencies in MSYS2:
pacman -S --needed mingw-w64-x86_64-gcc mingw-w64-x86_64-cmake mingw-w64-x86_64-toolchain
b. Compile:
cd ..
mkdir build
cd build
cmake -G "MinGW Makefiles" ../src -DCMAKE_BUILD_TYPE=Release
mingw32-make.exe -j4
4. Verify Changes
a. Run the Binary:
./other name.exe
b. Check UCI Output:
uci<br># Should display:<br>id name other name 16.1<br>...
Additional Changes (Optional)
To remove all traces of “Stockfish”:
grep -rl "Stockfish" ../src | xargs sed -i 's/Stockfish/other name/g'
Note: This will change ALL instances of “Stockfish”, including comments. Use with caution.
Troubleshooting Common Issues
cmake
Cannot Find MinGW:
export PATH="/mingw64/bin:$PATH"
- Missing Libraries:
pacman -S mingw-w64-x86_64-gcc-libs
- Static Compilation (Avoid DLLs):
cmake -G "MinGW Makefiles" ../src -DCMAKE_EXE_LINKER_FLAGS="-static" -DCMAKE_BUILD_TYPE=Release
Final Result
- Generated Executable:
build/other name.exe
- Verification:
$ ./other name.exe<br> other name 16.1 by the other name authors<br> uci<br> id name other name 16.1<br> ...
Complete! You now have a fully renamed chess engine compiled with MinGW64.

Jorge Ruiz Centelles
Filólogo y amante de la antropología social africana
Tags: Rename Stockfish
Category: Chess engines