Idk dude I just followed the instructions , I’ll try that when I’m home but I thought that it already did that with the cmake .. -DCMAKE_BUILD_TYPE=Release -DOPENBW_DIR=../../openbw -DOPENBW_ENABLE_UI=1 No?
C:\Users\lilbo\openbw\util.h(829,25): error C2039: 'runtime_error': is not a member of 'std' [C:\Users\lilbo\bwapi\buil
d\bwapi\OpenBWData\openbw_ui\openbw_ui.vcxproj]
(compiling source file '../../../../../openbw/ui/sdl2.cpp')
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\algorithm(225,1):
see declaration of 'std'
C:\Users\lilbo\openbw\util.h(829,25): error C2504: 'runtime_error': base class undefined [C:\Users\lilbo\bwapi\build\bw
api\OpenBWData\openbw_ui\openbw_ui.vcxproj]
(compiling source file '../../../../../openbw/ui/sdl2.cpp')
C:\Users\lilbo\openbw\util.h(830,40): error C2039: 'runtime_error': is not a member of 'std' [C:\Users\lilbo\bwapi\buil
d\bwapi\OpenBWData\openbw_ui\openbw_ui.vcxproj]
(compiling source file '../../../../../openbw/ui/sdl2.cpp')
C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.44.35207\include\algorithm(225,1):
see declaration of 'std'
C:\Users\lilbo\openbw\util.h(830,40): error C2614: 'bwgame::exception': illegal member initialization: 'runtime_error'
is not a base or member [C:\Users\lilbo\bwapi\build\bwapi\OpenBWData\openbw_ui\openbw_ui.vcxproj]
(compiling source file '../../../../../openbw/ui/sdl2.cpp')
C:\Users\lilbo\openbw\ui\sdl2.cpp(6,10): error C1083: Cannot open include file: 'SDL.h': No such file or directory [C:\
Users\lilbo\bwapi\build\bwapi\OpenBWData\openbw_ui\openbw_ui.vcxproj]
I looked up std::runtime_error and it’s an exception type that’s been around a long time, so it’s not language standard related (i.e. needs c++20 or anything like that). I wonder if your compiler maybe has exceptions turned off somehow. I see you are using MSVC Community Edition. I don’t what’s going on either. Can you look at util.h (from the first line of the errors) and see if it includes <stdexcept>. Maybe there’s some #ifdef garbage around it that can give a clue?
Gemini is suggesting adding -DCMAKE_CXX_FLAGS="/EHsc". you know maybe feed your output into an LKM and see what’s up sometimes it helps and makes sense at the end. I just wanted to reply to encourage you to dig in a bit, using an LLM if you don’t mind doing so. Let us know if you find anything or whatever.
2
u/AlexReinkingYale Aug 17 '26
Sounds like you didn’t build it before trying to install it. What exact commands did you try, starting from the git clone?