Thursday, July 28, 2022
HomeGame DevelopmentAssimp COB construct failing with MinGW Makefiles

Assimp COB construct failing with MinGW Makefiles


I wish to compile Assimp as a subdirectory utilizing CMake, nevertheless the construct fails when begin COB construct.The construct work correctly when constructing with Visible Studio Code.

My CMake half chargeable for Assimp is that this:

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/dependencies/assimp)
target_link_libraries(${PROJECT_NAME} assimp)

My surroundings particulars are:

Home windows 11

g++.exe (MinGW-W64 x86_64-posix-seh, constructed by Brecht Sanders) 11.2.0

The error message begins like this, and maintain going.

In file included from c:programdatachocolateylibmingwtoolsinstallmingw64x86_64-w64-mingw32includewindows.h:70,
                 from E:/Program Recordsdata/PostgreSQL/14/embrace/pthread.h:198,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0x86_64-w64-mingw32bitsgthr-default.h:35,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0x86_64-w64-mingw32bitsgthr.h:148,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0extatomicity.h:35,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0bitsbasic_string.h:39,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0string:55,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/sorts.h:78,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/IOStream.hpp:53,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/DefaultIOStream.h:55,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/Distinctive.h:49,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/BaseImporter.h:52,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBLoader.h:49,
                 from C:UsersFelipeDocumentscurrent_projectsOpenGLlearnopenglmodel_loadingdependenciesassimpcodeAssetLibCOBCOBLoader.cpp:48:
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:184:20: error: anticipated identifier earlier than numeric fixed
  184 |         SPOT,LOCAL,INFINITE
      |                    ^~~~~~~~
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:184:20: error: anticipated '}' earlier than numeric fixed
In file included from C:UsersFelipeDocumentscurrent_projectsOpenGLlearnopenglmodel_loadingdependenciesassimpcodeAssetLibCOBCOBLoader.cpp:49:
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:183:20: be aware: to match this '{'
  183 |     enum LightType {
      |                    ^
In file included from c:programdatachocolateylibmingwtoolsinstallmingw64x86_64-w64-mingw32includewindows.h:70,
                 from E:/Program Recordsdata/PostgreSQL/14/embrace/pthread.h:198,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0x86_64-w64-mingw32bitsgthr-default.h:35,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0x86_64-w64-mingw32bitsgthr.h:148,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0extatomicity.h:35,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0bitsbasic_string.h:39,
                 from c:programdatachocolateylibmingwtoolsinstallmingw64includec++11.2.0string:55,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/sorts.h:78,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/IOStream.hpp:53,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/DefaultIOStream.h:55,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/Distinctive.h:49,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/embrace/assimp/BaseImporter.h:52,
                 from C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBLoader.h:49,
                 from C:UsersFelipeDocumentscurrent_projectsOpenGLlearnopenglmodel_loadingdependenciesassimpcodeAssetLibCOBCOBLoader.cpp:48:
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:184:20: error: anticipated unqualified-id earlier than numeric fixed
  184 |         SPOT,LOCAL,INFINITE
      |                    ^~~~~~~~
In file included from C:UsersFelipeDocumentscurrent_projectsOpenGLlearnopenglmodel_loadingdependenciesassimpcodeAssetLibCOBCOBLoader.cpp:49:
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:187:30: error: using-declaration for member at non-class scope
  187 |     utilizing ChunkInfo::operator=;
      |                              ^
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:188:11: error: anticipated unqualified-id earlier than ')' token
  188 |     Mild() : Node(TYPE_LIGHT),angle(),inner_angle(),ltype(SPOT) {}
      |           ^
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:193:5: error: 'LightType' doesn't identify a kind
  193 |     LightType ltype;
      |     ^~~~~~~~~
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:199:1: error: anticipated class-name earlier than '{' token
  199 | {
      | ^
C:/Customers/Felipe/Paperwork/current_projects/OpenGL/learnopengl/model_loading/dependencies/assimp/code/AssetLib/COB/COBScene.h:200:11: error: 'ChunkInfo' has not been declared
  200 |     utilizing ChunkInfo::operator=;

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments