From de00ea5b94871b8f3c4e52f1bb5a926ae8a0e001 Mon Sep 17 00:00:00 2001 From: codereader Date: Sat, 4 Feb 2017 14:38:52 +0100 Subject: [PATCH] More compilation fixup --- configure.ac | 5 +++++ plugins/scenegraph/SceneGraphFactory.cpp | 2 +- plugins/uimanager/animationpreview/AnimationPreview.cpp | 2 +- plugins/uimanager/colourscheme/ColourScheme.h | 2 +- radiant/Makefile.am | 1 + 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index ac0dc89e8a..22281b33f0 100644 --- a/configure.ac +++ b/configure.ac @@ -176,6 +176,11 @@ AC_CHECK_LIB([dl], [main], [AC_MSG_ERROR([DL library not found])]) AC_SUBST([DL_LIBS]) +AC_CHECK_LIB([intl], [main], + [INTL_LIBS='-lintl'], + [AC_MSG_ERROR([intl library not found])]) +AC_SUBST([INTL_LIBS]) + # Dependent Boost headers AC_CHECK_HEADER([boost/serialization/access.hpp], [], [AC_MSG_ERROR([Boost.Serialization headers not found])]) diff --git a/plugins/scenegraph/SceneGraphFactory.cpp b/plugins/scenegraph/SceneGraphFactory.cpp index bd9a7f41c9..58bf231292 100644 --- a/plugins/scenegraph/SceneGraphFactory.cpp +++ b/plugins/scenegraph/SceneGraphFactory.cpp @@ -8,7 +8,7 @@ namespace scene GraphPtr SceneGraphFactory::createSceneGraph() { - return GraphPtr(new SceneGraph); + return std::make_shared(); } const std::string& SceneGraphFactory::getName() const diff --git a/plugins/uimanager/animationpreview/AnimationPreview.cpp b/plugins/uimanager/animationpreview/AnimationPreview.cpp index 5658e8eabe..b9624a19a7 100644 --- a/plugins/uimanager/animationpreview/AnimationPreview.cpp +++ b/plugins/uimanager/animationpreview/AnimationPreview.cpp @@ -148,7 +148,7 @@ void AnimationPreview::setupSceneGraph() { RenderPreview::setupSceneGraph(); - _root.reset(new scene::BasicRootNode); + _root = std::make_shared(); _entity = GlobalEntityCreator().createEntity( GlobalEntityClassManager().findClass(FUNC_STATIC_CLASS) diff --git a/plugins/uimanager/colourscheme/ColourScheme.h b/plugins/uimanager/colourscheme/ColourScheme.h index 0ec3d6fcc2..36ceb03e13 100644 --- a/plugins/uimanager/colourscheme/ColourScheme.h +++ b/plugins/uimanager/colourscheme/ColourScheme.h @@ -31,7 +31,7 @@ class ColourItem : {} }; -typedef std::map ColourItemMap; +typedef std::map ColourItemMap; /* A colourscheme is basically a collection of ColourItems */ diff --git a/radiant/Makefile.am b/radiant/Makefile.am index 7c9783901e..d06de80625 100644 --- a/radiant/Makefile.am +++ b/radiant/Makefile.am @@ -20,6 +20,7 @@ darkradiant_LDFLAGS = $(XML_LIBS) \ $(BOOST_SYSTEM_LIBS) \ $(BOOST_REGEX_LIBS) \ $(DL_LIBS) \ + $(INTL_LIBS) \ $(WX_LIBS) darkradiant_LDADD = $(top_builddir)/libs/scene/libscenegraph.la \ $(top_builddir)/libs/wxutil/libwxutil.la \