[Scummvm-devel] PORTERS: Testing needed for GSoC OpenGL Branch
Marcus Comstedt
marcus at mc.pp.se
Fri Aug 6 21:41:12 CEST 2010
vgvgf <vgvgvgf at gmail.com> writes:
> There is no auto detection for OpenGL in the configure script, yet. I
> should implement that, anyone have an idea how? For now, a quick
> solution can be to use --disable-opengl if it is not available.
Thanks.
Now I can build without compilation errors, but I do get a link error:
| LINK scummvm.elf
| backends/libbackends.a(dc-provider.o): In function `DCPluginProvider::createPlugin(Common::FSNode const&) const':
| /tmp/gsoc2010-opengl/common/textconsole.h:71: multiple definition of `DCPluginProvider::createPlugin(Common::FSNode const&) const'
| backends/libbackends.a(dc-provider.o):/tmp/gsoc2010-opengl/common/textconsole.h:71: first defined here
| backends/libbackends.a(dc-provider.o): In function `DCPluginProvider::isPluginFilename(Common::FSNode const&) const':
| /tmp/gsoc2010-opengl/backends/plugins/dynamic-plugin.h:90: multiple definition of `DCPluginProvider::isPluginFilename(Common::FSNode const&) const'
| backends/libbackends.a(dc-provider.o):/tmp/gsoc2010-opengl/backends/plugins/dc/dc-provider.cpp:91: first defined here
| collect2: ld returned 1 exit status
| gmake: *** [scummvm.elf] Error 1
The problem is that dc-provider.o is included twice in libbackends.a.
This comes from it being listed first once unconditionally in
MODULE_OBJS, and then once more conditioned on $(BACKEND)==dc, in the
module.mk of backends.
I don't see how this relates to OpenGL support, but on the trunk
dc-provider.o is not listed in the unconditional block.
// Marcus
More information about the Scummvm-devel
mailing list