Changeset 8285 for code/branches/kicklib2/src
- Timestamp:
- Apr 21, 2011, 7:43:10 PM (14 years ago)
- Location:
- code/branches/kicklib2
- Files:
-
- 22 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/kicklib2
-
code/branches/kicklib2/src/CMakeLists.txt
r8284 r8285 41 41 #ADD_COMPILER_FLAGS("-DENET_DLL" WIN32 LINK_ENET_DYNAMIC) 42 42 ADD_COMPILER_FLAGS("-DLUA_BUILD_AS_DLL" WIN32 LINK_LUA5.1_DYNAMIC) 43 ADD_COMPILER_FLAGS("-DZLIB_DLL" WIN32 LINK_ZLIB_DYNAMIC)44 43 # If no defines are specified, these libs get linked dynamically 45 44 ADD_COMPILER_FLAGS("-DCEGUI_STATIC -DTOLUA_STATIC" WIN32 NOT LINK_CEGUI_DYNAMIC) … … 139 138 ENDIF() 140 139 140 SET(ORXONOX_MAIN_FILES Orxonox.cc) 141 142 # Add special source file for OS X 143 IF(APPLE) 144 LIST(APPEND ORXONOX_MAIN_FILES OrxonoxMac.mm) 145 ENDIF() 146 141 147 ORXONOX_ADD_EXECUTABLE(orxonox-main 142 148 # When defined as WIN32 this removes the console window on Windows … … 145 151 orxonox 146 152 SOURCE_FILES 147 Orxonox.cc153 ${ORXONOX_MAIN_FILES} 148 154 OUTPUT_NAME orxonox 149 155 ) … … 179 185 ENDIF(MSVC) 180 186 187 # Apple Mac OS X specific build settings 188 IF(APPLE) 189 # On Apple we need to link to AppKit and Foundation frameworks 190 TARGET_LINK_LIBRARIES(orxonox-main 191 "-framework AppKit" 192 "-framework Foundation" 193 ) 194 195 # Post-build step for the creation of the Dev-App bundle 196 INCLUDE(PrepareDevBundle) 197 ADD_CUSTOM_COMMAND( 198 TARGET orxonox-main 199 POST_BUILD 200 # Copy the executable into the Orxonox.app 201 COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${ORXONOX_EXECUTABLE_NAME}" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app/Contents/MacOS" 202 # Copy the dev-build marker file to Orxonox.app 203 COMMAND ${CMAKE_COMMAND} -E copy "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/orxonox_dev_build.keep_me" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app/Contents/MacOS" 204 # Create a shortcut of the application to the root of the build tree 205 COMMAND ${CMAKE_COMMAND} -E create_symlink "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_CFG_INTDIR}/${PROJECT_NAME}.app" "${CMAKE_BINARY_DIR}/${PROJECT_NAME}.app" 206 ) 207 ENDIF(APPLE) 208 181 209 #################### Doxygen #################### 182 210 -
code/branches/kicklib2/src/Orxonox.cc
r6417 r8285 53 53 #ifdef ORXONOX_USE_WINMAIN 54 54 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) 55 #elif defined(ORXONOX_PLATFORM_APPLE) 56 int main_mac(int argc, char** argv) 55 57 #else 56 58 int main(int argc, char** argv) … … 60 62 { 61 63 #ifndef ORXONOX_USE_WINMAIN 64 65 #ifdef ORXONOX_PLATFORM_APPLE 66 // On Apples, the kernel supplies a second argument, which we have to circumvent 67 const int firstArgument = 2; 68 #else 69 // 0 is the execution path 70 const int firstArgument = 1; 71 #endif 72 62 73 std::string strCmdLine; 63 for (int i = 1; i < argc; ++i)74 for (int i = firstArgument; i < argc; ++i) 64 75 strCmdLine = strCmdLine + argv[i] + ' '; 65 76 #endif -
code/branches/kicklib2/src/OrxonoxConfig.cmake
r8284 r8285 111 111 ${CMAKE_CURRENT_BINARY_DIR}/SpecialConfig.h 112 112 ) 113 114 # Make special target including the configured header files for Visual Studio 115 IF(MSVC) 116 ADD_CUSTOM_TARGET(config 117 SOURCES 118 ${ORXONOX_CONFIG_FILES} 119 ${ORXONOX_CONFIG_FILES_GENERATED} 120 ) 121 ENDIF() -
code/branches/kicklib2/src/OrxonoxConfig.h.in
r8284 r8285 228 228 } 229 229 230 // Define Boost Filesystem version 231 #include <boost/version.hpp> 232 #ifndef BOOST_FILESYSTEM_VERSION 233 # if (BOOST_VERSION < 104600) 234 # define BOOST_FILESYSTEM_VERSION 2 235 # else 236 # define BOOST_FILESYSTEM_VERSION 3 237 # endif 238 #endif 239 230 240 #endif /* _OrxonoxConfig_H__ */ -
code/branches/kicklib2/src/SpecialConfig.h.in
r8284 r8285 92 92 93 93 // OGRE PLUGINS 94 // Apple has trouble finding OGRE plugins because of its install-name convention95 // Adopting the executable_path structure for later use in app bundles96 94 #ifdef NDEBUG 97 95 const char ogrePlugins[] = "@OGRE_PLUGINS_RELEASE@"; 98 # ifdef DEPENDENCY_PACKAGE_ENABLE99 # ifdef ORXONOX_PLATFORM_APPLE100 const char ogrePluginsDirectory[] = "@executable_path/../Plugins";101 # else102 const char ogrePluginsDirectory[] = ".";103 # endif104 # else105 96 const char ogrePluginsDirectory[] = "@OGRE_PLUGINS_FOLDER_RELEASE@"; 106 # endif107 97 #else 108 98 const char ogrePlugins[] = "@OGRE_PLUGINS_DEBUG@"; 109 # ifdef DEPENDENCY_PACKAGE_ENABLE110 # ifdef ORXONOX_PLATFORM_APPLE111 const char ogrePluginsDirectory[] = "@OGRE_PLUGINS_FOLDER_DEBUG@";112 # else113 const char ogrePluginsDirectory[] = ".";114 # endif115 # else116 99 const char ogrePluginsDirectory[] = "@OGRE_PLUGINS_FOLDER_DEBUG@"; 117 # endif118 100 #endif 119 101 } } -
code/branches/kicklib2/src/external/ogreceguirenderer/CMakeLists.txt
r8284 r8285 35 35 "OGRE_GUIRENDERER_EXPORTS" 36 36 LINK_LIBRARIES 37 ${Boost_SYSTEM_LIBRARY}38 ${Boost_THREAD_LIBRARY}39 ${Boost_DATE_TIME_LIBRARY}40 37 ${OGRE_LIBRARY} 41 38 ${CEGUI_LIBRARY} -
code/branches/kicklib2/src/external/ois/CMakeLists.txt
r8284 r8285 54 54 55 55 # Some unexplained hackery for Visual Studio 2005 56 ADD_COMPILER_FLAGS("-D_WIN32_DCOM" MSVC8 )56 ADD_COMPILER_FLAGS("-D_WIN32_DCOM" MSVC80) 57 57 58 58 # MinGW doesn't come with some required Windows headers -
code/branches/kicklib2/src/external/tinyxml/CMakeLists.txt
r7163 r8285 36 36 ORXONOX_EXTERNAL 37 37 NO_DLL_INTERFACE 38 VERSION39 2.5.340 38 SOURCE_FILES 41 39 ${TINYXML_FILES} -
code/branches/kicklib2/src/external/tinyxml/VERSION
r6620 r8285 1 TinyXML++ trunk checkout revision 106. Built on top of TinyXML 2.5.3 1 TinyXML++ trunk checkout revision 122 (version 0.04a). 2 Built with TinyXML 2.5.3. -
code/branches/kicklib2/src/external/tinyxml/changes_orxonox.diff
r5781 r8285 1 --- ticpp.h Tue Nov 4 21:55:49 2008 2 +++ ticpp.h Sat Jan 10 14:48:41 2009 3 @@ -1229,6 +1229,7 @@ 1 --- ticpp.h 2 +++ ticpp.h 3 @@ -38,9 +38,7 @@ 4 @todo add TYPECOUNT support. See ticpp::NodeFactory. 5 @todo Add a quick reference 6 */ 7 -#ifndef TIXML_USE_TICPP 8 - #define TIXML_USE_TICPP 9 -#endif 10 +#ifdef TIXML_USE_TICPP 11 12 #ifndef TICPP_INCLUDED 13 #define TICPP_INCLUDED 14 @@ -1231,6 +1229,7 @@ 4 15 5 16 T* m_tiXmlPointer; /**< Internal pointer to the TiXml Class which is being wrapped */ 6 17 7 + 18 + public: 8 19 /** 9 20 @internal 10 21 Gets the internal TinyXML pointer. 11 @@ -124 0,6 +1241,7 @@22 @@ -1242,6 +1241,7 @@ 12 23 ValidatePointer(); 13 24 return m_tiXmlPointer; 14 25 } 15 + 26 + protected: 16 27 17 28 /** 18 29 @internal 30 @@ -1903,3 +1903,5 @@ 31 } 32 33 #endif // TICPP_INCLUDED 34 + 35 +#endif // TIXML_USE_TICPP -
code/branches/kicklib2/src/external/tinyxml/ticpp.cpp
r5781 r8285 370 370 } 371 371 372 Node* Node::InsertEndChild( Node& addThis )372 Node* Node::InsertEndChild( const Node& addThis ) 373 373 { 374 374 if ( addThis.Type() == TiXmlNode::DOCUMENT ) … … 404 404 } 405 405 406 Node* Node::InsertBeforeChild( Node* beforeThis, Node& addThis )406 Node* Node::InsertBeforeChild( Node* beforeThis, const Node& addThis ) 407 407 { 408 408 if ( addThis.Type() == TiXmlNode::DOCUMENT ) … … 423 423 } 424 424 425 Node* Node::InsertAfterChild( Node* afterThis, Node& addThis )425 Node* Node::InsertAfterChild( Node* afterThis, const Node& addThis ) 426 426 { 427 427 if ( addThis.Type() == TiXmlNode::DOCUMENT ) … … 442 442 } 443 443 444 Node* Node::ReplaceChild( Node* replaceThis, Node& withThis )444 Node* Node::ReplaceChild( Node* replaceThis, const Node& withThis ) 445 445 { 446 446 if ( withThis.Type() == TiXmlNode::DOCUMENT ) -
code/branches/kicklib2/src/external/tinyxml/ticpp.h
r5781 r8285 225 225 return ( GetBasePointer() == rhs.GetBasePointer() ); 226 226 } 227 227 228 228 /** 229 229 Compare internal TiXml pointers to determine is both are wrappers around the same node … … 233 233 return ( GetBasePointer() != rhs.GetBasePointer() ); 234 234 } 235 235 236 236 /** 237 237 Builds detailed error string using TiXmlDocument::Error() and others … … 250 250 { 251 251 full_message << "\nDescription: " << doc->ErrorDesc() 252 << "\nFile: " << (strlen( doc->Value() ) > 0 ? doc->Value() : "<unnamed-file>") 253 << "\nLine: " << doc->ErrorRow() 252 << "\nFile: " << (strlen( doc->Value() ) > 0 ? doc->Value() : "<unnamed-file>") 253 << "\nLine: " << doc->ErrorRow() 254 254 << "\nColumn: " << doc->ErrorCol(); 255 255 } … … 287 287 TICPPTHROW( "Internal TiXml Pointer is NULL" ); 288 288 } 289 } 289 } 290 290 291 291 /** … … 617 617 @see TiXmlNode::InsertEndChild 618 618 */ 619 Node* InsertEndChild( Node& addThis );619 Node* InsertEndChild( const Node& addThis ); 620 620 621 621 /** … … 642 642 @see TiXmlNode::InsertBeforeChild 643 643 */ 644 Node* InsertBeforeChild( Node* beforeThis, Node& addThis );644 Node* InsertBeforeChild( Node* beforeThis, const Node& addThis ); 645 645 646 646 /** … … 655 655 @see TiXmlNode::InsertAfterChild 656 656 */ 657 Node* InsertAfterChild( Node* afterThis, Node& addThis );657 Node* InsertAfterChild( Node* afterThis, const Node& addThis ); 658 658 659 659 /** … … 667 667 @see TiXmlNode::ReplaceChild 668 668 */ 669 Node* ReplaceChild( Node* replaceThis, Node& withThis );669 Node* ReplaceChild( Node* replaceThis, const Node& withThis ); 670 670 671 671 /** … … 1163 1163 /** Sets internal pointer to the Previous Sibling, or Iterator::END, if there are no prior siblings */ 1164 1164 Iterator operator--(int) 1165 { 1165 { 1166 1166 Iterator tmp(*this); 1167 1167 --(*this); … … 1230 1230 T* m_tiXmlPointer; /**< Internal pointer to the TiXml Class which is being wrapped */ 1231 1231 1232 1232 public: 1233 1233 /** 1234 1234 @internal … … 1242 1242 return m_tiXmlPointer; 1243 1243 } 1244 1244 protected: 1245 1245 1246 1246 /** … … 1400 1400 1401 1401 /** 1402 Constructor. 1403 Create a document with a name. The name of the document is also the filename of the xml. 1404 1405 @param documentName Name to set in the Document. 1406 */ 1402 * Constructor. 1403 * Create a document with a name. The name of the document is also the filename of the xml. 1404 * @param documentName Name to set in the Document. 1405 * @note LoadFile() needs to be called to actually load the data from the file specified by documentName 1406 * SaveFile() needs to be called to save data to file specified by documentName. 1407 */ 1407 1408 Document( const std::string& documentName ); 1408 1409 … … 1749 1750 if ( throwIfNotFound ) 1750 1751 { 1751 TICPPTHROW( "Attribute does not exist" ); 1752 const std::string error( std::string( "Attribute '" ) + name + std::string( "' does not exist" ) ); 1753 TICPPTHROW( error ); 1752 1754 } 1753 1755 } … … 1781 1783 if ( throwIfNotFound ) 1782 1784 { 1783 TICPPTHROW( "Attribute does not exist" ); 1785 const std::string error( std::string( "Attribute '" ) + name + std::string( "' does not exist" ) ); 1786 TICPPTHROW( error ); 1784 1787 } 1785 1788 else -
code/branches/kicklib2/src/libraries/core/CorePrereqs.h
r8284 r8285 262 262 namespace boost 263 263 { 264 #if BOOST_VERSION < 104400 264 #if (BOOST_VERSION < 104400) 265 265 266 namespace filesystem 266 267 { … … 269 270 typedef basic_path<std::string, path_traits> path; 270 271 } 271 #elif BOOST_VERSION < 104600 272 273 #elif (BOOST_VERSION < 104800) 274 275 # if BOOST_FILESYSTEM_VERSION == 2 272 276 namespace filesystem2 273 277 { … … 282 286 using filesystem2::path; 283 287 } 288 # elif BOOST_FILESYSTEM_VERSION == 3 289 namespace filesystem3 290 { 291 class path; 292 } 293 namespace filesystem 294 { 295 using filesystem3::path; 296 } 297 # endif 298 284 299 #else 285 namespace filesystem3 300 301 // TODO: Check this once boost 1.48 is released 302 namespace filesystem 286 303 { 287 304 class path; 288 305 } 289 namespace filesystem 290 { 291 using filesystem3::path; 292 } 306 293 307 #endif 308 294 309 class thread; 295 310 class mutex; -
code/branches/kicklib2/src/libraries/core/GraphicsManager.cc
r8284 r8285 30 30 #include "GraphicsManager.h" 31 31 32 #include <cstdlib> 32 33 #include <fstream> 33 34 #include <sstream> … … 120 121 // Only for development runs 121 122 if (PathConfig::isDevelopmentRun()) 122 {123 123 Ogre::ResourceGroupManager::getSingleton().addResourceLocation(PathConfig::getExternalDataPathString(), "FileSystem"); 124 extResources_.reset(new XMLFile("resources.oxr")); 125 extResources_->setLuaSupport(false);126 Loader::open(extResources_.get());127 }124 125 extResources_.reset(new XMLFile("resources.oxr")); 126 extResources_->setLuaSupport(false); 127 Loader::open(extResources_.get()); 128 128 129 129 if (bLoadRenderer) … … 150 150 // Undeclare the resources 151 151 Loader::unload(resources_.get()); 152 if (PathConfig::isDevelopmentRun()) 153 Loader::unload(extResources_.get()); 152 Loader::unload(extResources_.get()); 154 153 } 155 154 … … 158 157 SetConfigValue(ogreConfigFile_, "ogre.cfg") 159 158 .description("Location of the Ogre config file"); 160 SetConfigValue(ogrePluginsDirectory_, specialConfig::ogrePluginsDirectory)161 .description("Folder where the Ogre plugins are located.");162 159 SetConfigValue(ogrePlugins_, specialConfig::ogrePlugins) 163 160 .description("Comma separated list of all plugins to load."); … … 251 248 void GraphicsManager::loadOgrePlugins() 252 249 { 253 // just to make sure the next statement doesn't segfault 254 if (ogrePluginsDirectory_.empty()) 255 ogrePluginsDirectory_ = '.'; 256 257 boost::filesystem::path folder(ogrePluginsDirectory_); 250 // Plugin path can have many different locations... 251 std::string pluginPath = specialConfig::ogrePluginsDirectory; 252 #ifdef DEPENDENCY_PACKAGE_ENABLE 253 if (!PathConfig::isDevelopmentRun()) 254 { 255 # if defined(ORXONOX_PLATFORM_WINDOWS) 256 pluginPath = PathConfig::getExecutablePathString(); 257 # elif defined(ORXONOX_PLATFORM_APPLE) 258 // TODO: Where are the plugins being installed to? 259 pluginPath = PathConfig::getExecutablePathString(); 260 # endif 261 } 262 #endif 263 264 #ifdef ORXONOX_PLATFORM_WINDOWS 265 // Add OGRE plugin path to the environment. That way one plugin could 266 // also depend on another without problems on Windows 267 const char* currentPATH = getenv("PATH"); 268 std::string newPATH = pluginPath; 269 if (currentPATH != NULL) 270 newPATH = std::string(currentPATH) + ';' + newPATH; 271 putenv(const_cast<char*>(("PATH=" + newPATH).c_str())); 272 #endif 273 258 274 // Do some SubString magic to get the comma separated list of plugins 259 275 SubString plugins(ogrePlugins_, ",", " ", false, '\\', false, '"', false, '{', '}', false, '\0'); 260 // Use backslash paths on Windows! file_string() already does that though.261 276 for (unsigned int i = 0; i < plugins.size(); ++i) 262 #if BOOST_FILESYSTEM_VERSION < 3 263 ogreRoot_->loadPlugin((folder / plugins[i]).file_string()); 264 #else 265 ogreRoot_->loadPlugin((folder / plugins[i]).string()); 266 #endif 277 ogreRoot_->loadPlugin(pluginPath + '/' + plugins[i]); 267 278 } 268 279 … … 290 301 291 302 Ogre::WindowEventUtilities::addWindowEventListener(this->renderWindow_, ogreWindowEventListener_.get()); 292 293 // HACK294 #ifdef ORXONOX_PLATFORM_APPLE295 //INFO: This will give our window focus, and not lock it to the terminal296 ProcessSerialNumber psn = {0, kCurrentProcess};297 TransformProcessType(&psn, kProcessTransformToForegroundApplication);298 SetFrontProcess(&psn);299 #endif300 // End of HACK301 303 302 304 // create a full screen default viewport -
code/branches/kicklib2/src/libraries/core/GraphicsManager.h
r8283 r8285 128 128 // config values 129 129 std::string ogreConfigFile_; //!< ogre config filename 130 std::string ogrePluginsDirectory_; //!< Directory where the Ogre plugins are located131 130 std::string ogrePlugins_; //!< Comma separated list of all plugins to load 132 131 std::string ogreLogFile_; //!< log filename for Ogre log messages -
code/branches/kicklib2/src/libraries/core/Identifier.h
r8284 r8285 395 395 { 396 396 // Get the name of the class 397 const std::string&name = typeid(T).name();397 std::string name = typeid(T).name(); 398 398 399 399 // create a new identifier anyway. Will be deleted in Identifier::getIdentifier if not used. -
code/branches/kicklib2/src/libraries/core/PathConfig.cc
r8284 r8285 33 33 #include <cstdio> 34 34 #include <vector> 35 #include <boost/version.hpp>36 35 #include <boost/filesystem.hpp> 37 36 … … 56 55 #include "CommandLineParser.h" 57 56 58 // Boost 1.36 has some issues with deprecated functions that have been omitted59 #if (BOOST_ VERSION == 103600)60 # define B OOST_LEAF_FUNCTION filename61 # elif (BOOST_FILESYSTEM_VERSION < 3)62 # define B OOST_LEAF_FUNCTION leaf57 // Differentiate Boost Filesystem v2 and v3 58 #if (BOOST_FILESYSTEM_VERSION < 3) 59 # define BF_LEAF leaf 60 # define BF_GENERIC_STRING string 61 # define BF_NATIVE_STRING file_string 63 62 #else 64 # define BOOST_LEAF_FUNCTION path().filename().string 63 # define BF_LEAF path().filename().string 64 # define BF_GENERIC_STRING generic_string 65 # define BF_NATIVE_STRING string 65 66 #endif 66 67 … … 242 243 { 243 244 ThrowException(General, std::string("The ") + it->second + " directory has been preoccupied by a file! \ 244 Please remove " + it->first. string());245 Please remove " + it->first.BF_GENERIC_STRING()); 245 246 } 246 247 if (bf::create_directories(it->first)) // function may not return true at all (bug?) … … 259 260 size_t moduleextensionlength = moduleextension.size(); 260 261 262 #ifdef ORXONOX_PLATFORM_WINDOWS 261 263 // Add that path to the PATH variable in case a module depends on another one 262 std::string pathVariable(getenv("PATH")); 263 putenv(const_cast<char*>(("PATH=" + pathVariable + ';' + modulePath_.string()).c_str())); 264 const char* currentPATH = getenv("PATH"); 265 std::string newPATH = modulePath_.BF_NATIVE_STRING(); 266 if (currentPATH != NULL) 267 newPATH = std::string(currentPATH) + ';' + newPATH; 268 putenv(const_cast<char*>(("PATH=" + newPATH).c_str())); 269 #endif 264 270 265 271 // Make sure the path exists, otherwise don't load modules … … 273 279 while (file != end) 274 280 { 275 std::string filename = file->B OOST_LEAF_FUNCTION();281 std::string filename = file->BF_LEAF(); 276 282 277 283 // Check if the file ends with the extension in question … … 282 288 // We've found a helper file 283 289 const std::string& library = filename.substr(0, filename.size() - moduleextensionlength); 284 #if BOOST_FILESYSTEM_VERSION < 3 285 modulePaths.push_back((modulePath_ / library).file_string()); 286 #else 287 modulePaths.push_back((modulePath_ / library).string()); 288 #endif 290 modulePaths.push_back(getModulePathString() + library); 289 291 } 290 292 } … … 297 299 /*static*/ std::string PathConfig::getRootPathString() 298 300 { 299 return getInstance().rootPath_. string() + '/';301 return getInstance().rootPath_.BF_GENERIC_STRING() + '/'; 300 302 } 301 303 302 304 /*static*/ std::string PathConfig::getExecutablePathString() 303 305 { 304 return getInstance().executablePath_. string() + '/';306 return getInstance().executablePath_.BF_GENERIC_STRING() + '/'; 305 307 } 306 308 307 309 /*static*/ std::string PathConfig::getDataPathString() 308 310 { 309 return getInstance().dataPath_. string() + '/';311 return getInstance().dataPath_.BF_GENERIC_STRING() + '/'; 310 312 } 311 313 312 314 /*static*/ std::string PathConfig::getExternalDataPathString() 313 315 { 314 return getInstance().externalDataPath_. string() + '/';316 return getInstance().externalDataPath_.BF_GENERIC_STRING() + '/'; 315 317 } 316 318 317 319 /*static*/ std::string PathConfig::getConfigPathString() 318 320 { 319 return getInstance().configPath_. string() + '/';321 return getInstance().configPath_.BF_GENERIC_STRING() + '/'; 320 322 } 321 323 322 324 /*static*/ std::string PathConfig::getLogPathString() 323 325 { 324 return getInstance().logPath_. string() + '/';326 return getInstance().logPath_.BF_GENERIC_STRING() + '/'; 325 327 } 326 328 327 329 /*static*/ std::string PathConfig::getModulePathString() 328 330 { 329 return getInstance().modulePath_. string() + '/';331 return getInstance().modulePath_.BF_GENERIC_STRING() + '/'; 330 332 } 331 333 } -
code/branches/kicklib2/src/libraries/core/PathConfig.h
r7427 r8285 113 113 static std::string getModulePathString(); 114 114 115 //! Return tr rue for runs in the build directory (not installed)115 //! Return true for runs in the build directory (not installed) 116 116 static bool isDevelopmentRun() { return getInstance().bDevRun_; } 117 117 -
code/branches/kicklib2/src/libraries/core/Resource.cc
r8284 r8285 33 33 #include <OgreFileSystem.h> 34 34 #include <OgreResourceGroupManager.h> 35 36 // Differentiate Boost Filesystem v2 and v3 37 #if (BOOST_FILESYSTEM_VERSION < 3) 38 # define BF_GENERIC_STRING string 39 #else 40 # define BF_GENERIC_STRING generic_string 41 #endif 35 42 36 43 namespace orxonox … … 98 105 boost::filesystem::path base(it->archive->getName()); 99 106 base /= it->filename; 100 ptr->fileSystemPath = base. string();107 ptr->fileSystemPath = base.BF_GENERIC_STRING(); 101 108 } 102 109 return ptr; -
code/branches/kicklib2/src/libraries/core/command/ArgumentCompletionFunctions.cc
r8284 r8285 35 35 36 36 #include <map> 37 #include <boost/version.hpp>38 37 #include <boost/filesystem.hpp> 39 38 … … 47 46 #include "TclThreadManager.h" 48 47 49 // Boost 1.36 has some issues with deprecated functions that have been omitted 50 #if (BOOST_VERSION == 103600) 51 # define BOOST_LEAF_FUNCTION filename 52 # define BOOST_DICTIONARY_ENTRY_NAME string 53 #elif (BOOST_FILESYSTEM_VERSION < 3) 54 # define BOOST_LEAF_FUNCTION leaf 55 # define BOOST_DICTIONARY_ENTRY_NAME string 48 // Differentiate Boost Filesystem v2 and v3 49 #if (BOOST_FILESYSTEM_VERSION < 3) 50 # define BF_LEAF leaf 51 # define BF_GENERIC_STRING string 52 # define BF_DICTIONARY_ENTRY_NAME string 56 53 #else 57 # define BOOST_LEAF_FUNCTION path().filename().string 58 # define BOOST_DICTIONARY_ENTRY_NAME path().string 54 # define BF_LEAF path().filename().string 55 # define BF_GENERIC_STRING generic_string 56 # define BF_DICTIONARY_ENTRY_NAME path().string 59 57 #endif 60 58 … … 250 248 else 251 249 { 252 const std::string& dir = startdirectory. string();250 const std::string& dir = startdirectory.BF_GENERIC_STRING(); 253 251 if (dir.size() > 0 && dir[dir.size() - 1] == ':') 254 252 startdirectory = dir + '/'; … … 262 260 { 263 261 if (boost::filesystem::is_directory(*file)) 264 dirlist.push_back(ArgumentCompletionListElement(file->B OOST_DICTIONARY_ENTRY_NAME() + '/', getLowercase(file->BOOST_DICTIONARY_ENTRY_NAME()) + '/', file->BOOST_LEAF_FUNCTION() + '/'));262 dirlist.push_back(ArgumentCompletionListElement(file->BF_DICTIONARY_ENTRY_NAME() + '/', getLowercase(file->BF_DICTIONARY_ENTRY_NAME()) + '/', file->BF_LEAF() + '/')); 265 263 else 266 filelist.push_back(ArgumentCompletionListElement(file->B OOST_DICTIONARY_ENTRY_NAME(), getLowercase(file->BOOST_DICTIONARY_ENTRY_NAME()), file->BOOST_LEAF_FUNCTION()));264 filelist.push_back(ArgumentCompletionListElement(file->BF_DICTIONARY_ENTRY_NAME(), getLowercase(file->BF_DICTIONARY_ENTRY_NAME()), file->BF_LEAF())); 267 265 ++file; 268 266 } -
code/branches/kicklib2/src/orxonox/sound/SoundManager.cc
r8284 r8285 330 330 ALenum error = alGetError(); 331 331 if (error == AL_INVALID_VALUE) 332 // @TODO: Follow this constantly appearing, nerve-racking warning 332 333 COUT(2) << "Sound: OpenAL: Invalid listener position" << std::endl; 333 334 }
Note: See TracChangeset
for help on using the changeset viewer.