marrub-- / GLOOME

No longer under development
58 stars 11 forks source link

Compiling GLOOME on MinGW and MSYS #14

Closed crxtrdude closed 9 years ago

crxtrdude commented 9 years ago

Hey man. I've been compiling this over and over using MinGW over MSYS, followed everything and looked at all of that, but I've been stuck with this:

[ 36%] Building CXX object src/CMakeFiles/gloome.dir/win32/win32gliface.obj
In file included from D:/Project/GLOOME/src/./v_video.h:40:0,
                 from d:/Project/GLOOME/src/win32/hardware.h:38,
                 from d:/Project/GLOOME/src/win32/win32iface.h:49,
                 from d:/Project/GLOOME/src/win32/win32gliface.cpp:3:
D:/Project/GLOOME/src/./dobject.h:157:17: error: redeclaration of 'typedef class Win32GLFrameBuffer OpenGLFrameBuffer::Super'
  typedef parent Super; \
                 ^
D:/Project/GLOOME/src/./dobject.h:161:2: note: in expansion of macro 'DECLARE_ABSTRACT_CLASS'
  DECLARE_ABSTRACT_CLASS(cls,parent) \
  ^
D:/Project/GLOOME/src/./gl/system/gl_framebuffer.h:17:2: note: in expansion of macro 'DECLARE_CLASS'
  DECLARE_CLASS(OpenGLFrameBuffer, Win32GLFrameBuffer)
  ^
In file included from d:/Project/GLOOME/src/win32/win32gliface.cpp:18:0:
D:/Project/GLOOME/src/./gl/system/gl_framebuffer.h:16:29: note: previous declaration 'typedef class Win32GLFrameBuffer OpenGLFrameBuffer::Super'
  typedef Win32GLFrameBuffer Super;
                             ^
make[2]: *** [src/CMakeFiles/gloome.dir/win32/win32gliface.obj] Error 1
make[1]: *** [src/CMakeFiles/gloome.dir/all] Error 2
make: *** [all] Error 2

I don't know why it stated the redeclaration thing in the code. I want to test it over on MinGW instead so that I would see if it works.

crxtrdude commented 9 years ago

I'll just close this, because I've just compiled it successfully in VC Express 2012. I think the source is so ingrained now with DX that I think using MinGW wouldn't be feasible.