You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Build fails with errors saying "This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers. Please regenerate this file with a newer version of protoc."
To Reproduce
Steps to reproduce the behavior, for example:
Generate CMake configuration with "cmake -B build -DWSL2_CROSS_COMPILE=ON"
Compile project with "cmake --build build -j"
Observe numerous errors similar to:
/mnt/c/Users/hocke/OneDrive/Documents/blank_bot/build/_deps/cpp_sc2-build/generated/s2clientprotocol/debug.pb.h:17:2: error: #error This file was generated by an older version of protoc which is
17 | #error This file was generated by an older version of protoc which is
| ^~~~~
/mnt/c/Users/hocke/OneDrive/Documents/blank_bot/build/_deps/cpp_sc2-build/generated/s2clientprotocol/debug.pb.h:18:2: error: #error incompatible with your Protocol Buffer headers. Please
18 | #error incompatible with your Protocol Buffer headers. Please
| ^~~~~
/mnt/c/Users/hocke/OneDrive/Documents/blank_bot/build/_deps/cpp_sc2-build/generated/s2clientprotocol/debug.pb.h:19:2: error: #error regenerate this file with a newer version of protoc.
19 | #error regenerate this file with a newer version of protoc.
| ^~~~~
Expected behavior
The build should finish without errors.
Desktop (multiple version means multiple attempts with different version):
OS / Distros: Ubuntu 20.04.6/22.04.3
cpp-sc2 Version: 1.4.1
StarCraft II version 5.0.12
GNU Make versions: 4.2.1/4.3
CMake version: 3.16.3/3.22.1
gcc/g++ version: 9.4.0/11.4.0
protoc versions: None/3.12.4/3.23.4/3.23.1
Additional context
Tried with different combinations of the flags -DBUILD_FOR_LADDER=ON -DSC2_VERSION=5.0.12 -DSC2_VERSION=4.10.0 but no difference.
Also tried with Ubuntu 24.04 but the package "mingw-w64-x86-64-dev" does not exist for that version of Ubuntu so I could not progress past step 2.4
Also tried building this repo instead of the blank_bot repo with the same steps but encountered the same issue.
The text was updated successfully, but these errors were encountered:
Describe the bug
Build fails with errors saying "This file was generated by an older version of protoc which is incompatible with your Protocol Buffer headers. Please regenerate this file with a newer version of protoc."
To Reproduce
Steps to reproduce the behavior, for example:
Expected behavior
The build should finish without errors.
Desktop (multiple version means multiple attempts with different version):
Additional context
Tried with different combinations of the flags -DBUILD_FOR_LADDER=ON -DSC2_VERSION=5.0.12 -DSC2_VERSION=4.10.0 but no difference.
Also tried with Ubuntu 24.04 but the package "mingw-w64-x86-64-dev" does not exist for that version of Ubuntu so I could not progress past step 2.4
Also tried building this repo instead of the blank_bot repo with the same steps but encountered the same issue.
The text was updated successfully, but these errors were encountered: