Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile on linux #137

Open
Ilya7enov opened this issue Jul 17, 2024 · 0 comments
Open

Compile on linux #137

Ilya7enov opened this issue Jul 17, 2024 · 0 comments

Comments

@Ilya7enov
Copy link

I just cant compile on linux via cmake, and get this thingy
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/ilya/Downloads/cs2-sdk-2/build
[ 3%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/sdk/src/sdl/sdl.cpp.o
[ 3%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp.o
[ 6%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/api/src/hook/hook.cpp.o
[ 6%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/sdk/src/interfaces/gameresourceservice.cpp.o
[ 7%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/api/src/pointer/pointer.cpp.o
[ 9%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/sdk/src/interfaces/source2client.cpp.o
[ 12%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/sdk/src/interfaces/inputsystem.cpp.o
[ 12%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/sdk/src/interfaces/gameentitysystem.cpp.o
[ 14%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/sdk/src/interfaces/schemasystem.cpp.o
[ 15%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/api/src/module/module.cpp.o
[ 17%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/sdk/src/types/handle.cpp.o
[ 19%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui.cpp.o
[ 20%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_draw.cpp.o
[ 22%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp.o
[ 23%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_tables.cpp.o
[ 25%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_impl_vulkan.cpp.o
[ 26%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_demo.cpp.o
[ 28%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_widgets.cpp.o
In file included from /usr/include/SDL3/SDL.h:81,
from /home/ilya/Downloads/cs2-sdk-2/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp:14:
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp:19:59: error: 'SDL_eventaction_renamed_SDL_EventAction' has not been declared
19 | static int hkPeepEvents(SDL_Event* events, int numevents, SDL_eventaction action, Uint32 minType, Uint32 maxType) {
| ^~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'const char* ImGui_ImplSDL3_GetClipboardText(void*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:93:49: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive]
93 | bd->ClipboardTextData = SDL_GetClipboardText();
| ~~~~~~~~~~~~~~~~~~~~^~
| |
| const char*
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'void ImGui_ImplSDL3_SetPlatformImeData(ImGuiViewport*, ImGuiPlatformImeData*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:111:9: error: 'SDL_SetTextInputRect' was not declared in this scope; did you mean 'SDL_SetTextInputArea'?
111 | SDL_SetTextInputRect(&r);
| ^~~~~~~~~~~~~~~~~~~~
| SDL_SetTextInputArea
In file included from /usr/include/SDL3/SDL.h:81,
from /home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:44:
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'ImGuiKey ImGui_ImplSDL3_KeycodeToImGuiKey(int)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:134:14: error: 'SDLK_QUOTE_renamed_SDLK_APOSTROPHE' was not declared in this scope
134 | case SDLK_QUOTE: return ImGuiKey_Apostrophe;
| ^~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:144:14: error: 'SDLK_BACKQUOTE_renamed_SDLK_GRAVE' was not declared in this scope
144 | case SDLK_BACKQUOTE: return ImGuiKey_GraveAccent;
| ^~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:186:14: error: 'SDLK_a_renamed_SDLK_A' was not declared in this scope
186 | case SDLK_a: return ImGuiKey_A;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:187:14: error: 'SDLK_b_renamed_SDLK_B' was not declared in this scope
187 | case SDLK_b: return ImGuiKey_B;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:188:14: error: 'SDLK_c_renamed_SDLK_C' was not declared in this scope
188 | case SDLK_c: return ImGuiKey_C;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:189:14: error: 'SDLK_d_renamed_SDLK_D' was not declared in this scope
189 | case SDLK_d: return ImGuiKey_D;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:190:14: error: 'SDLK_e_renamed_SDLK_E' was not declared in this scope
190 | case SDLK_e: return ImGuiKey_E;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:191:14: error: 'SDLK_f_renamed_SDLK_F' was not declared in this scope
191 | case SDLK_f: return ImGuiKey_F;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:192:14: error: 'SDLK_g_renamed_SDLK_G' was not declared in this scope
192 | case SDLK_g: return ImGuiKey_G;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:193:14: error: 'SDLK_h_renamed_SDLK_H' was not declared in this scope
193 | case SDLK_h: return ImGuiKey_H;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:194:14: error: 'SDLK_i_renamed_SDLK_I' was not declared in this scope
194 | case SDLK_i: return ImGuiKey_I;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:195:14: error: 'SDLK_j_renamed_SDLK_J' was not declared in this scope
195 | case SDLK_j: return ImGuiKey_J;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:196:14: error: 'SDLK_k_renamed_SDLK_K' was not declared in this scope
196 | case SDLK_k: return ImGuiKey_K;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:197:14: error: 'SDLK_l_renamed_SDLK_L' was not declared in this scope
197 | case SDLK_l: return ImGuiKey_L;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:198:14: error: 'SDLK_m_renamed_SDLK_M' was not declared in this scope
198 | case SDLK_m: return ImGuiKey_M;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:199:14: error: 'SDLK_n_renamed_SDLK_N' was not declared in this scope
199 | case SDLK_n: return ImGuiKey_N;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:200:14: error: 'SDLK_o_renamed_SDLK_O' was not declared in this scope
200 | case SDLK_o: return ImGuiKey_O;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:201:14: error: 'SDLK_p_renamed_SDLK_P' was not declared in this scope
201 | case SDLK_p: return ImGuiKey_P;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:202:14: error: 'SDLK_q_renamed_SDLK_Q' was not declared in this scope
202 | case SDLK_q: return ImGuiKey_Q;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/sdk/src/interfaces/schemasystem.cpp: In member function 'bool CSchemaClassInfo::InheritsFrom(CSchemaClassInfo*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/sdk/src/interfaces/schemasystem.cpp:35:12: warning: 'nonnull' argument 'this' compared to NULL [-Wnonnull-compare]
35 | } else if (!this || !m_BaseClasses || !classToInherit) {
| ^~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:203:14: error: 'SDLK_r_renamed_SDLK_R' was not declared in this scope
203 | case SDLK_r: return ImGuiKey_R;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:204:14: error: 'SDLK_s_renamed_SDLK_S' was not declared in this scope
204 | case SDLK_s: return ImGuiKey_S;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:205:14: error: 'SDLK_t_renamed_SDLK_T' was not declared in this scope
205 | case SDLK_t: return ImGuiKey_T;
| ^~~~~~
make[2]: *** [CMakeFiles/cs2-sdk.dir/build.make:269: CMakeFiles/cs2-sdk.dir/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:206:14: error: 'SDLK_u_renamed_SDLK_U' was not declared in this scope
206 | case SDLK_u: return ImGuiKey_U;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:207:14: error: 'SDLK_v_renamed_SDLK_V' was not declared in this scope
207 | case SDLK_v: return ImGuiKey_V;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:208:14: error: 'SDLK_w_renamed_SDLK_W' was not declared in this scope
208 | case SDLK_w: return ImGuiKey_W;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:209:14: error: 'SDLK_x_renamed_SDLK_X' was not declared in this scope
209 | case SDLK_x: return ImGuiKey_X;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:210:14: error: 'SDLK_y_renamed_SDLK_Y' was not declared in this scope
210 | case SDLK_y: return ImGuiKey_Y;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:211:14: error: 'SDLK_z_renamed_SDLK_Z' was not declared in this scope
211 | case SDLK_z: return ImGuiKey_Z;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:306:70: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
306 | ImGui_ImplSDL3_UpdateKeyModifiers((SDL_Keymod)event->key.keysym.mod);
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:307:72: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
307 | ImGuiKey key = ImGui_ImplSDL3_KeycodeToImGuiKey(event->key.keysym.sym);
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:54: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:77: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:105: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'bool ImGui_ImplSDL3_Init(SDL_Window*, SDL_Renderer*, void*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:381:71: error: 'SDL_SYSTEM_CURSOR_ARROW_renamed_SDL_SYSTEM_CURSOR_DEFAULT' was not declared in this scope
381 | bd->MouseCursors[ImGuiMouseCursor_Arrow] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:382:75: error: 'SDL_SYSTEM_CURSOR_IBEAM_renamed_SDL_SYSTEM_CURSOR_TEXT' was not declared in this scope
382 | bd->MouseCursors[ImGuiMouseCursor_TextInput] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_IBEAM);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:383:75: error: 'SDL_SYSTEM_CURSOR_SIZEALL_renamed_SDL_SYSTEM_CURSOR_MOVE' was not declared in this scope
383 | bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEALL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:384:74: error: 'SDL_SYSTEM_CURSOR_SIZENS_renamed_SDL_SYSTEM_CURSOR_NS_RESIZE' was not declared in this scope
384 | bd->MouseCursors[ImGuiMouseCursor_ResizeNS] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENS);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:385:74: error: 'SDL_SYSTEM_CURSOR_SIZEWE_renamed_SDL_SYSTEM_CURSOR_EW_RESIZE' was not declared in this scope
385 | bd->MouseCursors[ImGuiMouseCursor_ResizeEW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEWE);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:386:76: error: 'SDL_SYSTEM_CURSOR_SIZENESW_renamed_SDL_SYSTEM_CURSOR_NESW_RESIZE' was not declared in this scope
386 | bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENESW);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:387:76: error: 'SDL_SYSTEM_CURSOR_SIZENWSE_renamed_SDL_SYSTEM_CURSOR_NWSE_RESIZE' was not declared in this scope
387 | bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENWSE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:388:70: error: 'SDL_SYSTEM_CURSOR_HAND_renamed_SDL_SYSTEM_CURSOR_POINTER' was not declared in this scope
388 | bd->MouseCursors[ImGuiMouseCursor_Hand] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:389:76: error: 'SDL_SYSTEM_CURSOR_NO_renamed_SDL_SYSTEM_CURSOR_NOT_ALLOWED' was not declared in this scope
389 | bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NO);
| ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/cs2-sdk.dir/build.make:981: CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/cs2-sdk.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
[ilya@ISPC cs2-sdk-2]$ cmake --build build -j $(nproc --all)
[ 3%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp.o
[ 3%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp.o
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'const char* ImGui_ImplSDL3_GetClipboardText(void*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:93:49: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive]
93 | bd->ClipboardTextData = SDL_GetClipboardText();
| ~~~~~~~~~~~~~~~~~~~~^~
| |
| const char*
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'void ImGui_ImplSDL3_SetPlatformImeData(ImGuiViewport*, ImGuiPlatformImeData*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:111:9: error: 'SDL_SetTextInputRect' was not declared in this scope; did you mean 'SDL_SetTextInputArea'?
111 | SDL_SetTextInputRect(&r);
| ^~~~~~~~~~~~~~~~~~~~
| SDL_SetTextInputArea
In file included from /usr/include/SDL3/SDL.h:81,
from /home/ilya/Downloads/cs2-sdk-2/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp:14:
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp:19:59: error: 'SDL_eventaction_renamed_SDL_EventAction' has not been declared
19 | static int hkPeepEvents(SDL_Event* events, int numevents, SDL_eventaction action, Uint32 minType, Uint32 maxType) {
| ^~~~~~~~~~~~~~~
In file included from /usr/include/SDL3/SDL.h:81,
from /home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:44:
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'ImGuiKey ImGui_ImplSDL3_KeycodeToImGuiKey(int)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:134:14: error: 'SDLK_QUOTE_renamed_SDLK_APOSTROPHE' was not declared in this scope
134 | case SDLK_QUOTE: return ImGuiKey_Apostrophe;
| ^~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:144:14: error: 'SDLK_BACKQUOTE_renamed_SDLK_GRAVE' was not declared in this scope
144 | case SDLK_BACKQUOTE: return ImGuiKey_GraveAccent;
| ^~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:186:14: error: 'SDLK_a_renamed_SDLK_A' was not declared in this scope
186 | case SDLK_a: return ImGuiKey_A;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:187:14: error: 'SDLK_b_renamed_SDLK_B' was not declared in this scope
187 | case SDLK_b: return ImGuiKey_B;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:188:14: error: 'SDLK_c_renamed_SDLK_C' was not declared in this scope
188 | case SDLK_c: return ImGuiKey_C;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:189:14: error: 'SDLK_d_renamed_SDLK_D' was not declared in this scope
189 | case SDLK_d: return ImGuiKey_D;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:190:14: error: 'SDLK_e_renamed_SDLK_E' was not declared in this scope
190 | case SDLK_e: return ImGuiKey_E;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:191:14: error: 'SDLK_f_renamed_SDLK_F' was not declared in this scope
191 | case SDLK_f: return ImGuiKey_F;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:192:14: error: 'SDLK_g_renamed_SDLK_G' was not declared in this scope
192 | case SDLK_g: return ImGuiKey_G;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:193:14: error: 'SDLK_h_renamed_SDLK_H' was not declared in this scope
193 | case SDLK_h: return ImGuiKey_H;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:194:14: error: 'SDLK_i_renamed_SDLK_I' was not declared in this scope
194 | case SDLK_i: return ImGuiKey_I;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:195:14: error: 'SDLK_j_renamed_SDLK_J' was not declared in this scope
195 | case SDLK_j: return ImGuiKey_J;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:196:14: error: 'SDLK_k_renamed_SDLK_K' was not declared in this scope
196 | case SDLK_k: return ImGuiKey_K;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:197:14: error: 'SDLK_l_renamed_SDLK_L' was not declared in this scope
197 | case SDLK_l: return ImGuiKey_L;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:198:14: error: 'SDLK_m_renamed_SDLK_M' was not declared in this scope
198 | case SDLK_m: return ImGuiKey_M;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:199:14: error: 'SDLK_n_renamed_SDLK_N' was not declared in this scope
199 | case SDLK_n: return ImGuiKey_N;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:200:14: error: 'SDLK_o_renamed_SDLK_O' was not declared in this scope
200 | case SDLK_o: return ImGuiKey_O;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:201:14: error: 'SDLK_p_renamed_SDLK_P' was not declared in this scope
201 | case SDLK_p: return ImGuiKey_P;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:202:14: error: 'SDLK_q_renamed_SDLK_Q' was not declared in this scope
202 | case SDLK_q: return ImGuiKey_Q;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:203:14: error: 'SDLK_r_renamed_SDLK_R' was not declared in this scope
203 | case SDLK_r: return ImGuiKey_R;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:204:14: error: 'SDLK_s_renamed_SDLK_S' was not declared in this scope
204 | case SDLK_s: return ImGuiKey_S;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:205:14: error: 'SDLK_t_renamed_SDLK_T' was not declared in this scope
205 | case SDLK_t: return ImGuiKey_T;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:206:14: error: 'SDLK_u_renamed_SDLK_U' was not declared in this scope
206 | case SDLK_u: return ImGuiKey_U;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:207:14: error: 'SDLK_v_renamed_SDLK_V' was not declared in this scope
207 | case SDLK_v: return ImGuiKey_V;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:208:14: error: 'SDLK_w_renamed_SDLK_W' was not declared in this scope
208 | case SDLK_w: return ImGuiKey_W;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:209:14: error: 'SDLK_x_renamed_SDLK_X' was not declared in this scope
209 | case SDLK_x: return ImGuiKey_X;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:210:14: error: 'SDLK_y_renamed_SDLK_Y' was not declared in this scope
210 | case SDLK_y: return ImGuiKey_Y;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:211:14: error: 'SDLK_z_renamed_SDLK_Z' was not declared in this scope
211 | case SDLK_z: return ImGuiKey_Z;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:306:70: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
306 | ImGui_ImplSDL3_UpdateKeyModifiers((SDL_Keymod)event->key.keysym.mod);
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:307:72: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
307 | ImGuiKey key = ImGui_ImplSDL3_KeycodeToImGuiKey(event->key.keysym.sym);
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:54: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:77: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:105: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'bool ImGui_ImplSDL3_Init(SDL_Window*, SDL_Renderer*, void*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:381:71: error: 'SDL_SYSTEM_CURSOR_ARROW_renamed_SDL_SYSTEM_CURSOR_DEFAULT' was not declared in this scope
381 | bd->MouseCursors[ImGuiMouseCursor_Arrow] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:382:75: error: 'SDL_SYSTEM_CURSOR_IBEAM_renamed_SDL_SYSTEM_CURSOR_TEXT' was not declared in this scope
382 | bd->MouseCursors[ImGuiMouseCursor_TextInput] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_IBEAM);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:383:75: error: 'SDL_SYSTEM_CURSOR_SIZEALL_renamed_SDL_SYSTEM_CURSOR_MOVE' was not declared in this scope
383 | bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEALL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/cs2-sdk.dir/build.make:269: CMakeFiles/cs2-sdk.dir/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:384:74: error: 'SDL_SYSTEM_CURSOR_SIZENS_renamed_SDL_SYSTEM_CURSOR_NS_RESIZE' was not declared in this scope
384 | bd->MouseCursors[ImGuiMouseCursor_ResizeNS] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENS);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:385:74: error: 'SDL_SYSTEM_CURSOR_SIZEWE_renamed_SDL_SYSTEM_CURSOR_EW_RESIZE' was not declared in this scope
385 | bd->MouseCursors[ImGuiMouseCursor_ResizeEW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEWE);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:386:76: error: 'SDL_SYSTEM_CURSOR_SIZENESW_renamed_SDL_SYSTEM_CURSOR_NESW_RESIZE' was not declared in this scope
386 | bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENESW);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:387:76: error: 'SDL_SYSTEM_CURSOR_SIZENWSE_renamed_SDL_SYSTEM_CURSOR_NWSE_RESIZE' was not declared in this scope
387 | bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENWSE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:388:70: error: 'SDL_SYSTEM_CURSOR_HAND_renamed_SDL_SYSTEM_CURSOR_POINTER' was not declared in this scope
388 | bd->MouseCursors[ImGuiMouseCursor_Hand] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:389:76: error: 'SDL_SYSTEM_CURSOR_NO_renamed_SDL_SYSTEM_CURSOR_NOT_ALLOWED' was not declared in this scope
389 | bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NO);
| ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/cs2-sdk.dir/build.make:981: CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/cs2-sdk.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
[ilya@ISPC cs2-sdk-2]$ cmake --build build -j $(nproc --all)
[ 1%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp.o
[ 3%] Building CXX object CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp.o
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'const char* ImGui_ImplSDL3_GetClipboardText(void*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:93:49: warning: invalid conversion from 'const char*' to 'char*' [-fpermissive]
93 | bd->ClipboardTextData = SDL_GetClipboardText();
| ~~~~~~~~~~~~~~~~~~~~^~
| |
| const char*
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'void ImGui_ImplSDL3_SetPlatformImeData(ImGuiViewport*, ImGuiPlatformImeData*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:111:9: error: 'SDL_SetTextInputRect' was not declared in this scope; did you mean 'SDL_SetTextInputArea'?
111 | SDL_SetTextInputRect(&r);
| ^~~~~~~~~~~~~~~~~~~~
| SDL_SetTextInputArea
In file included from /usr/include/SDL3/SDL.h:81,
from /home/ilya/Downloads/cs2-sdk-2/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp:14:
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp:19:59: error: 'SDL_eventaction_renamed_SDL_EventAction' has not been declared
19 | static int hkPeepEvents(SDL_Event* events, int numevents, SDL_eventaction action, Uint32 minType, Uint32 maxType) {
| ^~~~~~~~~~~~~~~
In file included from /usr/include/SDL3/SDL.h:81,
from /home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:44:
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'ImGuiKey ImGui_ImplSDL3_KeycodeToImGuiKey(int)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:134:14: error: 'SDLK_QUOTE_renamed_SDLK_APOSTROPHE' was not declared in this scope
134 | case SDLK_QUOTE: return ImGuiKey_Apostrophe;
| ^~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:144:14: error: 'SDLK_BACKQUOTE_renamed_SDLK_GRAVE' was not declared in this scope
144 | case SDLK_BACKQUOTE: return ImGuiKey_GraveAccent;
| ^~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:186:14: error: 'SDLK_a_renamed_SDLK_A' was not declared in this scope
186 | case SDLK_a: return ImGuiKey_A;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:187:14: error: 'SDLK_b_renamed_SDLK_B' was not declared in this scope
187 | case SDLK_b: return ImGuiKey_B;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:188:14: error: 'SDLK_c_renamed_SDLK_C' was not declared in this scope
188 | case SDLK_c: return ImGuiKey_C;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:189:14: error: 'SDLK_d_renamed_SDLK_D' was not declared in this scope
189 | case SDLK_d: return ImGuiKey_D;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:190:14: error: 'SDLK_e_renamed_SDLK_E' was not declared in this scope
190 | case SDLK_e: return ImGuiKey_E;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:191:14: error: 'SDLK_f_renamed_SDLK_F' was not declared in this scope
191 | case SDLK_f: return ImGuiKey_F;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:192:14: error: 'SDLK_g_renamed_SDLK_G' was not declared in this scope
192 | case SDLK_g: return ImGuiKey_G;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:193:14: error: 'SDLK_h_renamed_SDLK_H' was not declared in this scope
193 | case SDLK_h: return ImGuiKey_H;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:194:14: error: 'SDLK_i_renamed_SDLK_I' was not declared in this scope
194 | case SDLK_i: return ImGuiKey_I;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:195:14: error: 'SDLK_j_renamed_SDLK_J' was not declared in this scope
195 | case SDLK_j: return ImGuiKey_J;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:196:14: error: 'SDLK_k_renamed_SDLK_K' was not declared in this scope
196 | case SDLK_k: return ImGuiKey_K;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:197:14: error: 'SDLK_l_renamed_SDLK_L' was not declared in this scope
197 | case SDLK_l: return ImGuiKey_L;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:198:14: error: 'SDLK_m_renamed_SDLK_M' was not declared in this scope
198 | case SDLK_m: return ImGuiKey_M;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:199:14: error: 'SDLK_n_renamed_SDLK_N' was not declared in this scope
199 | case SDLK_n: return ImGuiKey_N;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:200:14: error: 'SDLK_o_renamed_SDLK_O' was not declared in this scope
200 | case SDLK_o: return ImGuiKey_O;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:201:14: error: 'SDLK_p_renamed_SDLK_P' was not declared in this scope
201 | case SDLK_p: return ImGuiKey_P;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:202:14: error: 'SDLK_q_renamed_SDLK_Q' was not declared in this scope
202 | case SDLK_q: return ImGuiKey_Q;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:203:14: error: 'SDLK_r_renamed_SDLK_R' was not declared in this scope
203 | case SDLK_r: return ImGuiKey_R;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:204:14: error: 'SDLK_s_renamed_SDLK_S' was not declared in this scope
204 | case SDLK_s: return ImGuiKey_S;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:205:14: error: 'SDLK_t_renamed_SDLK_T' was not declared in this scope
205 | case SDLK_t: return ImGuiKey_T;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:206:14: error: 'SDLK_u_renamed_SDLK_U' was not declared in this scope
206 | case SDLK_u: return ImGuiKey_U;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:207:14: error: 'SDLK_v_renamed_SDLK_V' was not declared in this scope
207 | case SDLK_v: return ImGuiKey_V;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:208:14: error: 'SDLK_w_renamed_SDLK_W' was not declared in this scope
208 | case SDLK_w: return ImGuiKey_W;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:209:14: error: 'SDLK_x_renamed_SDLK_X' was not declared in this scope
209 | case SDLK_x: return ImGuiKey_X;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:210:14: error: 'SDLK_y_renamed_SDLK_Y' was not declared in this scope
210 | case SDLK_y: return ImGuiKey_Y;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:211:14: error: 'SDLK_z_renamed_SDLK_Z' was not declared in this scope
211 | case SDLK_z: return ImGuiKey_Z;
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'bool ImGui_ImplSDL3_ProcessEvent(const SDL_Event*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:306:70: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
306 | ImGui_ImplSDL3_UpdateKeyModifiers((SDL_Keymod)event->key.keysym.mod);
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:307:72: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
307 | ImGuiKey key = ImGui_ImplSDL3_KeycodeToImGuiKey(event->key.keysym.sym);
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:54: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:77: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:309:105: error: 'const SDL_KeyboardEvent' {aka 'const struct SDL_KeyboardEvent'} has no member named 'keysym'
309 | io.SetKeyEventNativeData(key, event->key.keysym.sym, event->key.keysym.scancode, event->key.keysym.scancode); // To support legacy indexing (<1.87 user code). Legacy backend uses SDLK_*** as indices to IsKeyXXX() functions.
| ^~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp: In function 'bool ImGui_ImplSDL3_Init(SDL_Window*, SDL_Renderer*, void*)':
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:381:71: error: 'SDL_SYSTEM_CURSOR_ARROW_renamed_SDL_SYSTEM_CURSOR_DEFAULT' was not declared in this scope
381 | bd->MouseCursors[ImGuiMouseCursor_Arrow] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:382:75: error: 'SDL_SYSTEM_CURSOR_IBEAM_renamed_SDL_SYSTEM_CURSOR_TEXT' was not declared in this scope
382 | bd->MouseCursors[ImGuiMouseCursor_TextInput] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_IBEAM);
| ^~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:383:75: error: 'SDL_SYSTEM_CURSOR_SIZEALL_renamed_SDL_SYSTEM_CURSOR_MOVE' was not declared in this scope
383 | bd->MouseCursors[ImGuiMouseCursor_ResizeAll] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEALL);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/cs2-sdk.dir/build.make:269: CMakeFiles/cs2-sdk.dir/cs2-sdk/src/hooks/input/sdl/sdl_hooks.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:384:74: error: 'SDL_SYSTEM_CURSOR_SIZENS_renamed_SDL_SYSTEM_CURSOR_NS_RESIZE' was not declared in this scope
384 | bd->MouseCursors[ImGuiMouseCursor_ResizeNS] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENS);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:385:74: error: 'SDL_SYSTEM_CURSOR_SIZEWE_renamed_SDL_SYSTEM_CURSOR_EW_RESIZE' was not declared in this scope
385 | bd->MouseCursors[ImGuiMouseCursor_ResizeEW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEWE);
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:386:76: error: 'SDL_SYSTEM_CURSOR_SIZENESW_renamed_SDL_SYSTEM_CURSOR_NESW_RESIZE' was not declared in this scope
386 | bd->MouseCursors[ImGuiMouseCursor_ResizeNESW] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENESW);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:387:76: error: 'SDL_SYSTEM_CURSOR_SIZENWSE_renamed_SDL_SYSTEM_CURSOR_NWSE_RESIZE' was not declared in this scope
387 | bd->MouseCursors[ImGuiMouseCursor_ResizeNWSE] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENWSE);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:388:70: error: 'SDL_SYSTEM_CURSOR_HAND_renamed_SDL_SYSTEM_CURSOR_POINTER' was not declared in this scope
388 | bd->MouseCursors[ImGuiMouseCursor_Hand] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND);
| ^~~~~~~~~~~~~~~~~~~~~~
/home/ilya/Downloads/cs2-sdk-2/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp:389:76: error: 'SDL_SYSTEM_CURSOR_NO_renamed_SDL_SYSTEM_CURSOR_NOT_ALLOWED' was not declared in this scope
389 | bd->MouseCursors[ImGuiMouseCursor_NotAllowed] = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NO);
| ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/cs2-sdk.dir/build.make:981: CMakeFiles/cs2-sdk.dir/cs2-sdk/libs/imgui/imgui_impl_sdl3.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/cs2-sdk.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

help me pls, i have sdl3-git installed on my archlinux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant