Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/external/cpptcl/changes_orxonox.diff @ 9841

Last change on this file since 9841 was 8351, checked in by rgrieder, 14 years ago

Merged kicklib2 branch back to trunk (includes former branches ois_update, mac_osx and kicklib).

Notes for updating

Linux:
You don't need an extra package for CEGUILua and Tolua, it's already shipped with CEGUI.
However you do need to make sure that the OgreRenderer is installed too with CEGUI 0.7 (may be a separate package).
Also, Orxonox now recognises if you install the CgProgramManager (a separate package available on newer Ubuntu on Debian systems).

Windows:
Download the new dependency packages versioned 6.0 and use these. If you have problems with that or if you don't like the in game console problem mentioned below, you can download the new 4.3 version of the packages (only available for Visual Studio 2005/2008).

Key new features:

  • *Support for Mac OS X*
  • Visual Studio 2010 support
  • Bullet library update to 2.77
  • OIS library update to 1.3
  • Support for CEGUI 0.7 —> Support for Arch Linux and even SuSE
  • Improved install target
  • Compiles now with GCC 4.6
  • Ogre Cg Shader plugin activated for Linux if available
  • And of course lots of bug fixes

There are also some regressions:

  • No support for CEGUI 0.5, Ogre 1.4 and boost 1.35 - 1.39 any more
  • In game console is not working in main menu for CEGUI 0.7
  • Tolua (just the C lib, not the application) and CEGUILua libraries are no longer in our repository. —> You will need to get these as well when compiling Orxonox
  • And of course lots of new bugs we don't yet know about
  • Property svn:eol-style set to native
File size: 2.8 KB
RevLine 
[8351]1--- cpptcl.cc   Fri Apr 22 12:18:47 2011
2+++ cpptcl.cc   Fri Apr 22 12:20:02 2011
3@@ -16,7 +16,8 @@
4 using namespace Tcl;
5 using namespace Tcl::details;
6 using namespace std;
7-using namespace boost;
8+// boost::shared_ptr conflicts with the new std::shared_ptr
9+//using namespace boost;
[2705]10 
[8351]11 
12 result::result(Tcl_Interp *interp) : interp_(interp) {}
13@@ -166,7 +167,7 @@
14 {
15 
16 // map of polymorphic callbacks
17-typedef map<string, shared_ptr<callback_base> > callback_interp_map;
18+typedef map<string, boost::shared_ptr<callback_base> > callback_interp_map;
19 typedef map<Tcl_Interp *, callback_interp_map> callback_map;
20 
21 callback_map callbacks;
22@@ -179,7 +180,7 @@
23 policies_map call_policies;
24 
25 // map of object handlers
26-typedef map<string, shared_ptr<class_handler_base> > class_interp_map;
27+typedef map<string, boost::shared_ptr<class_handler_base> > class_interp_map;
28 typedef map<Tcl_Interp *, class_interp_map> class_handlers_map;
29 
30 class_handlers_map class_handlers;
31@@ -320,7 +321,7 @@
32 
[2705]33           post_process_policies(interp, pol, objv, false);
34      }
35-     catch (exception const &e)
36+     catch (std::exception const &e)
37      {
38           Tcl_SetResult(interp, const_cast<char*>(e.what()), TCL_VOLATILE);
39           return TCL_ERROR;
[8351]40@@ -363,7 +364,7 @@
[2705]41 
42           post_process_policies(interp, pol, objv, true);
43      }
44-     catch (exception const &e)
45+     catch (std::exception const &e)
46      {
47           Tcl_SetResult(interp, const_cast<char*>(e.what()), TCL_VOLATILE);
48           return TCL_ERROR;
[8351]49@@ -430,7 +431,7 @@
[2705]50                Tcl_GetString(Tcl_GetObjResult(interp)),
51                object_handler, static_cast<ClientData>(chb), 0);
52      }
53-     catch (exception const &e)
54+     catch (std::exception const &e)
55      {
56           Tcl_SetResult(interp, const_cast<char*>(e.what()), TCL_VOLATILE);
57           return TCL_ERROR;
[8351]58@@ -490,7 +491,7 @@
59 }
60 
61 void class_handler_base::register_method(string const &name,
62-     shared_ptr<object_cmd_base> ocb, policies const &p)
63+     boost::shared_ptr<object_cmd_base> ocb, policies const &p)
64 {
65      methods_[name] = ocb;
66      policies_[name] = p;
67@@ -989,7 +990,7 @@
68 }
69 
70 void interpreter::add_function(string const &name,
71-     shared_ptr<callback_base> cb, policies const &p)
72+     boost::shared_ptr<callback_base> cb, policies const &p)
73 {
74      Tcl_CreateObjCommand(interp_, name.c_str(),
75           callback_handler, 0, 0);
76@@ -999,13 +1000,13 @@
77 }
78 
79 void interpreter::add_class(string const &name,
80-     shared_ptr<class_handler_base> chb)
81+     boost::shared_ptr<class_handler_base> chb)
82 {
83      class_handlers[interp_][name] = chb;
84 }
85 
86 void interpreter::add_constructor(string const &name,
87-     shared_ptr<class_handler_base> chb, shared_ptr<callback_base> cb,
88+     boost::shared_ptr<class_handler_base> chb, boost::shared_ptr<callback_base> cb,
89      policies const &p)
90 {
91      Tcl_CreateObjCommand(interp_, name.c_str(),
Note: See TracBrowser for help on using the repository browser.