Fix Demo linker flags [patch]

blk

12-02-2011 15:26:55

r137 did not build because of missing link flags in the Demo folder. Attached patch fixes this by linking with the ogre libs.
(re-run bootstrap after applying)

The error message was:
/usr/bin/ld: OgreApp.o: undefined reference to symbol 'Ogre::StringUtil::BLANK'
/usr/bin/ld: note: 'Ogre::StringUtil::BLANK' is defined in DSO /usr/lib64/libOgreMain.so.1.7.2 so try adding it to the linker command line


cheers

:shock: -> can someone please allow the upload of native text files (with any ending)? (esp. .patch and .diff)
WTF not even .txt works.. well there you go (don't complain):

fix-demo-linker-flags.r137.patch

Index: Demos/Directional_Demo/Makefile.am
===================================================================
--- Demos/Directional_Demo/Makefile.am (revision 137)
+++ Demos/Directional_Demo/Makefile.am (working copy)
@@ -3,4 +3,4 @@
demos_PROGRAMS= Directional
Directional_SOURCES= Listener.cpp Listener.h main.cpp OgreApp.cpp OgreApp.h
Directional_LDFLAGS= -L$(top_builddir)/src
-Directional_LDADD= -lOgreAL $(OIS_LIBS)
+Directional_LDADD= -lOgreAL $(OGRE_LIBS) $(OIS_LIBS)
Index: Demos/Basic_Demo/Makefile.am
===================================================================
--- Demos/Basic_Demo/Makefile.am (revision 137)
+++ Demos/Basic_Demo/Makefile.am (working copy)
@@ -3,4 +3,4 @@
demos_PROGRAMS= Basic
Basic_SOURCES= Listener.cpp Listener.h main.cpp OgreApp.cpp OgreApp.h
Basic_LDFLAGS= -L$(top_builddir)/src
-Basic_LDADD= -lOgreAL $(OIS_LIBS)
+Basic_LDADD= -lOgreAL $(OGRE_LIBS) $(OIS_LIBS)
Index: Demos/MultiChannel_Demo/Makefile.am
===================================================================
--- Demos/MultiChannel_Demo/Makefile.am (revision 137)
+++ Demos/MultiChannel_Demo/Makefile.am (working copy)
@@ -3,4 +3,4 @@
demos_PROGRAMS= MultiChannel
MultiChannel_SOURCES= Listener.cpp Listener.h main.cpp OgreApp.cpp OgreApp.h
MultiChannel_LDFLAGS= -L$(top_builddir)/src
-MultiChannel_LDADD= -lOgreAL $(OIS_LIBS)
+MultiChannel_LDADD= -lOgreAL $(OGRE_LIBS) $(OIS_LIBS)
Index: Demos/PlayPen/Makefile.am
===================================================================
--- Demos/PlayPen/Makefile.am (revision 137)
+++ Demos/PlayPen/Makefile.am (working copy)
@@ -3,4 +3,4 @@
demos_PROGRAMS= PlayPen
PlayPen_SOURCES= Listener.cpp Listener.h main.cpp OgreApp.cpp OgreApp.h
PlayPen_LDFLAGS= -L$(top_builddir)/src
-PlayPen_LDADD= -lOgreAL $(OIS_LIBS)
\ No newline at end of file
+PlayPen_LDADD= -lOgreAL $(OGRE_LIBS) $(OIS_LIBS)
Index: Demos/Doppler_Demo/Makefile.am
===================================================================
--- Demos/Doppler_Demo/Makefile.am (revision 137)
+++ Demos/Doppler_Demo/Makefile.am (working copy)
@@ -3,4 +3,4 @@
demos_PROGRAMS= Doppler
Doppler_SOURCES= Listener.cpp Listener.h main.cpp OgreApp.cpp OgreApp.h BetaGUI.h BetaGUI.cpp
Doppler_LDFLAGS= -L$(top_builddir)/src
-Doppler_LDADD= -lOgreAL $(OIS_LIBS)
+Doppler_LDADD= -lOgreAL $(OGRE_LIBS) $(OIS_LIBS)
Index: Demos/ManySources_Demo/Makefile.am
===================================================================
--- Demos/ManySources_Demo/Makefile.am (revision 137)
+++ Demos/ManySources_Demo/Makefile.am (working copy)
@@ -3,4 +3,4 @@
demos_PROGRAMS= ManySources
ManySources_SOURCES= Listener.cpp Listener.h main.cpp OgreApp.cpp OgreApp.h
ManySources_LDFLAGS= -L$(top_builddir)/src
-ManySources_LDADD= -lOgreAL $(OIS_LIBS)
\ No newline at end of file
+ManySources_LDADD= -lOgreAL $(OGRE_LIBS) $(OIS_LIBS)