Changeset 7169 in orxonox.OLD for branches/shared_lib
- Timestamp:
- Feb 19, 2006, 6:35:31 PM (19 years ago)
- Location:
- branches/shared_lib
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/shared_lib/config.h.in
r6838 r7169 18 18 /* if we have CURL */ 19 19 #undef HAVE_CURL 20 21 /* Define to 1 if you have the <dlfcn.h> header file. */ 22 #undef HAVE_DLFCN_H 20 23 21 24 /* Define to 1 if you have the <ffmpeg/avcodec.h> header file. */ -
branches/shared_lib/configure.ac
r7151 r7169 42 42 ######################### 43 43 AC_PROG_CXX 44 AC_PROG_ RANLIB44 AC_PROG_LIBTOOL 45 45 AC_HEADER_STDC 46 46 -
branches/shared_lib/src/Makefile.am
r7151 r7169 13 13 14 14 orxonox_CPPFLAGS = -DIS_ORXONOX 15 orxonox_LDFLAGS = -u global_ModelParticles_Factory15 orxonox_LDFLAGS = -rdynamic -ldl 16 16 17 17 orxonox_DEPENDENCIES = \ -
branches/shared_lib/src/defs/debug.h
r7165 r7169 68 68 69 69 // LOADING 70 #define DEBUG_MODULE_LOAD 70 #define DEBUG_MODULE_LOADING 2 71 71 #define DEBUG_MODULE_IMPORTER 2 72 72 -
branches/shared_lib/src/orxonox.cc
r7167 r7169 290 290 291 291 #include "dynamic_loader.h" 292 #include <dlfcn.h> 292 293 293 294 /** … … 332 333 delete[] imageDir; 333 334 334 DynamicLoader::loadDyLib("libtest.so"); 335 // void* handle; 336 // handle = dlopen("./src/world_entities/.libs/libORXground_turret.so", RTLD_NOW); 337 // if(handle == NULL) 338 // { 339 // PRINTF(1)("unable to load %s\n", dlerror()); 340 // 341 // return false; 342 // } 343 DynamicLoader::loadDyLib("./src/world_entities/.libs/libORXground_turret.so"); 335 344 336 345 // start the collision detection engine -
branches/shared_lib/src/subprojects/collision_detection/Makefile.am
r7156 r7169 4 4 LIB_PREFIX=$(MAINSRCDIR)/lib 5 5 include $(MAINSRCDIR)/lib/BuildLibs.am 6 7 8 importer_LDFLAGS = \9 $(MWINDOWS)10 6 11 7 bin_PROGRAMS = collision … … 24 20 $(GTK2_LIBS) $(GTHREAD_LIBS) $(CURL_LIBS) 25 21 26 importer_SOURCES= \27 ../framework.cc \28 importer.cc \29 $(MAINSRCDIR)/world_entities/space_ships/space_ship.cc \30 $(MAINSRCDIR)/world_entities/weapons/test_gun.cc31 32 33 34 22 collision_CPPFLAGS = \ 35 23 -DGUI_MODULE \ -
branches/shared_lib/src/util/loading/dynamic_loader.cc
r7167 r7169 30 30 */ 31 31 DynamicLoader::DynamicLoader (const std::string& libName) 32 : Factory(NULL, CL_NULL)33 32 { 34 33 this->setClassID(CL_DYNAMIC_LOADER, "DynamicLoader"); … … 62 61 } 63 62 64 bool DynamicLoader::loadDyLib(const std::string&libName)63 bool DynamicLoader::loadDyLib(const char* libName) 65 64 { 66 65 void* handle; 67 handle = dlopen( &libName[0], RTLD_NOW);66 handle = dlopen(libName, RTLD_NOW); 68 67 if(handle == NULL) 69 68 { 70 PRINTF(0)("unable to load %s\n", &libName[0]); 69 PRINTF(1)("unable to load %s: %s\n", libName, dlerror()); 70 71 71 return false; 72 72 } -
branches/shared_lib/src/util/loading/dynamic_loader.h
r7167 r7169 11 11 #include <string> 12 12 13 #define DYNAMIC_LINKAGE_FACTORY(CLASS_NAME, CLASS_ID) \14 void* DynamicCreator(const TiXmlElement* root) { return new CLASS_NAME(root); };15 16 13 // FORWARD DECLARATION 17 14 18 15 //! A class for ... 19 class DynamicLoader : public Factory16 class DynamicLoader : public BaseObject 20 17 { 21 18 … … 27 24 virtual BaseObject* fabricateObject(const TiXmlElement* root = NULL) const; 28 25 29 static bool loadDyLib(const std::string&libName);26 static bool loadDyLib(const char* libName); 30 27 31 28 -
branches/shared_lib/src/world_entities/Makefile.am
r7155 r7169 4 4 5 5 noinst_LIBRARIES = libORXwe.a 6 #lib_LTLIBRARIES = libORXground_turret.la 7 #libORXground_turret_la_SOURCES = npcs/ground_turret.cc 6 8 7 9 ## THESE ARE THE BASE CLASSES OF ALL WORLD_ENTITIES -
branches/shared_lib/src/world_entities/WorldEntities.am
r7167 r7169 3 3 world_entities/npcs/npc_test1.cc \ 4 4 world_entities/npcs/npc_test.cc \ 5 world_entities/npcs/ground_turret.cc \6 5 \ 7 6 world_entities/environment.cc \
Note: See TracChangeset
for help on using the changeset viewer.