Giter VIP home page Giter VIP logo

Comments (7)

lgritz avatar lgritz commented on June 2, 2024 1

Does OpenVDB 10.1 require a C++17 minimum?

from openimageio.

ThiagoIze avatar ThiagoIze commented on June 2, 2024

The error message says:
D:/M/msys64/mingw64/include/openvdb/TypeList.h:858:41: note: 'std::tuple_size_v' is only available from C++17 onwards
you are compiling with C++14. Tell your compiler to use C++17 and it will probably work. I think that's CMAKE_CXX_STANDARD=17

from openimageio.

MehdiChinoune avatar MehdiChinoune commented on June 2, 2024

It buil

The error message says: D:/M/msys64/mingw64/include/openvdb/TypeList.h:858:41: note: 'std::tuple_size_v' is only available from C++17 onwards you are compiling with C++14. Tell your compiler to use C++17 and it will probably work. I think that's CMAKE_CXX_STANDARD=17

It works, Thanks.
Still there is no mention of C++17 requirement in the release notes.

from openimageio.

lgritz avatar lgritz commented on June 2, 2024

Actually: https://github.com/AcademySoftwareFoundation/openvdb/blob/master/cmake/config/OpenVDBVersions.cmake#L17

I will make a PR for OIIO that gives appropriate warnings when building against an OpenVDB that's so new that it requires C++17.

from openimageio.

lgritz avatar lgritz commented on June 2, 2024

Yeah, looking at older versions of OpenVDB source, it looks like through 9.x, C++14 was adequate, but for OpenVDB >= 10.0, C++17 was their minimum.

from openimageio.

MehdiChinoune avatar MehdiChinoune commented on June 2, 2024

Yeah, looking at older versions of OpenVDB source, it looks like through 9.x, C++14 was adequate, but for OpenVDB >= 10.0, C++17 was their minimum.

It was building fine against 10.0.1, Maybe they started using C++17 features with 10.1.0

from openimageio.

lgritz avatar lgritz commented on June 2, 2024

To try to protect against this in the future: #4023

from openimageio.

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.