Comments (5)
Thank you for raising the issue
Due to build errors caused by the definition overlap between std::byte introduced in C++17 and byte in windows.h, I will resolve this issue by adding the macro #define _HAS_STD_BYTE 0.
from thorvg.
just don't include all the headers from windows.h
. Just before windows.h
in tvgTtfLoader.cpp
(and probably in all the source/header files which include windows.h
), define WIN32_LEAN_AND_MEAN
like that:
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN
#endif
#include <windows.h>
#undef WIN32_LEAN_AND_MEAN
it works for me on mingw when using c++20.
from thorvg.
thank you for your suggestion. If it is possible to resolve this with the WIN32_LEAN_AND_MEAN macro , this solution seems preferable
thank you for your suggestion. If it is possible to resolve this with the WIN32_LEAN_AND_MEAN macro , this solution seems preferable
from thorvg.
@vsaulue Hello, the fix will be applied in v0.13.3. With the version, it will insert the addressed the definition - WIN32_LINEA_AND_MEAN in thorvg "config.h"
Please let us know if you have any trouble with the solution. Thanks.
from thorvg.
Hi @hermet,
I don't see a conanfile.py
in the repo to test the Conan packaging, so I tested the build directly with git clone
and meson
instead. I was able to reproduce the errors on v0.13.2
, and they are effectively gone on the main
branch, so it looks good.
Thanks for the quick fix !
from thorvg.
Related Issues (20)
- web: Improve ambiguous WASM type defination
- Incorrect results for gradient mask HOT 1
- svg: a regression bug HOT 4
- [SVG] Nested elements rendering when they shouldn't HOT 6
- sw_engine: support simd with webassembly
- question about source code HOT 1
- lottie: inccorect glyph positions
- C API: Use of `nullptr` as default parameter causing failure to compile HOT 4
- lottie: support Shape Modifier feature HOT 1
- lottie: improve Expressions
- ThorVG Swift Support
- Support nested `<svg>` elements
- lottie: replace the jerryscript memory allocator
- Segmentation Fault When Resetting Animation Overrides HOT 4
- lottie: support multi-threading for the expressions
- lottie: support "skew" property HOT 1
- warning 'ignoring pragma with msys2 + mingw
- sw_engine: crash at texmap antialiasing
- `tvg_set_frame` API returns imprecise frame number in `tvg_get_current_frame` after upgrade to v0.13.3 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thorvg.