[Scummvm-tracker] [ScummVM] #10918: Compiler: [AmigaOS4] SDL1 builds break in png with compiler error

ScummVM trac at scummvm.org
Thu Mar 14 21:05:56 CET 2019


#10918: Compiler: [AmigaOS4] SDL1 builds break in png with compiler error
--------------------+-----------------------
Reporter:  raziel-  |      Owner:  (none)
    Type:  defect   |     Status:  new
Priority:  normal   |  Component:  --Unset--
Keywords:           |       Game:
--------------------+-----------------------
 Latest sources

           C++      backends/graphics/opengl/opengl-graphics.o
 In file included from ./image/png.h:36,
                  from backends/graphics/opengl/opengl-graphics.cpp:48:
 ./image/image_decoder.h:37:11: error: 'namespace Image { }' redeclared as
 different kind of symbol
  namespace Image {
            ^~~~~
 In file included from /SDK/include/include_h/intuition/intuitionbase.h:24,
                  from /SDK/include/include_h/proto/intuition.h:17,
                  from /SDK/local/newlib/include/SDL/SDL_syswm.h:55,
                  from ./backends/platform/sdl/sdl-sys.h:147,
                  from ./backends/graphics/opengl/opengl-sys.h:30,
                  from ./backends/graphics/opengl/opengl-graphics.h:26,
                  from backends/graphics/opengl/opengl-graphics.cpp:24:
 /SDK/include/include_h/intuition/intuition.h:754:8: note: previous
 declaration 'struct Image'
  struct Image
         ^~~~~
 In file included from backends/graphics/opengl/opengl-graphics.cpp:48:
 ./image/png.h:47:11: error: 'namespace Image { }' redeclared as different
 kind of symbol
  namespace Image {
            ^~~~~
 In file included from /SDK/include/include_h/intuition/intuitionbase.h:24,
                  from /SDK/include/include_h/proto/intuition.h:17,
                  from /SDK/local/newlib/include/SDL/SDL_syswm.h:55,
                  from ./backends/platform/sdl/sdl-sys.h:147,
                  from ./backends/graphics/opengl/opengl-sys.h:30,
                  from ./backends/graphics/opengl/opengl-graphics.h:26,
                  from backends/graphics/opengl/opengl-graphics.cpp:24:
 /SDK/include/include_h/intuition/intuition.h:754:8: note: previous
 declaration 'struct Image'
  struct Image
         ^~~~~
 backends/graphics/opengl/opengl-graphics.cpp: In member function 'bool
 OpenGL::OpenGLGraphicsManager::saveScreenshot(const Common::String&)
 const':
 backends/graphics/opengl/opengl-graphics.cpp:1225:16: error: 'writePNG' is
 not a member of 'Image'
   return Image::writePNG(out, data, true);
                 ^~~~~~~~
 gmake: *** [backends/graphics/opengl/opengl-graphics.o] Error 1

 gcc (adtools build 8.3.0) 8.3.0
 AmigaOS4 - PPC - SDL - BE

-- 
Ticket URL: <https://bugs.scummvm.org/ticket/10918>
ScummVM <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list