Git Product home page Git Product logo

Comments (6)

rodlie avatar rodlie commented on June 8, 2024

https://gitlab.freedesktop.org/poppler/poppler/-/commit/5bebbe59a1e971dfd6b2f1f76d51dc544239ffb6
https://en.cppreference.com/w/cpp/string/basic_string_view (since C++17)

This is an issue with poppler IMHO.

from openfx-arena.

vojta001 avatar vojta001 commented on June 8, 2024

I can confirm openfx-arena builds with poppler 22.08.0 when -std=c++17 is used.

Can't we simply bump the C++ standard version used?

from openfx-arena.

rodlie avatar rodlie commented on June 8, 2024

Use CMake? -DCMAKE_CXX_STANDARD=17.

from openfx-arena.

vojta001 avatar vojta001 commented on June 8, 2024

I did something similar and yep, it works for me. I am just suggesting to change the default in Makefile.master, so that others don't face the same issue

from openfx-arena.

devernay avatar devernay commented on June 8, 2024

poppler includes should at least disable declarations of C++17-specific API, which we don't use in ReadPDF anyway. But we have to deal with how the poppler developpers enforced compiling in C++17 mode.

There should be no issue with compiling in C++17 mode on clang, GCC, and VC++, according to this: https://stackoverflow.com/q/46746878

C++17 is necessary only to compiler ReadPDF with poppler >= 21.12, but I think it's OK to enable it to compile the whole plugin set. I wouldn't switch the main Natron code to using C++17, since it's still being built with Qt4, which barely supports C++11.

BTW, this line in openfx-arena:

globalParams.reset(new GlobalParams(popplerData.c_str()));

should be replaced by

globalParams = make_unique<GlobalParams>(popplerData.c_str()));

from openfx-arena.

rodlie avatar rodlie commented on June 8, 2024

Ok, will bump to c++17. I'm busy today, but will do it tomorrow (also got other fixes for openfx-arena in my queue).

I wouldn't switch the main Natron code to using C++17, since it's still being built with Qt4, which barely supports C++11.

On Windows using latest GCC (12) and MinGW I'm not able to build Qt4 with c++11 anymore, had to revert to c++98 (just gets random failures with c++11 and beyond).

from openfx-arena.

Related Issues (16)

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.