Doonlunacy rev 1041 does not compile with libeastwood v0.3.0

Asked by gazsp

Hi,

I get the following error when compiling Doonlunacy (bzr revision 1041) on Ubuntu with libeastwood 0.3.0

gazsp@gazsp-desktop:~/Downloads/doonlunacy/build$ make
[ 1%] Building CXX object src/CMakeFiles/doonlunacy.dir/main.cpp.o
In file included from /home/gazsp/Downloads/doonlunacy/include/DataCache.h:10,
                 from /home/gazsp/Downloads/doonlunacy/include/states/State.h:5,
                 from /home/gazsp/Downloads/doonlunacy/include/Application.h:7,
                 from /home/gazsp/Downloads/doonlunacy/src/main.cpp:1:
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘void Image::setColorKey(int, int)’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:179: error: within this context
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘void Image::blitFrom(Image*, const Rect&, const UPoint&)’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:196: error: within this context
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:196: error: cannot convert ‘Image’ to ‘SDL_Surface*’ for argument ‘1’ to ‘int SDL_UpperBlit(SDL_Surface*, SDL_Rect*, SDL_Surface*, SDL_Rect*)’
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘void Image::blitFrom(Image*, const UPoint&)’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:206: error: within this context
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:206: error: cannot convert ‘Image’ to ‘SDL_Surface*’ for argument ‘1’ to ‘int SDL_UpperBlit(SDL_Surface*, SDL_Rect*, SDL_Surface*, SDL_Rect*)’
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘void Image::blitFrom(Image*)’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:215: error: within this context
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:215: error: cannot convert ‘Image’ to ‘SDL_Surface*’ for argument ‘1’ to ‘int SDL_UpperBlit(SDL_Surface*, SDL_Rect*, SDL_Surface*, SDL_Rect*)’
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘void Image::blitFromCentered(Image*)’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:224: error: within this context
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:224: error: cannot convert ‘Image’ to ‘SDL_Surface*’ for argument ‘1’ to ‘int SDL_UpperBlit(SDL_Surface*, SDL_Rect*, SDL_Surface*, SDL_Rect*)’
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘void Image::fillRect(uint32_t, Rect)’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:285: error: within this context
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘int Image::flip()’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:416: error: within this context
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘int Image::saveBMP(std::string)’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:420: error: within this context
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘bool Image::mustLock()’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:428: error: within this context
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:428: error: within this context
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘int Image::lockSurface()’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:432: error: within this context
/usr/local/include/eastwood/SDL/Surface.h: In member function ‘void Image::unlockSurface()’:
/usr/local/include/eastwood/SDL/Surface.h:28: error: ‘SDL_Surface* eastwood::SDL::Surface::_surface’ is private
/home/gazsp/Downloads/doonlunacy/include/Gfx.h:436: error: within this context
make[2]: *** [src/CMakeFiles/doonlunacy.dir/main.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/doonlunacy.dir/all] Error 2
make: *** [all] Error 2

Thanks,
Gaz.

Question information

Language:
English Edit question
Status:
Answered
For:
libeastwood Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Per Øyvind Karlsen (proyvind) said :
#1

use latest libeastwood from trunk rather than 0.3.0 and it should hopefully work better for you.. :)

Can you help with this problem?

Provide an answer of your own, or ask gazsp for more information if necessary.

To post a message you must log in.