Giter Club home page Giter Club logo

Comments (5)

rinechran avatar rinechran commented on June 14, 2024

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.

vtorri avatar vtorri commented on June 14, 2024

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.

rinechran avatar rinechran commented on June 14, 2024

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.

hermet avatar hermet commented on June 14, 2024

@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"

image

Please let us know if you have any trouble with the solution. Thanks.

from thorvg.

vsaulue avatar vsaulue commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.