Skip to content

Instantly share code, notes, and snippets.

Created December 4, 2013 16:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/49b48caf8e10de863943 to your computer and use it in GitHub Desktop.
STK build error on OS X 10.9 using clang. Additional patch that breaks some things (see forum).
Index: src/states_screens/offline_kart_selection.hpp
===================================================================
--- src/states_screens/offline_kart_selection.hpp (revision 14633)
+++ src/states_screens/offline_kart_selection.hpp (working copy)
@@ -12,7 +12,7 @@
virtual ~OfflineKartSelectionScreen();
public:
- static bool isRunning() { return singleton!=NULL; }
+ //static bool isRunning() { return singleton!=NULL; }
// we do not override anything, this class is just there to have a singleton
};
[ 3%] [ 4%] Built target enet
Built target wiiuse
[ 5%] Built target bulletmath
[ 7%] Built target bulletdynamics
[ 19%] Built target bulletcollision
[ 59%] Built target stkirrlicht
[ 59%] Building CXX object CMakeFiles/supertuxkart.dir/src/states_screens/offline_kart_selection.cpp.o
In file included from /Users/max/supertuxkart/src/states_screens/offline_kart_selection.cpp:1:
In file included from /Users/max/supertuxkart/src/states_screens/offline_kart_selection.hpp:4:
In file included from /Users/max/supertuxkart/src/states_screens/kart_selection.hpp:25:
/Users/max/supertuxkart/src/guiengine/widgets/label_widget.hpp:86:22: warning:
'GUIEngine::LabelWidget::setText' hides overloaded virtual functions
[-Woverloaded-virtual]
virtual void setText(const wchar_t *text, bool expandAsNeeded);
^
/Users/max/supertuxkart/src/guiengine/widget.hpp:422:22: note:
hidden overloaded virtual function 'GUIEngine::Widget::setText' declared here
virtual void setText(const wchar_t *s);
^
/Users/max/supertuxkart/src/guiengine/widget.hpp:432:22: note:
hidden overloaded virtual function 'GUIEngine::Widget::setText' declared here
virtual void setText(const irr::core::stringw &s) { setText(s.c_str()); }
^
In file included from /Users/max/supertuxkart/src/states_screens/offline_kart_selection.cpp:1:
In file included from /Users/max/supertuxkart/src/states_screens/offline_kart_selection.hpp:4:
In file included from /Users/max/supertuxkart/src/states_screens/kart_selection.hpp:25:
/Users/max/supertuxkart/src/guiengine/widgets/label_widget.hpp:89:22: warning:
'GUIEngine::LabelWidget::setText' hides overloaded virtual functions
[-Woverloaded-virtual]
virtual void setText(const irr::core::stringw &s, bool expandAsNeeded)
^
/Users/max/supertuxkart/src/guiengine/widget.hpp:422:22: note:
hidden overloaded virtual function 'GUIEngine::Widget::setText' declared here
virtual void setText(const wchar_t *s);
^
/Users/max/supertuxkart/src/guiengine/widget.hpp:432:22: note:
hidden overloaded virtual function 'GUIEngine::Widget::setText' declared here
virtual void setText(const irr::core::stringw &s) { setText(s.c_str()); }
^
/Users/max/supertuxkart/src/states_screens/offline_kart_selection.cpp:3:1: error:
explicit specialization of 'singleton' after instantiation
DEFINE_SCREEN_SINGLETON( OfflineKartSelectionScreen );
^
/Users/max/supertuxkart/src/guiengine/screen.hpp:52:68: note:
expanded from macro 'DEFINE_SCREEN_SINGLETON'
template<> ClassName* GUIEngine::ScreenSingleton< ClassName >::singleton = NULL
^
/Users/max/supertuxkart/src/states_screens/offline_kart_selection.hpp:15:42: note:
implicit instantiation first required here
static bool isRunning() { return singleton!=NULL; }
^
2 warnings and 1 error generated.
make[2]: *** [CMakeFiles/supertuxkart.dir/src/states_screens/offline_kart_selection.cpp.o] Error 1
make[1]: *** [CMakeFiles/supertuxkart.dir/all] Error 2
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment