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

error when trying to build #1282

Open
IsGris opened this issue Mar 23, 2023 · 4 comments
Open

error when trying to build #1282

IsGris opened this issue Mar 23, 2023 · 4 comments

Comments

@IsGris
Copy link

IsGris commented Mar 23, 2023

when I try to build the library I get a lot of errors:
Severity Code Description Project File Line Suppression State
Error C2143 syntax error: missing ';' before '{' (compiling source file C:\Users\MyProf\Downloads\cegui-master\cegui\src\ShaderParameterBindings.cpp) CEGUIBase-9999 C:\msys64\mingw64\include\stdio.h 1261
изображение

here is the log i get when i type cmake -G "Visual Studio 17 2022" .. :
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
-- The C compiler identification is MSVC 19.35.32216.1
-- The CXX compiler identification is MSVC 19.35.32216.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools
/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Too
ls/MSVC/14.35.32215/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Some or all of the gtk libraries were not found. (missing: GTK2_GTK_LIBRARY GTK2_GTK_INCLUDE_DIR
GTK2_GDK_INCLUDE_DIR GTK2_GDKCONFIG_INCLUDE_DIR GTK2_GDK_LIBRARY GTK2_GLIBCONFIG_INCLUDE_DIR GTK2_GL
IB_LIBRARY)
-- Found PCRE: C:/msys64/mingw64/include
-- Found Freetype: C:/msys64/mingw64/include/freetype2
-- Found Minizip: C:/msys64/mingw64/include
-- Found Fribidi: C:/msys64/mingw64/include/fribidi
-- Found Raqm: C:/msys64/mingw64/include
-- Found OpenGL: opengl32
-- Found GLEW: C:/msys64/mingw64/include
-- Found GLM: C:/msys64/mingw64/include
-- Could NOT find GLFW (missing: GLFW_H_PATH)
-- Found GLFW3: C:/msys64/mingw64/include
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Found SDL2: C:/msys64/mingw64/include/SDL2
-- Found SDL2_image: C:/msys64/mingw64/include/SDL2
-- Could NOT find SFML (missing: SFML_SYSTEM_LIBRARY SFML_WINDOW_LIBRARY SFML_GRAPHICS_LIBRARY SFML
MAIN_LIBRARY)
-- Found DirectXSDK: C:/Program Files (x86)/Windows Kits/10/Lib/10.0.22621.0/um/x64
-- Could NOT find Irrlicht (missing: IRRLICHT_LIB)
-- FoundOGRE
-- static : OFF
-- components : Bites;Bullet;MeshLodGenerator;Overlay;Paging;Property;RTShaderSystem;Terrain;Volum
e
-- plugins : Plugin_BSPSceneManager;Plugin_OctreeSceneManager;Plugin_PCZSceneManager;Plugin_Par
tickleFX;RenderSystem_GL;RenderSystem_GLES2;RenderSystem_GL3Plus;RenderSystem_Direct3D9;RenderSystem

Direct3D11;Codec_STBI;Codec_FreeImage
-- media : C:/msys64/mingw64/share/OGRE/Media
-- Could NOT find DirectFB (missing: DIRECTFB_H_PATH)
-- Could NOT find OpenGLES (missing: OPENGLES_LIB OPENGLES_H_PATH)
-- Could NOT find OpenGLES2 (missing: OPENGLES2_LIB OPENGLES2_H_PATH)
-- Could NOT find OpenGLES3 (missing: OPENGLES3_LIB OPENGLES3_H_PATH)
-- Could NOT find Epoxy (missing: EPOXY_LIB EPOXY_H_PATH)
-- Found PugiXML: C:/msys64/mingw64/include
-- Found EXPAT: C:/msys64/mingw64/include
-- Could NOT find XercesC (missing: XERCESC_H_PATH)
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES) (found version "2.10.3")
-- Found TinyXML2: C:/msys64/mingw64/include
-- Found DevIL: C:/msys64/mingw64/include
-- Found FreeImage: C:/msys64/mingw64/include
-- Could NOT find SILLY (missing: SILLY_H_PATH)
-- Could NOT find Corona (missing: CORONA_H_PATH)
-- Could NOT find PVRTools (missing: PVRTOOLS_LIB PVRTOOLS_H_PATH)
-- Found Lua51: C:/msys64/mingw64/include/lua5.1
-- Could NOT find TOLUAPP (missing: TOLUAPP_H_PATH)
-- Found PythonLibs: C:/Users/MyProf/AppData/Local/Programs/Python/Python311/libs/python311.lib (fou
nd suitable version "3.11.1", minimum required is "3.5")
-- Found PythonInterp: C:/msys64/mingw64/bin/python.exe (found version "3.10.10")
-- Found PythonLibs: C:/Users/MyProf/AppData/Local/Programs/Python/Python311/libs/python311.lib (fou
nd version "3.11.1")
-- Found Boost: C:/msys64/mingw64/lib/cmake/Boost-1.81.0/BoostConfig.cmake (found suitable version "
1.81.0", minimum required is "1.36.0") found components: python unit_test_framework system timer
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) (Required is at least version "3.0.8")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
:1: DeprecationWarning: The distutils package is deprecated and slated for removal in Python
3.12. Use setuptools or check PEP 632 for potential alternatives
:1: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
-- Configuring done (23.2s)
-- Generating done (0.6s)
-- Build files have been written to: C:/Users/MyProf/Downloads/cegui-master/build

@manhnt9
Copy link
Contributor

manhnt9 commented Mar 24, 2023

You are using MSVC compiler but the libraries are from MinGW. Either switch to a GCC / Clang compiler or use vcpkg to install libraries for your MSVC.

@IsGris
Copy link
Author

IsGris commented Mar 24, 2023

now I tried to compile the library using cmake -G Ninja -DCEGUI_BUILD_IMAGECODEC_SILLY=ON .. in MSYS2 MINGW64 here is the log that I got in response to the command:

MyProf@DESKTOP-P7S0TJP MINGW64 /c/Users/MyProf/Downloads/cegui-master/build
$ cmake -G Ninja -DCEGUI_BUILD_IMAGECODEC_SILLY=ON ..
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/msys64/mingw64/bin/cc.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/msys64/mingw64/bin/c++.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Some or all of the gtk libraries were not found. (missing: GTK2_GTK_LIBRARY GTK2_GTK_INCLUDE_DIR GTK2_GDK_INCLUDE_DIR GTK2_GDKCONFIG_INCLUDE_DIR GTK2_GDK_LIBRARY GTK2_GLIB_INCLUDE_DIR GTK2_GLIBCONFIG_INCLUDE_DIR GTK2_GLIB_LIBRARY)
-- Could NOT find PCRE (missing: PCRE_H_PATH)
-- Could NOT find Freetype (missing: FREETYPE_H_PATH_ft2build FREETYPE_H_PATH_ftconfig)
-- Could NOT find Minizip (missing: MINIZIP_H_PATH)
-- Could NOT find Fribidi (missing: FRIBIDI_H_PATH)
-- Could NOT find Raqm (missing: RAQM_H_PATH)
-- Found OpenGL: opengl32
-- Could NOT find GLEW (missing: GLEW_H_PATH)
-- Found GLM: C:/msys64/mingw64/include
-- Could NOT find GLFW (missing: GLFW_H_PATH)
-- Could NOT find GLFW3 (missing: GLFW3_H_PATH)
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Could NOT find SDL2 (missing: SDL2_H_PATH)
-- Could NOT find SDL2_image (missing: SDL2IMAGE_H_PATH)
-- Could NOT find SFML (missing: SFML_SYSTEM_LIBRARY SFML_WINDOW_LIBRARY SFML_GRAPHICS_LIBRARY SFML_MAIN_LIBRARY)
-- Could NOT find Irrlicht (missing: IRRLICHT_LIB IRRLICHT_H_PATH)
-- Could NOT find OGRE (missing: OGRE_DIR)
-- Looking for OGRE...
-- OGRE_PREFIX_WATCH changed.
-- Found PkgConfig: C:/msys64/mingw64/bin/pkg-config.exe (found version "1.8.0")
-- Checking for module 'OGRE'
-- Package 'OGRE', required by 'virtual:world', not found
-- Could not locate OGRE
-- Could NOT find DirectFB (missing: DIRECTFB_H_PATH)
-- Could NOT find OpenGLES (missing: OPENGLES_LIB OPENGLES_H_PATH)
-- Could NOT find OpenGLES2 (missing: OPENGLES2_LIB OPENGLES2_H_PATH)
-- Could NOT find OpenGLES3 (missing: OPENGLES3_LIB OPENGLES3_H_PATH)
-- Could NOT find Epoxy (missing: EPOXY_LIB EPOXY_H_PATH)
-- Could NOT find PugiXML (missing: PUGIXML_H_PATH)
-- Found EXPAT: C:/msys64/mingw64/include
-- Could NOT find XercesC (missing: XERCESC_H_PATH)
-- Could NOT find LibXml2 (missing: LIBXML2_LIBRARIES LIBXML2_INCLUDE_DIR)
-- Could NOT find TinyXML2 (missing: TINYXML2_H_PATH)
-- Could NOT find DevIL (missing: IL_H_PATH)
-- Could NOT find FreeImage (missing: FREEIMAGE_H_PATH)
-- Could NOT find SILLY (missing: SILLY_H_PATH)
-- Could NOT find Corona (missing: CORONA_H_PATH)
-- Could NOT find PVRTools (missing: PVRTOOLS_LIB PVRTOOLS_H_PATH)
-- Could NOT find Lua51 (missing: LUA_H_PATH)
-- Could NOT find TOLUAPP (missing: TOLUAPP_H_PATH)
-- Found PythonLibs: C:/Users/MyProf/AppData/Local/Programs/Python/Python311/libs/python311.lib (found suitable version "3.11.1", minimum required is "3.5")
-- Found PythonInterp: C:/msys64/mingw64/bin/python.exe (found version "3.10.10")
-- Found PythonLibs: C:/Users/MyProf/AppData/Local/Programs/Python/Python311/libs/python311.lib (found version "3.11.1")
-- Could NOT find Boost (missing: Boost_INCLUDE_DIR python unit_test_framework system timer) (Required is at least version "1.36.0")
-- Could NOT find SWIG (missing: SWIG_EXECUTABLE SWIG_DIR) (Required is at least version "3.0.8")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- Configuring done (23.4s)
-- Generating done (0.1s)
-- Build files have been written to: C:/Users/MyProf/Downloads/cegui-master/build

after which I entered ninja and got the following errors:

$ ninja
[9/249] Building CXX object cegui/src/CMakeFiles/CEGUIBase-9999.dir/AnimationInstance.cpp.obj
FAILED: cegui/src/CMakeFiles/CEGUIBase-9999.dir/AnimationInstance.cpp.obj
C:\msys64\mingw64\bin\c++.exe -DCEGUIBASE_EXPORTS -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -IC:/Users/MyProf/Downloads/cegui-master/build/cegui/include -IC:/Users/MyProf/Downloads/cegui-master/cegui/include -Wno-attributes -fsigned-char -Wall -Wextra -Wundef -O3 -DNDEBUG -std=c++14 -MD -MT cegui/src/CMakeFiles/CEGUIBase-9999.dir/AnimationInstance.cpp.obj -MF cegui
\src\CMakeFiles\CEGUIBase-9999.dir\AnimationInstance.cpp.obj.d -o cegui/src/CMakeFiles/CEGUIBase-9999.dir/AnimationInstance.cpp.obj -c C:/Users/MyProf/Downloads/cegui-master/cegui/src/AnimationInstance.cpp
In file included from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/Window.h:33,
from C:/Users/MyProf/Downloads/cegui-master/cegui/src/AnimationInstance.cpp:32:
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:130: error: 'is_enum_v' is not a member of 'std'; did you mean 'is_enum'?
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^~~~~~~~~
| is_enum
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:130: error: 'is_enum_v' is not a member of 'std'; did you mean 'is_enum'?
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^~~~~~~~~
| is_enum
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:140: error: template argument 1 is invalid
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:141: error: expected identifier before '>' token
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:143: error: expected unqualified-id before '>' token
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:279:22: error: 'Flags' does not name a type
279 | using MouseButtons = Flags<MouseButton, true>;
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:47: error: expected template-name before '<' token
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:47: error: expected '{' before '<' token
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:47: error: expected unqualified-id before '<' token
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:372:18: error: field 'd_map' has incomplete type 'CEGUI::ModifierKeys'
372 | ModifierKeys d_map = 0; // ModifierKey bits that need to be checked
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:373:18: error: field 'd_set' has incomplete type 'CEGUI::ModifierKeys'
373 | ModifierKeys d_set = 0; // Whether the corresponding key should be pressed or not
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:342:29: error: 'keys' has incomplete type
342 | bool match(ModifierKeys keys) const
| ~~~~~~~~~~~~~^~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h: In member function 'bool CEGUI::ModifierKeyRule::match(CEGUI::ModifierKeys) const':
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:345:32: error: variable 'CEGUI::ModifierKeys violations' has initializer but incomplete type
345 | ModifierKeys violations((keys.getMask() ^ d_set.getMask()) & d_map.getMask());
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:350:44: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
350 | if (d_set.hasAll(ModifierKeys::Shift()) && !violations.hasAll(ModifierKeys::Shift()))
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:350:89: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
350 | if (d_set.hasAll(ModifierKeys::Shift()) && !violations.hasAll(ModifierKeys::Shift()))
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:351:45: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
351 | violations -= ModifierKeys::Shift();
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:352:44: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
352 | if (d_set.hasAll(ModifierKeys::Ctrl()) && !violations.hasAll(ModifierKeys::Ctrl()))
| ^~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:352:88: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
352 | if (d_set.hasAll(ModifierKeys::Ctrl()) && !violations.hasAll(ModifierKeys::Ctrl()))
| ^~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:353:45: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
353 | violations -= ModifierKeys::Ctrl();
| ^~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:354:44: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
354 | if (d_set.hasAll(ModifierKeys::Alt()) && !violations.hasAll(ModifierKeys::Alt()))
| ^~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:354:87: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
354 | if (d_set.hasAll(ModifierKeys::Alt()) && !violations.hasAll(ModifierKeys::Alt()))
| ^~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:355:45: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
355 | violations -= ModifierKeys::Alt();
| ^~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h: At global scope:
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:426:67: error: 'MouseButtons' has not been declared
426 | CursorInputEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons = {}, ModifierKeys modifiers = {});
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:435:5: error: 'MouseButtons' does not name a type; did you mean 'MouseButton'?
435 | MouseButtons d_buttons;
| ^~~~~~~~~~~~
| MouseButton
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:437:18: error: field 'd_modifiers' has incomplete type 'CEGUI::ModifierKeys'
437 | ModifierKeys d_modifiers;
| ^~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:426:120: error: invalid use of incomplete type 'struct CEGUI::ModifierKeys'
426 | CursorInputEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons = {}, ModifierKeys modifiers = {});
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:452:66: error: 'MouseButtons' has not been declared
452 | CursorMoveEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, const glm::vec2& moveDelta)
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:452:101: error: 'modifiers' has incomplete type
452 | CursorMoveEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, const glm::vec2& moveDelta)
| ~~~~~~~~~~~~~^~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:468:67: error: 'MouseButtons' has not been declared
468 | MouseButtonEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, MouseButton button, int clickEventOrder = 0)
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:468:102: error: 'modifiers' has incomplete type
468 | MouseButtonEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, MouseButton button, int clickEventOrder = 0)
| ~~~~~~~~~~~~~^~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:486:62: error: 'MouseButtons' has not been declared
486 | ScrollEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, float delta)
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:486:97: error: 'modifiers' has incomplete type
486 | ScrollEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, float delta)
| ~~~~~~~~~~~~~^~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:518:18: error: field 'd_modifiers' has incomplete type 'CEGUI::ModifierKeys'
518 | ModifierKeys d_modifiers;
| ^~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:513:72: error: invalid use of incomplete type 'struct CEGUI::ModifierKeys'
513 | KeyEventArgs(Window* wnd, Key::Scan key, ModifierKeys modifiers = {}) : WindowEventArgs(wnd), d_key(key), d_modifiers(modifiers) {}
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:513:59: error: 'modifiers' has incomplete type
513 | KeyEventArgs(Window* wnd, Key::Scan key, ModifierKeys modifiers = {}) : WindowEventArgs(wnd), d_key(key), d_modifiers(modifiers) {}
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:610:5: error: 'MouseButtons' does not name a type; did you mean 'MouseButton'?
610 | MouseButtons buttons;
| ^~~~~~~~~~~~
| MouseButton
[11/249] Building CXX object cegui/src/CMakeFiles/CEGUIBase-9999.dir/Config_xmlHandler.cpp.obj
FAILED: cegui/src/CMakeFiles/CEGUIBase-9999.dir/Config_xmlHandler.cpp.obj
C:\msys64\mingw64\bin\c++.exe -DCEGUIBASE_EXPORTS -DNOMINMAX -D_CRT_SECURE_NO_WARNINGS -IC:/Users/MyProf/Downloads/cegui-master/build/cegui/include -IC:/Users/MyProf/Downloads/cegui-master/cegui/include -Wno-attributes -fsigned-char -Wall -Wextra -Wundef -O3 -DNDEBUG -std=c++14 -MD -MT cegui/src/CMakeFiles/CEGUIBase-9999.dir/Config_xmlHandler.cpp.obj -MF cegui
\src\CMakeFiles\CEGUIBase-9999.dir\Config_xmlHandler.cpp.obj.d -o cegui/src/CMakeFiles/CEGUIBase-9999.dir/Config_xmlHandler.cpp.obj -c C:/Users/MyProf/Downloads/cegui-master/cegui/src/Config_xmlHandler.cpp
In file included from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/Window.h:33,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/SectionSpecification.h:30,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/LayerSpecification.h:30,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/StateImagery.h:30,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/WidgetLookFeel.h:31,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/WidgetLookManager.h:32,
from C:/Users/MyProf/Downloads/cegui-master/cegui/src/Config_xmlHandler.cpp:40:
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:130: error: 'is_enum_v' is not a member of 'std'; did you mean 'is_enum'?
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^~~~~~~~~
| is_enum
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:130: error: 'is_enum_v' is not a member of 'std'; did you mean 'is_enum'?
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^~~~~~~~~
| is_enum
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:140: error: template argument 1 is invalid
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:141: error: expected identifier before '>' token
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:47:143: error: expected unqualified-id before '>' token
47 | template<typename T, bool needShift = false, typename mask_t = std::underlying_type_t, class = typename std::enable_if_t<std::is_enum_v>>
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:279:22: error: 'Flags' does not name a type
279 | using MouseButtons = Flags<MouseButton, true>;
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:47: error: expected template-name before '<' token
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:47: error: expected '{' before '<' token
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:47: error: expected unqualified-id before '<' token
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:372:18: error: field 'd_map' has incomplete type 'CEGUI::ModifierKeys'
372 | ModifierKeys d_map = 0; // ModifierKey bits that need to be checked
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:373:18: error: field 'd_set' has incomplete type 'CEGUI::ModifierKeys'
373 | ModifierKeys d_set = 0; // Whether the corresponding key should be pressed or not
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:342:29: error: 'keys' has incomplete type
342 | bool match(ModifierKeys keys) const
| ~~~~~~~~~~~~~^~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h: In member function 'bool CEGUI::ModifierKeyRule::match(CEGUI::ModifierKeys) const':
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:345:32: error: variable 'CEGUI::ModifierKeys violations' has initializer but incomplete type
345 | ModifierKeys violations((keys.getMask() ^ d_set.getMask()) & d_map.getMask());
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:350:44: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
350 | if (d_set.hasAll(ModifierKeys::Shift()) && !violations.hasAll(ModifierKeys::Shift()))
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:350:89: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
350 | if (d_set.hasAll(ModifierKeys::Shift()) && !violations.hasAll(ModifierKeys::Shift()))
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:351:45: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
351 | violations -= ModifierKeys::Shift();
| ^~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:352:44: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
352 | if (d_set.hasAll(ModifierKeys::Ctrl()) && !violations.hasAll(ModifierKeys::Ctrl()))
| ^~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:352:88: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
352 | if (d_set.hasAll(ModifierKeys::Ctrl()) && !violations.hasAll(ModifierKeys::Ctrl()))
| ^~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:353:45: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
353 | violations -= ModifierKeys::Ctrl();
| ^~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:354:44: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
354 | if (d_set.hasAll(ModifierKeys::Alt()) && !violations.hasAll(ModifierKeys::Alt()))
| ^~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:354:87: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
354 | if (d_set.hasAll(ModifierKeys::Alt()) && !violations.hasAll(ModifierKeys::Alt()))
| ^~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:355:45: error: incomplete type 'CEGUI::ModifierKeys' used in nested name specifier
355 | violations -= ModifierKeys::Alt();
| ^~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h: At global scope:
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:426:67: error: 'MouseButtons' has not been declared
426 | CursorInputEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons = {}, ModifierKeys modifiers = {});
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:435:5: error: 'MouseButtons' does not name a type; did you mean 'MouseButton'?
435 | MouseButtons d_buttons;
| ^~~~~~~~~~~~
| MouseButton
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:437:18: error: field 'd_modifiers' has incomplete type 'CEGUI::ModifierKeys'
437 | ModifierKeys d_modifiers;
| ^~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:426:120: error: invalid use of incomplete type 'struct CEGUI::ModifierKeys'
426 | CursorInputEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons = {}, ModifierKeys modifiers = {});
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:452:66: error: 'MouseButtons' has not been declared
452 | CursorMoveEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, const glm::vec2& moveDelta)
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:452:101: error: 'modifiers' has incomplete type
452 | CursorMoveEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, const glm::vec2& moveDelta)
| ~~~~~~~~~~~~~^~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:468:67: error: 'MouseButtons' has not been declared
468 | MouseButtonEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, MouseButton button, int clickEventOrder = 0)
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:468:102: error: 'modifiers' has incomplete type
468 | MouseButtonEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, MouseButton button, int clickEventOrder = 0)
| ~~~~~~~~~~~~~^~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:486:62: error: 'MouseButtons' has not been declared
486 | ScrollEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, float delta)
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:486:97: error: 'modifiers' has incomplete type
486 | ScrollEventArgs(Window* wnd, const glm::vec2& globalPos, MouseButtons buttons, ModifierKeys modifiers, float delta)
| ~~~~~~~~~~~~~^~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:518:18: error: field 'd_modifiers' has incomplete type 'CEGUI::ModifierKeys'
518 | ModifierKeys d_modifiers;
| ^~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:513:72: error: invalid use of incomplete type 'struct CEGUI::ModifierKeys'
513 | KeyEventArgs(Window* wnd, Key::Scan key, ModifierKeys modifiers = {}) : WindowEventArgs(wnd), d_key(key), d_modifiers(modifiers) {}
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:513:59: error: 'modifiers' has incomplete type
513 | KeyEventArgs(Window* wnd, Key::Scan key, ModifierKeys modifiers = {}) : WindowEventArgs(wnd), d_key(key), d_modifiers(modifiers) {}
| ~~~~~~~~~~~~~^~~~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:294:20: note: forward declaration of 'struct CEGUI::ModifierKeys'
294 | struct CEGUIEXPORT ModifierKeys : public Flags
| ^~~~~~~~~~~~
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/InputEvent.h:610:5: error: 'MouseButtons' does not name a type; did you mean 'MouseButton'?
610 | MouseButtons buttons;
| ^~~~~~~~~~~~
| MouseButton
In file included from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/Dimensions.h:30,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/ComponentBase.h:30,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/ImageryComponent.h:30,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/ImagerySection.h:30,
from C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/WidgetLookFeel.h:32:
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/Enums.h: In function 'CEGUI::HorizontalTextFormatting CEGUI::decomposeHorizontalFormatting(HorizontalTextFormatting, bool*)':
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/Enums.h:115:16: warning: enumeration value 'LeftAligned' not handled in switch [-Wswitch]
115 | switch (fmt)
| ^
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/Enums.h:115:16: warning: enumeration value 'RightAligned' not handled in switch [-Wswitch]
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/Enums.h:115:16: warning: enumeration value 'CentreAligned' not handled in switch [-Wswitch]
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/Enums.h:115:16: warning: enumeration value 'Justified' not handled in switch [-Wswitch]
C:/Users/MyProf/Downloads/cegui-master/cegui/include/CEGUI/falagard/Enums.h:115:16: warning: enumeration value 'Bidi' not handled in switch [-Wswitch]
[22/249] Building CXX object cegui/src/CMakeFiles/CEGUIBase-9999.dir/Element.cpp.obj
ninja: build stopped: subcommand failed.

@manhnt9
Copy link
Contributor

manhnt9 commented Apr 30, 2023

On Windows I often run CMake for MinGW with -G MinGW Makefiles. I'm not sure that Ninja generator would work since I rarely use it (which is supposed for Visual Studio I think)

@niello
Copy link
Contributor

niello commented Aug 12, 2023

Unintended C++17 fixed, an error about is_enum_v should have gone so you can try again

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

3 participants