Game-as-a-Service / Machi-Koro-Cpp

4 stars 1 forks source link

[CMake] Fix the libraries linking problems. #36

Closed HuaYuan-Tseng closed 6 months ago

HuaYuan-Tseng commented 6 months ago

After the build and running e2e test will encounter the following issues:

image

All Linking Libraries and their order have been confirmed, but the issue still persists.

HuaYuan-Tseng commented 6 months ago

We have do some experiments, it can refer the Meeting Notes: 2024.03.20(二) (解CMake bug)

HuaYuan-Tseng commented 6 months ago

After modify the CMakeLists.txt, now it can run successfully.

e2e_test: image

unit_test: image

app:

image

.

image
HuaYuan-Tseng commented 6 months ago

[!WARNING]
Because we're currently build as a shared library, the Drogon also need to build as a shared library.
Referenced: https://github.com/Game-as-a-Service/Machi-Koro-Cpp/pull/37#issuecomment-2018411871