foxtacles / vaultmp

Multiplayer mod for the PC version of Fallout 3
http://www.vaultmp.com/
Other
129 stars 47 forks source link

CMake and newer compiler versions support #146

Closed BlackPhrase closed 6 years ago

BlackPhrase commented 7 years ago

Tried to build the project with MinGW-w64 7.1.0

My CMakeLists are still WIP but so far I was able to build the vaultmpdll and vaultscript I didn't try to build source/lib submodules yet vaultmaster is compilable but fails at linking stage for now vaultserver is broken (+ boost::any was replaced with std::any and this module now requires C++17) vaultmp.exe fails to compile Game.cpp because of substitution failure using GameFactory::Get methods Mostly it fails because of the next line: https://github.com/VaultTecWorkshop/vaultmp-vtw/blob/cmake-support/source/GameFactory.hpp#L205 (UPD: it fails at GameFactory's Get and Operate methods)

This is the only broken file + stack.cpp has some weird situation - it couldn't find bfd.h which is located in "mingw/include" folder (fixed with temporary(?) hack): https://github.com/VaultTecWorkshop/vaultmp-vtw/blob/cmake-support/source/CMakeLists.txt#L51

Without the Game.cpp compilation vaultmpd.exe fails at linking