Repository navigation
utf8 header not found - #5279
Conversation
umlaeute
left a comment
There was a problem hiding this comment.
i welcome the move from fixing the include-dirs and having a unified #include <utf8.h> wherever it is needed. (the latter part is missing from this patch).
also, i find it somewhat strange that you are adding includes without mentioning that in the commit (it probably should be a separate commit, adding the utf8.h header wherever it has been forgotten)
| #include <dxgi1_2.h> | ||
| #include <DirectXMath.h> | ||
| #include <d3dcompiler.h> | ||
| #include <utf8.h> |
There was a problem hiding this comment.
why do you need to include <utf8.h> here?
| #include <stdio.h> | ||
| #include <GL/gl.h> | ||
| #include <GL/glu.h> | ||
| #include <utf8.h> |
There was a problem hiding this comment.
and why do you need to include <utf8.h> here?
| find_package(utf8cpp CONFIG REQUIRED) | ||
| ELSE() | ||
| # utf8 is header-only, so Assimp doesn't need to do anything. | ||
| INCLUDE_DIRECTORIES("../contrib/utf8cpp/source") |
There was a problem hiding this comment.
i agree that it is much better to just fix the include path, rather than including different files. based on context as is done now:
assimp/code/Common/BaseImporter.cpp
Lines 360 to 364 in 020554e
There was a problem hiding this comment.
obviously this PR does not (yet) change the actual includes (e.g. in BaseImporter.cpp.
after adding the include_directories, it could be as simple as:
#include <utf8.h>
kimkulling
left a comment
There was a problem hiding this comment.
Looks better for me doing it this way.
|
Merged, thanks a lot for your contribution. |
- update assimp.lua file to disable unsupported models - include path for utf8cpp source as supported by assimp#5279 - include reverted changes from commit 15d938e - Revert "Assorted compile fixes" - include reverted changes from commit 61f4618 - Revert "unicode: Switch to boost::nowide::fopen" - include reverted changes from commit c2e5d2a - Revert "collada: Read all instance_material child nodes" - auto generated config.h file
utf8 header not found while compiling assimp with samples.