imgui_manual
imgui_manual copied to clipboard
Gitpod Sample - make fail
While I am playing around the Gitpod sample - https://pthom-imguimanual-ddodw9hmo84.ws-us114.gitpod.io/
When I did the first make, I got follow error. Is it something outdated on Gitpod repository?
[ 50%] Building CXX object external/hello_imgui/src/hello_imgui/CMakeFiles/hello_imgui.dir/internal/backend_impls/backend_window_helper/sdl_window_helper.cpp.o
/workspace/imgui_manual/external/hello_imgui/src/hello_imgui/internal/backend_impls/backend_window_helper/sdl_window_helper.cpp:94:29: error: use of undeclared identifier 'SDL_WINDOW_METAL'; did you mean 'SDL_WINDOW_OPENGL'?
window_flags |= SDL_WINDOW_METAL;
^~~~~~~~~~~~~~~~
SDL_WINDOW_OPENGL
/home/gitpod/emsdk/upstream/emscripten/cache/sysroot/include/SDL2/SDL_video.h:101:5: note: 'SDL_WINDOW_OPENGL' declared here
SDL_WINDOW_OPENGL = 0x00000002, /**< window usable with OpenGL context */
^
/workspace/imgui_manual/external/hello_imgui/src/hello_imgui/internal/backend_impls/backend_window_helper/sdl_window_helper.cpp:172:36: error: use of undeclared identifier 'SDL_FLASH_UNTIL_FOCUSED'
SDL_FlashWindow(sdlWindow, SDL_FLASH_UNTIL_FOCUSED);
^
2 errors generated.
Sorry I do not maintain the gitpod example anymore. I should remove it from the repository.
But you can comment out the lines that fail, it should work. This is due to the fact that the SDL version shipped with emscripten is out of date.
Thanks for the reply. Very much appreciated.