[Orxonox-commit 13] r2728 - in trunk: cmake src/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Mon Mar 2 13:47:42 CET 2009
Author: rgrieder
Date: 2009-03-02 13:47:42 +0100 (Mon, 02 Mar 2009)
New Revision: 2728
Modified:
trunk/cmake/LibraryConfigTardis.cmake
trunk/src/core/ArgumentCompletionFunctions.cc
Log:
Updated to the new tardis libraries. Seems to work fine.
Modified: trunk/cmake/LibraryConfigTardis.cmake
===================================================================
--- trunk/cmake/LibraryConfigTardis.cmake 2009-03-01 20:11:40 UTC (rev 2727)
+++ trunk/cmake/LibraryConfigTardis.cmake 2009-03-02 12:47:42 UTC (rev 2728)
@@ -34,21 +34,17 @@
IF(TARDIS)
MESSAGE(STATUS "Running on D-ITET isg.ee Tardis Computer. Using customized paths.")
- # We cannot use the default compiler (why?)
- SET(CMAKE_C_COMPILER "gcc-4.1")
- SET(CMAKE_CXX_COMPILER "g++-4.1")
-
# Note: When setting ENV${} variables, make sure to use quotes when
# having multiple directories.
- SET(BOOST_INCLUDEDIR "/usr/pack/boost-1.34.1-sd/include")
- SET(BOOST_LIBRARYDIR "/usr/pack/boost-1.34.1-sd/i686-debian-linux3.1/lib")
- SET(ENV{CEGUIDIR} "/usr/pack/cegui-0.5.0-sd;/usr/pack/cegui-0.5.0-sd/i686-debian-linux3.1")
- SET(ENV{ENETDIR} "/usr/pack/enet-2007-sd;/usr/pack/enet-2007-sd/i686-debian-linux3.1")
+ SET(BOOST_INCLUDEDIR "/usr/pack/boost-1.36.0-sd/include/boost-1_36")
+ SET(BOOST_LIBRARYDIR "/usr/pack/boost-1.36.0-sd/i686-debian-linux4.0/lib")
+ SET(ENV{CEGUIDIR} "/usr/pack/cegui-0.6.2-sd;/usr/pack/cegui-0.6.2-sd/i686-debian-linux4.0")
+ SET(ENV{ENETDIR} "/usr/pack/enet-1.2-sd;/usr/pack/enet-1.2-sd/i686-debian-linux4.0")
SET(ENV{ALUTDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1")
SET(ENV{OGGDIR} "/usr/pack/oggvorbis-1.0-ds;/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0")
SET(ENV{VORBISDIR} "/usr/pack/oggvorbis-1.0-ds;/usr/pack/oggvorbis-1.0-ds/i686-debian-linux3.0")
- SET(ENV{LUA_DIR} "/usr/pack/lua-5.0.3-sd;/usr/pack/lua-5.0.3-sd/i686-debian-linux3.1")
- SET(ENV{OGRE_HOME} "/usr/pack/ogre-1.4.5-sd;/usr/pack/ogre-1.4.5-sd/i686-debian-linux3.1")
+ SET(ENV{LUA_DIR} "/usr/pack/lua-5.1.4-sd;/usr/pack/lua-5.1.4-sd/i686-debian-linux4.0")
+ SET(ENV{OGRE_HOME} "/usr/pack/ogre-1.4.9-sd;/usr/pack/ogre-1.4.9-sd/i686-debian-linux4.0")
SET(ENV{OPENALDIR} "/usr/pack/openal-0.0.8-cl;/usr/pack/openal-0.0.8-cl/i686-debian-linux3.1")
#SET(TCL_INCLUDE_PATH "/usr/pack/tcltk-8.4.9.linux-mo/include")
ENDIF(TARDIS)
Modified: trunk/src/core/ArgumentCompletionFunctions.cc
===================================================================
--- trunk/src/core/ArgumentCompletionFunctions.cc 2009-03-01 20:11:40 UTC (rev 2727)
+++ trunk/src/core/ArgumentCompletionFunctions.cc 2009-03-02 12:47:42 UTC (rev 2728)
@@ -30,6 +30,7 @@
#include <iostream>
#include <map>
+#include <boost/version.hpp>
#include <boost/filesystem.hpp>
#include "CoreIncludes.h"
@@ -39,6 +40,13 @@
#include "util/Convert.h"
#include "util/String.h"
+// Boost 1.36 has some issues with deprecated functions that have been omitted
+#if (BOOST_VERSION == 103600)
+# define BOOST_LEAF_FUNCTION filename
+#else
+# define BOOST_LEAF_FUNCTION leaf
+#endif
+
namespace orxonox
{
namespace autocompletion
@@ -77,9 +85,9 @@
while (file != end)
{
if (boost::filesystem::is_directory(*file))
- dirlist.push_back(ArgumentCompletionListElement((*file).string() + CP_SLASH, getLowercase((*file).string()) + "/", (*file).leaf() + "/"));
+ dirlist.push_back(ArgumentCompletionListElement((*file).string() + CP_SLASH, getLowercase((*file).string()) + "/", (*file).BOOST_LEAF_FUNCTION() + "/"));
else
- filelist.push_back(ArgumentCompletionListElement((*file).string(), getLowercase((*file).string()), (*file).leaf()));
+ filelist.push_back(ArgumentCompletionListElement((*file).string(), getLowercase((*file).string()), (*file).BOOST_LEAF_FUNCTION()));
++file;
}
}
More information about the Orxonox-commit
mailing list