Endstone plugin compilation issues (Clang required + STL errors) – need help

U

/u/Known_Visual966

Guest
Hi, I’m trying to compile a C++ plugin for Endstone (Minecraft Bedrock server), specifically this repo:

https://github.com/yuhangle/endstone-tianyan-plugin

I modified the plugin to disable PlayerDropItemEvent because it was causing crashes.

My environment:

Ubuntu 22.04 (Docker)

Tried both clang and g++

Installed build-essential, clang, libstdc++

Problems:

With clang:

fatal error: 'algorithm' file not found

fatal error: 'type_traits' file not found

With g++:

Endstone: Clang is required on Linux.

If I bypass that check, I sometimes get other C++20 related errors (char8_t, <numbers>, etc.)

What I tried:

Switching compilers (clang / g++)

Installing newer toolchains

Editing CMakeLists to remove clang restriction

Rebuilding from scratch multiple times

Goal:

Just compile the plugin without the PlayerDropItemEvent (I don't need that feature).

Question:

What is the correct toolchain/setup to compile Endstone plugins on Linux?

Is Clang + libc++ strictly required, and if so, how do I properly configure it?

Any help would be greatly appreciated 🙏

submitted by /u/Known_Visual966
[link] [comments]

Continue reading...
 
Back
Top