Hey JGR! So my compiling adventures continue! On Mac OS, I switched to cmake, and all went well. The only thing is that the generated bundle by cpack simply does not start. I will be doing some troubleshooting there, and OpenTTD starts fine with ./openttd from CLI.
On Windows, in Visual Studio when I try to compile from master branch, all is fine. When I checkout the current version (0.37.0), I get errors while compiling. No problem, I can always download your windows binaries, but I like to fiddle with compiling OpenTTD myself. Maybe you have some insights on why this won't work?
Code: Select all
Error C2079 'road_count' uses undefined class 'std::array<uint,63>' D:\jgrpp\out\build\x64-Debug\jgrpp D:\jgrpp\src\road_gui.cpp 1293
Error C2079 'tram_count' uses undefined class 'std::array<uint,63>' D:\jgrpp\out\build\x64-Debug\jgrpp D:\jgrpp\src\road_gui.cpp 1294
Error C2677 binary '[': no global operator found which takes type 'RoadType' (or there is no acceptable conversion) D:\jgrpp\out\build\x64-Debug\jgrpp D:\jgrpp\src\road_gui.cpp 1299
Error C2677 binary '[': no global operator found which takes type 'RoadType' (or there is no acceptable conversion) D:\jgrpp\out\build\x64-Debug\jgrpp D:\jgrpp\src\road_gui.cpp 1301
Error C2676 binary '[': 'const std::array<uint,63>' does not define this operator or a conversion to a type acceptable to the predefined operator D:\jgrpp\out\build\x64-Debug\jgrpp D:\jgrpp\src\road_gui.cpp 1308
Error C2676 binary '[': 'const std::array<uint,63>' does not define this operator or a conversion to a type acceptable to the predefined operator D:\jgrpp\out\build\x64-Debug\jgrpp D:\jgrpp\src\road_gui.cpp 1310
Error C2664 'void SetDefaultRoadGui::<lambda_ec3d88c45bc534e793d9b33b010b6109>::operator ()(RoadTramType,RoadType &,const std::array<uint,63> &) const': cannot convert argument 3 from 'int' to 'const std::array<uint,63> &' D:\jgrpp\out\build\x64-Debug\jgrpp D:\jgrpp\src\road_gui.cpp 1315
Error C2664 'void SetDefaultRoadGui::<lambda_ec3d88c45bc534e793d9b33b010b6109>::operator ()(RoadTramType,RoadType &,const std::array<uint,63> &) const': cannot convert argument 3 from 'int' to 'const std::array<uint,63> &' D:\jgrpp\out\build\x64-Debug\jgrpp D:\jgrpp\src\road_gui.cpp 1316
Thanks again for all the work you've done and keeping the game alive!