[ scummvm-Bugs-2976619 ] BUILD: Link error when building without engines

SourceForge.net noreply at sourceforge.net
Thu Mar 25 19:12:09 CET 2010


Bugs item #2976619, was opened at 2010-03-25 20:12
Message generated for change (Tracker Item Submitted) made by salty-horse
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2976619&group_id=37116

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Compiler error
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Ori Avtalion (salty-horse)
Assigned to: Nobody/Anonymous (nobody)
Summary: BUILD: Link error when building without engines

Initial Comment:
Using latest svn.

Building without engines is useful for testing non-engine functionality quickly.
However, when configuring scummvm with --disable-all-engines, the final linking operation fails:

$ g++  -lm  backends/platform/sdl/events.o backends/platform/sdl/graphics.o backends/platform/sdl/hardwarekeys.o backends/platform/sdl/main.o backends/platform/sdl/sdl.o base/libbase.a engines/libengines.a gui/libgui.a graphics/libgraphics.a sound/libsound.a backends/libbackends.a common/libcommon.a sound/softsynth/mt32/libmt32.a   -lvorbisfile -lvorbis -logg   -lFLAC -logg  -lmad  -lasound  -lz  -lfluidsynth -L/usr/lib -lSDL -o scummvm

/home/ori/clang-crash/scummvm-git/gui/saveload.cpp:247: undefined reference to `SaveStateDescriptor::getBool(Common::String const&) const'
/home/ori/clang-crash/scummvm-git/backends/events/default/default-events.cpp:107: undefined reference to `g_engine'

I managed to fix this by moving engines/libengines.a and graphics/libgraphics.a (on which some engines, like gob, depend) to be right after backends/libbackends.a.

The attached patch changes the order of the "engines" module to be after "backends".
I have tested that this successfully builds both --disable-all-engines and --enable-all-engines

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=418820&aid=2976619&group_id=37116




More information about the Scummvm-tracker mailing list