Menu

backends/graphics/opengl/texture.cpp:25:10: fatal error: 'ppl.h' file not found

2019-04-07
2020-11-15
  • Luke Ireland

    Luke Ireland - 2019-04-07

    I can't be much more descriptive than the title sadly. How can I fix this?

     
  • Luke Ireland

    Luke Ireland - 2019-04-07

    Image:

     
  • Luke Ireland

    Luke Ireland - 2019-04-07

    Image:

     
  • Zenju

    Zenju - 2019-04-08

    ppl.h only exists on Visual Studio on Windows and is used for task scheduling. But it's easy (for me) to use the task scheduler from FreeFileSync, which would be portable to all OSs. I'll see to include it when I update to ScummVm 2.0

     

    Last edit: Zenju 2019-04-08
    • Luke Ireland

      Luke Ireland - 2019-04-08

      I can find ppl.h in FreeFileSync source then?

       
  • SalvaDor Liébana

    please do that!! ive need this sooo much!!

     
  • jmredfern

    jmredfern - 2020-04-22

    I've tried compiling on Macos and ran into the same issue, hoping you can switch to FreeFileSync :)

     
    • Zenju

      Zenju - 2020-04-23

      I think I forgot! :D Just updated the latest source code (which is still ScummVM 2.0) to use the FFS task scheduler. The build now requires an additional file, thread.cpp, which is part of FreeFileSync.

      Caveat: I haven't tested the code! I couldn't even compile it, since ScummVM apparently doesn't support Unicode on Windows. On macOS/Linux this shouldn't be a problem. You just have to make sure that thread.cpp (and its dependencies e.g. sys_error.cpp, ect.) are compiled and linked against ScummVM.

       

      Last edit: Zenju 2020-04-23
  • jmredfern

    jmredfern - 2020-05-01

    Thanks for updating that! :) I registered on the freefilesync board but for some reason my user account hasn't been activated. We're having a problem building freefilesync on macos, is there any docs for how to do that? These were the notes from my friend:

    smp: the main issue is that the zen thread library from FreeSync is not macOS compatible
    smp: it depends for example on sys/prctl.h - which is a pure linux thing
    smp: also it requires error codes from cerrno - then there is a switch which includes like 30 linux specific error codes. i removed that code because it wasnt really required but then in thread.cpp things got wired
    smp: i still try to understand how this thing should be compilable under macOS as it seems freesync is runnable on macos, i am still looking for the they how they did it
    smp: maybe they cross compiled, but .... i need to dig deeper 😄
    smp: i also dont cant find any documentation how to build the freesync program. have you seen any docs?
    jim: I didnt see any, will try to find that
    smp: Yeah, me neither. I didnt find anything in the forum either.
    jim: It seems the guy who wrote the scummvm with xbrz is also wrote freefilesync
    jim: there's a forum on freefilesync, I just registered, will ask if there's any info
    jim: hmm waiting to be activated
    smp: cool!
    smp: i cant understand how this should work right now
    smp: i dont see any platform specific parts for the posix stuff to distinguish between macOS and linux
    smp: the thing is that if there is no way to build the thread.cpp for darwin the scummVM wont compile 😕
    smp: i also thought that he can test the builds using GitHub + TravisCI
    smp: For free / open source projects the integration usable for free
    smp: https://docs.travis-ci.com/user/reference/osx/
    smp: https://docs.travis-ci.com/user/multi-os/
    jim: nice idea :)

     
  • SalvaDor Liébana

     primary-expression before > token
      168 |     static_assert(std::is_integral<PixTrg>::value,                            "PixTrg* is expected to be cast-able to char*");
          |                                          ^
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:168:45: error: ::value has not been declared
      168 |     static_assert(std::is_integral<PixTrg>::value,                            "PixTrg* is expected to be cast-able to char*");
          |                                             ^~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:168:5: error: there are no arguments to static_assert that depend on a template parameter, so a declaration of static_assert must be available [-fpermissive]
      168 |     static_assert(std::is_integral<PixTrg>::value,                            "PixTrg* is expected to be cast-able to char*");
          |     ^~~~~~~~~~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:169:24: error: is_same is not a member of std
      169 |     static_assert(std::is_same<decltype(pixCvrt(uint32_t())), PixTrg>::value, "PixConverter returning wrong pixel format");
          |                        ^~~~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:169:49: error: there are no arguments to uint32_t that depend on a template parameter, so a declaration of uint32_t must be available [-fpermissive]
      169 |     static_assert(std::is_same<decltype(pixCvrt(uint32_t())), PixTrg>::value, "PixConverter returning wrong pixel format");
          |                                                 ^~~~~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:169:69: error: expected primary-expression before > token
      169 | tic_assert(std::is_same<decltype(pixCvrt(uint32_t())), PixTrg>::value, "PixConverter returning wrong pixel format");
          |                                                              ^
    
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:169:72: error: ::value has not been declared
      169 | _assert(std::is_same<decltype(pixCvrt(uint32_t())), PixTrg>::value, "PixConverter returning wrong pixel format");
          |                                                              ^~~~~
    
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:171:55: error: uint32_t was not declared in this scope; did you mean u_int32_t?
      171 |     if (srcPitch < srcWidth * static_cast<int>(sizeof(uint32_t)) ||
          |                                                       ^~~~~~~~
          |                                                       u_int32_t
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:190:22: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
      190 |         int     x1 = 0;
          |                      ^
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:191:22: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
      191 |         int     x2 = 0;
          |                      ^
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:192:22: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
      192 |         double xx1 = 0;
          |                      ^
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:193:22: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
      193 |         double x2x = 0;
          |                      ^
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:205:37: warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
      205 |         buf[x] = { x1, x2, xx1, x2x };
          |                                     ^
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:217:15: error: uint32_t does not name a type; did you mean u_int32_t?
      217 |         const uint32_t* const srcLine     = byteAdvance(src, y1 * srcPitch);
          |               ^~~~~~~~
          |               u_int32_t
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:218:15: error: uint32_t does not name a type; did you mean u_int32_t?
      218 |         const uint32_t* const srcLineNext = byteAdvance(src, y2 * srcPitch);
          |               ^~~~~~~~
          |               u_int32_t
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:234:13: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      234 |             auto interpolate = [=](int offset)
          |             ^~~~
          |             ----
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:234:18: error: interpolate does not name a type
      234 |             auto interpolate = [=](int offset)
          |                  ^~~~~~~~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:248:31: error: there are no arguments to interpolate that depend on a template parameter, so a declaration of interpolate must be available [-fpermissive]
      248 |             const double bi = interpolate(0);
          |                               ^~~~~~~~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:249:31: error: there are no arguments to interpolate that depend on a template parameter, so a declaration of interpolate must be available [-fpermissive]
      249 |             const double gi = interpolate(1);
          |                               ^~~~~~~~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:250:31: error: there are no arguments to interpolate that depend on a template parameter, so a declaration of interpolate must be available [-fpermissive]
      250 |             const double ri = interpolate(2);
          |                               ^~~~~~~~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:251:31: error: there are no arguments to interpolate that depend on a template parameter, so a declaration of interpolate must be available [-fpermissive]
      251 |             const double ai = interpolate(3);
          |                               ^~~~~~~~~~~
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:253:19: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      253 |             const auto b = static_cast<uint32_t>(bi + 0.5);
          |                   ^~~~
          |                   ----
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:253:24: error: b does not name a type; did you mean bi?
      253 |             const auto b = static_cast<uint32_t>(bi + 0.5);
          |                        ^
          |                        bi
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:254:19: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      254 |             const auto g = static_cast<uint32_t>(gi + 0.5);
          |                   ^~~~
          |                   ----
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:254:24: error: g does not name a type; did you mean gi?
      254 |             const auto g = static_cast<uint32_t>(gi + 0.5);
          |                        ^
          |                        gi
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:255:19: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      255 |             const auto r = static_cast<uint32_t>(ri + 0.5);
          |                   ^~~~
          |                   ----
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:255:24: error: r does not name a type; did you mean ri?
      255 |             const auto r = static_cast<uint32_t>(ri + 0.5);
          |                        ^
          |                        ri
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:256:19: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      256 |             const auto a = static_cast<uint32_t>(ai + 0.5);
          |                   ^~~~
          |                   ----
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:256:24: error: a does not name a type; did you mean ai?
      256 |             const auto a = static_cast<uint32_t>(ai + 0.5);
          |                        ^
          |                        ai
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:258:19: error: uint32_t does not name a type; did you mean u_int32_t?
      258 |             const uint32_t trgPix = (a << 24) | (r << 16) | (g << 8) | b;
          |                   ^~~~~~~~
          |                   u_int32_t
    backends/graphics/opengl/../../../LIBS/xbrz/xbrz_tools.h:260:34: error: trgPix was not declared in this scope
      260 |             trgLine[x] = pixCvrt(trgPix);
          |                                  ^~~~~~
        C++      image/pcx.o
        C++      image/pict.o
        C++      image/png.o
        C++      image/tga.o
    In file included from backends/graphics/opengl/texture.cpp:40:
    ./backends/graphics/opengl/texture.h: At global scope:
    ./backends/graphics/opengl/texture.h:332:29: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
      332 |     int xbrzScaleFactor_ = -1; //later linear-scaled to fit screen with openGL
          |                             ^
    backends/graphics/opengl/texture.cpp: In member function virtual void OpenGL::Texture::updateGLTexture()’:
    backends/graphics/opengl/texture.cpp:307:28: error: max was not declared in this scope; did you mean std::max?
      307 |         dirtyArea.top    = max(0, dirtyArea.top  - 2);
          |                            ^~~
          |                            std::max
    In file included from /usr/include/c++/9/vector:60,
                     from backends/graphics/opengl/texture.cpp:23:
    /usr/include/c++/9/bits/stl_algobase.h:268:5: note: std::max declared here
      268 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
          |     ^~~
    backends/graphics/opengl/texture.cpp:309:28: error: min was not declared in this scope; did you mean std::min?
      309 |         dirtyArea.bottom = min(getSurface()->h, dirtyArea.bottom + 2); //compare against "_clut8Data"
          |                            ^~~
          |                            std::min
    In file included from /usr/include/c++/9/vector:60,
                     from backends/graphics/opengl/texture.cpp:23:
    /usr/include/c++/9/bits/stl_algobase.h:246:5: note: std::min declared here
      246 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
          |     ^~~
    backends/graphics/opengl/texture.cpp: At global scope:
    backends/graphics/opengl/texture.cpp:357:29: warning: non-static data member initializers only available with -std=c++11 or -std=gnu++11
      357 |     int transparentColor = -1;
          |                             ^
    backends/graphics/opengl/texture.cpp: In member function virtual void OpenGL::TextureCLUT8::allocate(uint, uint)’:
    backends/graphics/opengl/texture.cpp:384:35: error: max was not declared in this scope; did you mean std::max?
      384 |         xbrzScaleFactor_ = min(6, max(2, static_cast<int>(round(sampleMonitorHeight / height))));
          |                                   ^~~
          |                                   std::max
    In file included from /usr/include/c++/9/vector:60,
                     from backends/graphics/opengl/texture.cpp:23:
    /usr/include/c++/9/bits/stl_algobase.h:268:5: note: std::max declared here
      268 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
          |     ^~~
    backends/graphics/opengl/texture.cpp:384:28: error: min was not declared in this scope; did you mean std::min?
      384 |         xbrzScaleFactor_ = min(6, max(2, static_cast<int>(round(sampleMonitorHeight / height))));
          |                            ^~~
          |                            std::min
    In file included from /usr/include/c++/9/vector:60,
                     from backends/graphics/opengl/texture.cpp:23:
    /usr/include/c++/9/bits/stl_algobase.h:246:5: note: std::min declared here
      246 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
          |     ^~~
    backends/graphics/opengl/texture.cpp:388:5: warning: this else clause does not guard... [-Wmisleading-indentation]
      388 |     else
          |     ^~~~
    backends/graphics/opengl/texture.cpp:394:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the else
      394 |  if (width == _clut8Data.w && height == _clut8Data.h) {
          |  ^~
    backends/graphics/opengl/texture.cpp: In member function virtual void OpenGL::TextureCLUT8::setPalette(uint, uint, const byte*)’:
    backends/graphics/opengl/texture.cpp:442:9: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      442 |         auto rgbTrg = reinterpret_cast<unsigned char*>(&xbrzPimpl_->eightBitToRgb[start]);
          |         ^~~~
          |         ----
    backends/graphics/opengl/texture.cpp:442:14: error: rgbTrg does not name a type
      442 |         auto rgbTrg = reinterpret_cast<unsigned char*>(&xbrzPimpl_->eightBitToRgb[start]);
          |              ^~~~~~
    backends/graphics/opengl/texture.cpp:449:14: error: rgbTrg was not declared in this scope
      449 |             *rgbTrg++ = b; //compatible byte order for xBRZ
          |              ^~~~~~
    backends/graphics/opengl/texture.cpp:457:5: warning: this else clause does not guard... [-Wmisleading-indentation]
      457 |     else
          |     ^~~~
    backends/graphics/opengl/texture.cpp:468:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the else
      468 |  flagDirty();
          |  ^~~~~~~~~
    backends/graphics/opengl/texture.cpp: At global scope:
    backends/graphics/opengl/texture.cpp:491:23: error: function is not a member of std
      491 | zen::ThreadGroup<std::function<void()>> globalXbrzThreadGroup(std::max<int>(std::thread::hardware_concurrency(), 1), "xBRZ Scaler");
          |                       ^~~~~~~~
    backends/graphics/opengl/texture.cpp:491:23: note: std::function is only available from C++11 onwards
    backends/graphics/opengl/texture.cpp:491:23: error: function is not a member of std
    backends/graphics/opengl/texture.cpp:491:23: note: std::function is only available from C++11 onwards
    backends/graphics/opengl/texture.cpp:491:37: error: a call to a constructor cannot appear in a constant-expression
      491 | zen::ThreadGroup<std::function<void()>> globalXbrzThreadGroup(std::max<int>(std::thread::hardware_concurrency(), 1), "xBRZ Scaler");
          |                                     ^
    backends/graphics/opengl/texture.cpp:491:68: error: max<int> cannot appear in a constant-expression
      491 | hreadGroup<std::function<void()>> globalXbrzThreadGroup(std::max<int>(std::thread::hardware_concurrency(), 1), "xBRZ Scaler");
          |                                                              ^~~~~~~~
    
    backends/graphics/opengl/texture.cpp:491:82: error: thread is not a member of std
      491 | ::function<void()>> globalXbrzThreadGroup(std::max<int>(std::thread::hardware_concurrency(), 1), "xBRZ Scaler");
          |                                                              ^~~~~~
    
    backends/graphics/opengl/texture.cpp:491:82: note: std::thread is only available from C++11 onwards
    backends/graphics/opengl/texture.cpp:491:115: error: a function call cannot appear in a constant-expression
      491 | eadGroup(std::max<int>(std::thread::hardware_concurrency(), 1), "xBRZ Scaler");
          |                                                              ^
    
    backends/graphics/opengl/texture.cpp:491:131: error: a function call cannot appear in a constant-expression
      491 | x<int>(std::thread::hardware_concurrency(), 1), "xBRZ Scaler");
          |                                                              ^
    
    backends/graphics/opengl/texture.cpp:491:131: error: template argument 1 is invalid
    backends/graphics/opengl/texture.cpp: In function void OpenGL::{anonymous}::copyDirtyArea(const uint32_t*, int, PixelType*, int, const Common::Rect&, const Graphics::PixelFormat&)’:
    backends/graphics/opengl/texture.cpp:500:5: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      500 |     auto srcLoc = reinterpret_cast<const uint32_t*>(reinterpret_cast<const char*>(src) + dirtyArea.top * srcPitch + dirtyArea.left * sizeof(uint32_t));
          |     ^~~~
          |     ----
    backends/graphics/opengl/texture.cpp:500:10: error: srcLoc does not name a type
      500 |     auto srcLoc = reinterpret_cast<const uint32_t*>(reinterpret_cast<const char*>(src) + dirtyArea.top * srcPitch + dirtyArea.left * sizeof(uint32_t));
          |          ^~~~~~
    backends/graphics/opengl/texture.cpp:501:5: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      501 |     auto trgLoc = reinterpret_cast<     PixelType*>(reinterpret_cast<      char*>(trg) + dirtyArea.top * trgPitch + dirtyArea.left * sizeof(PixelType));
          |     ^~~~
          |     ----
    backends/graphics/opengl/texture.cpp:501:10: error: trgLoc does not name a type
      501 |     auto trgLoc = reinterpret_cast<     PixelType*>(reinterpret_cast<      char*>(trg) + dirtyArea.top * trgPitch + dirtyArea.left * sizeof(PixelType));
          |          ^~~~~~
    backends/graphics/opengl/texture.cpp:506:3: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      506 |   auto& tg = globalXbrzThreadGroup;
          |   ^~~~
          |   ----
    backends/graphics/opengl/texture.cpp:506:9: error: ISO C++ forbids declaration of tg with no type [-fpermissive]
      506 |   auto& tg = globalXbrzThreadGroup;
          |         ^~
    backends/graphics/opengl/texture.cpp:506:14: error: globalXbrzThreadGroup was not declared in this scope
      506 |   auto& tg = globalXbrzThreadGroup;
          |              ^~~~~~~~~~~~~~~~~~~~~
    backends/graphics/opengl/texture.cpp:509:12: error: request for member run in tg, which is of non-class type int
      509 |         tg.run([=]
          |            ^~~
    backends/graphics/opengl/texture.cpp: In lambda function:
    backends/graphics/opengl/texture.cpp:511:34: error: srcLoc was not declared in this scope
      511 |             nearestNeighborScale(srcLoc, dirtyArea.width(), dirtyArea.height(), srcPitch,
          |                                  ^~~~~~
    backends/graphics/opengl/texture.cpp:512:34: error: trgLoc was not declared in this scope
      512 |                                  trgLoc, dirtyArea.width(), dirtyArea.height(), trgPitch,
          |                                  ^~~~~~
    backends/graphics/opengl/texture.cpp:513:13: error: there are no arguments to min that depend on a template parameter, so a declaration of min must be available [-fpermissive]
      513 |          y, min(y + TASK_GRANULARITY_XBRZ, dirtyArea.height()),
          |             ^~~
    backends/graphics/opengl/texture.cpp: In lambda function:
    backends/graphics/opengl/texture.cpp:514:97: error: xbrz::getAlpha cannot be used as a function
      514 |  static_cast<PixelType>(targetFormat.ARGBToColor(getAlpha(pix), getRed(pix), getGreen(pix), getBlue(pix))); });
          |                                                              ^
    
    backends/graphics/opengl/texture.cpp:514:110: error: xbrz::getRed cannot be used as a function
      514 | PixelType>(targetFormat.ARGBToColor(getAlpha(pix), getRed(pix), getGreen(pix), getBlue(pix))); });
          |                                                              ^
    
    backends/graphics/opengl/texture.cpp:514:125: error: xbrz::getGreen cannot be used as a function
      514 | etFormat.ARGBToColor(getAlpha(pix), getRed(pix), getGreen(pix), getBlue(pix))); });
          |                                                              ^
    
    backends/graphics/opengl/texture.cpp:514:139: error: xbrz::getBlue cannot be used as a function
      514 | rmat.ARGBToColor(getAlpha(pix), getRed(pix), getGreen(pix), getBlue(pix))); });
          |                                                                        ^
    
    backends/graphics/opengl/texture.cpp: In lambda function:
    backends/graphics/opengl/texture.cpp:514:144: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
      514 | r(getAlpha(pix), getRed(pix), getGreen(pix), getBlue(pix))); });
          |                                                              ^
    
    backends/graphics/opengl/texture.cpp: In function void OpenGL::{anonymous}::copyDirtyArea(const uint32_t*, int, PixelType*, int, const Common::Rect&, const Graphics::PixelFormat&)’:
    backends/graphics/opengl/texture.cpp:515:9: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
      515 |         });
          |         ^
    backends/graphics/opengl/texture.cpp:516:8: error: request for member wait in tg, which is of non-class type int
      516 |     tg.wait();
          |        ^~~~
    backends/graphics/opengl/texture.cpp: In member function virtual void OpenGL::TextureCLUT8::updateGLTexture()’:
    backends/graphics/opengl/texture.cpp:539:9: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      539 |         auto raw8bitIn = static_cast<const unsigned char*>(_clut8Data.getBasePtr(dirtyArea.left, dirtyArea.top));
          |         ^~~~
          |         ----
    backends/graphics/opengl/texture.cpp:539:14: error: raw8bitIn does not name a type
      539 |         auto raw8bitIn = static_cast<const unsigned char*>(_clut8Data.getBasePtr(dirtyArea.left, dirtyArea.top));
          |              ^~~~~~~~~
    backends/graphics/opengl/texture.cpp:540:9: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      540 |         auto xbrzBufIn = &xbrzPimpl_->xbrzBufIn[dirtyArea.top * _clut8Data.w + dirtyArea.left];
          |         ^~~~
          |         ----
    backends/graphics/opengl/texture.cpp:540:14: error: xbrzBufIn does not name a type
      540 |         auto xbrzBufIn = &xbrzPimpl_->xbrzBufIn[dirtyArea.top * _clut8Data.w + dirtyArea.left];
          |              ^~~~~~~~~
    backends/graphics/opengl/texture.cpp:541:15: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      541 |         const auto& eightBitToRgb = xbrzPimpl_->eightBitToRgb;
          |               ^~~~
          |               ----
    backends/graphics/opengl/texture.cpp:541:21: error: ISO C++ forbids declaration of eightBitToRgb with no type [-fpermissive]
      541 |         const auto& eightBitToRgb = xbrzPimpl_->eightBitToRgb;
          |                     ^~~~~~~~~~~~~
    backends/graphics/opengl/texture.cpp:541:49: error: invalid initialization of reference of type const int& from expression of type std::vector<unsigned int>
      541 |         const auto& eightBitToRgb = xbrzPimpl_->eightBitToRgb;
          |                                     ~~~~~~~~~~~~^~~~~~~~~~~~~
    backends/graphics/opengl/texture.cpp:546:17: error: xbrzBufIn was not declared in this scope
      546 |                 xbrzBufIn[x] = eightBitToRgb[raw8bitIn[x]];
          |                 ^~~~~~~~~
        C++      image/codecs/bmp_raw.o
    backends/graphics/opengl/texture.cpp:546:46: error: raw8bitIn was not declared in this scope
      546 |                 xbrzBufIn[x] = eightBitToRgb[raw8bitIn[x]];
          |                                              ^~~~~~~~~
    backends/graphics/opengl/texture.cpp:548:13: error: raw8bitIn was not declared in this scope
      548 |             raw8bitIn += _clut8Data.pitch;
          |             ^~~~~~~~~
    backends/graphics/opengl/texture.cpp:549:13: error: xbrzBufIn was not declared in this scope
      549 |             xbrzBufIn += _clut8Data.w;
          |             ^~~~~~~~~
    backends/graphics/opengl/texture.cpp:559:28: error: max was not declared in this scope; did you mean std::max?
      559 |         dirtyArea.top    = max(0, dirtyArea.top  - 2);
          |                            ^~~
          |                            std::max
    In file included from /usr/include/c++/9/vector:60,
                     from backends/graphics/opengl/texture.cpp:23:
    /usr/include/c++/9/bits/stl_algobase.h:268:5: note: std::max declared here
      268 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
          |     ^~~
    backends/graphics/opengl/texture.cpp:561:28: error: min was not declared in this scope; did you mean std::min?
      561 |         dirtyArea.bottom = min(_clut8Data.h, dirtyArea.bottom + 2);
          |                            ^~~
          |                            std::min
    In file included from /usr/include/c++/9/vector:60,
                     from backends/graphics/opengl/texture.cpp:23:
    /usr/include/c++/9/bits/stl_algobase.h:246:5: note: std::min declared here
      246 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
          |     ^~~
    backends/graphics/opengl/texture.cpp:568:4: warning: auto changes meaning in C++11; please remove it [-Wc++11-compat]
      568 |    auto& tg = globalXbrzThreadGroup;
          |    ^~~~
          |    ----
    backends/graphics/opengl/texture.cpp:568:10: error: ISO C++ forbids declaration of tg with no type [-fpermissive]
      568 |    auto& tg = globalXbrzThreadGroup;
          |          ^~
        C++      image/codecs/cdtoons.o
    backends/graphics/opengl/texture.cpp:568:15: error: globalXbrzThreadGroup was not declared in this scope
      568 |    auto& tg = globalXbrzThreadGroup;
          |               ^~~~~~~~~~~~~~~~~~~~~
    backends/graphics/opengl/texture.cpp:571:20: error: request for member run in tg, which is of non-class type int
      571 |                 tg.run([=] { xbrz::scale(xbrzScaleFactor_,
          |                    ^~~
    backends/graphics/opengl/texture.cpp: In lambda function:
    backends/graphics/opengl/texture.cpp:576:18: error: xbrz::ColorFormat is not a class or namespace
      576 |            xbrz::ColorFormat::ARGB,
          |                  ^~~~~~~~~~~
    backends/graphics/opengl/texture.cpp: In member function virtual void OpenGL::TextureCLUT8::updateGLTexture()’:
    backends/graphics/opengl/texture.cpp:578:66: warning: lambda expressions only available with -std=c++11 or -std=gnu++11
      578 |            i, min(i + TASK_GRANULARITY_XBRZ, dirtyArea.bottom)); });
          |                                                                  ^
    backends/graphics/opengl/texture.cpp:579:16: error: request for member wait in tg, which is of non-class type int
      579 |             tg.wait();
          |                ^~~~
    backends/graphics/opengl/texture.cpp:592:5: warning: this else clause does not guard... [-Wmisleading-indentation]
      592 |     else
          |     ^~~~
    backends/graphics/opengl/texture.cpp:610:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the else
      610 |  Texture::updateGLTexture();
          |  ^~~~~~~
    make: *** [Makefile.common:104: backends/graphics/opengl/texture.o] Error 1
    make: *** Waiting for unfinished jobs....
    pi@RK3399:~/Desktop/ScummVM_2.0.0+xBRZ_Sources$ 
    
     

Log in to post a comment.

MongoDB Logo MongoDB