Pardu Report post Posted September 13, 2007 got new cal3d compiled and installed.. and got past all the errors mentioned above relating to it.. now I am getting the following.. as of 3 am PST 9/13/07 exceptions/extendedexception.cpp: In constructor 'extended_exception::extended_exception(const char*, ...)': exceptions/extendedexception.cpp:20: error: 'va_start' was not declared in this scope exceptions/extendedexception.cpp:22: error: 'va_end' was not declared in this scope using : -DLINUX -DELC -DAFK_FIX -DALPHA_ACTORS -DATI_9200_FIX -DAUTO_UPDATE -DCLICKABLE_CONTINENT_MAP -DCOUNTERS -DCUSTOM_LOOK -DCUSTOM_UPDATE -DEYE_CANDY -DFONTS_FIX -DFUZZY_PATHS -DIDLE_FIX -DMASKING -DNEW_ACTOR_ANIMATION -DNEW_ACTOR_SCALE -DNEW_ALPHA -DNEW_FILE_IO -DNEW_LIGHTING -DNEW_SOUND -DNEW_TEX -DNOTEPAD -DOGG_VORBIS -DOPTIONS_I18N -DPNG_SCREENSHOT -DSFX -DSIMPLE_LOD -DSKY_FPV_CURSOR -DUSE_INLINE -DXX86_64 -DZLIB -DZLIBW -DCXX_MISC -DUSE_SEND_VIDEO_INFO any suggestions would be appreciated Thank you. Share this post Link to post Share on other sites
Grum Report post Posted September 13, 2007 I've checked in a patch, can you test if it helps? Thanks. Share this post Link to post Share on other sites
Pardu Report post Posted September 13, 2007 works great! Thank you very much \o/ Share this post Link to post Share on other sites
Florian Report post Posted September 13, 2007 (edited) /usr/bin/ld: warning multiple definitions of symbol _CalSkeleton_CalculateBoundingBoxes cal3d_wrapper.o definition of _CalSkeleton_CalculateBoundingBoxes in section (__TEXT,__text) /usr/local/lib/libcal3d.dylib(single module) definition of _CalSkeleton_CalculateBoundingBoxes /usr/bin/ld: warning multiple definitions of symbol _CalSkeleton_GetBoneBoundingBox cal3d_wrapper.o definition of _CalSkeleton_GetBoneBoundingBox in section (__TEXT,__text) /usr/local/lib/libcal3d.dylib(single module) definition of _CalSkeleton_GetBoneBoundingBox /usr/bin/ld: warning multiple definitions of symbol _CalCoreAnimation_Scale cal3d_wrapper.o definition of _CalCoreAnimation_Scale in section (__TEXT,__text) /usr/local/lib/libcal3d.dylib(single module) definition of _CalCoreAnimation_Scale /usr/bin/ld: warning multiple definitions of symbol _CalCoreMesh_Scale cal3d_wrapper.o definition of _CalCoreMesh_Scale in section (__TEXT,__text) /usr/local/lib/libcal3d.dylib(single module) definition of _CalCoreMesh_Scale /usr/bin/ld: warning multiple definitions of symbol _CalCoreSkeleton_Scale cal3d_wrapper.o definition of _CalCoreSkeleton_Scale in section (__TEXT,__text) /usr/local/lib/libcal3d.dylib(single module) definition of _CalCoreSkeleton_Scale /usr/bin/ld: warning multiple definitions of symbol _CalMixer_RemoveAction cal3d_wrapper.o definition of _CalMixer_RemoveAction in section (__TEXT,__text) /usr/local/lib/libcal3d.dylib(single module) definition of _CalMixer_RemoveAction /EDIT patch to get rid of those warnings: Index: cal3d_wrapper.cpp =================================================================== RCS file: /cvsroot/elc/elc/cal3d_wrapper.cpp,v retrieving revision 1.12 diff -u -d -p -r1.12 cal3d_wrapper.cpp --- cal3d_wrapper.cpp 16 Jun 2007 01:40:51 -0000 1.12 +++ cal3d_wrapper.cpp 14 Sep 2007 18:16:18 -0000 @@ -8,33 +8,28 @@ extern "C" CAL3D_WRAPPER_API CalMesh *Ca return self->getVectorMesh()[i]; } -extern "C" CAL3D_WRAPPER_API void CalCoreSkeleton_Scale(CalCoreSkeleton *self,float factor) -{ - self->scale(factor); -} - - extern "C" CAL3D_WRAPPER_API enum CalBoolean CalMixer_ExecuteAction_Stop(CalMixer *self, int id, float delayIn, float delayOut) { return self->executeAction(id, delayIn, delayOut, 1.0f,true) ? True : False; } -extern "C" CAL3D_WRAPPER_API void CalMixer_RemoveAction(CalMixer *self,int id) +extern "C" CAL3D_WRAPPER_API void CalMixer_SetAnimationTime(CalMixer *self, float animationTime) { - self->removeAction(id); + self->setAnimationTime(animationTime); } -extern "C" CAL3D_WRAPPER_API void CalMixer_SetAnimationTime(CalMixer *self, float animationTime) +#ifndef NEW_FILE_IO +extern "C" CAL3D_WRAPPER_API void CalCoreMesh_Scale(CalCoreMesh *self,float factor) { - self->setAnimationTime(animationTime); + self->scale(factor); } -extern "C" CAL3D_WRAPPER_API void CalCoreAnimation_Scale(CalCoreAnimation *self, float factor) +extern "C" CAL3D_WRAPPER_API void CalCoreSkeleton_Scale(CalCoreSkeleton *self,float factor) { self->scale(factor); } -extern "C" CAL3D_WRAPPER_API void CalCoreMesh_Scale(CalCoreMesh *self,float factor) +extern "C" CAL3D_WRAPPER_API void CalCoreAnimation_Scale(CalCoreAnimation *self, float factor) { self->scale(factor); } @@ -44,7 +39,13 @@ extern "C" CAL3D_WRAPPER_API void CalSke self->getBoneBoundingBox(min, max); } +extern "C" CAL3D_WRAPPER_API void CalMixer_RemoveAction(CalMixer *self,int id) +{ + self->removeAction(id); +} + extern "C" CAL3D_WRAPPER_API void CalSkeleton_CalculateBoundingBoxes(struct CalSkeleton *self) { self->calculateBoundingBoxes(); } +#endif Index: cal3d_wrapper.h =================================================================== RCS file: /cvsroot/elc/elc/cal3d_wrapper.h,v retrieving revision 1.10 diff -u -d -p -r1.10 cal3d_wrapper.h --- cal3d_wrapper.h 16 Jun 2007 01:40:51 -0000 1.10 +++ cal3d_wrapper.h 14 Sep 2007 18:16:19 -0000 @@ -189,7 +189,9 @@ extern "C" // CalCoreAnimation wrapper functions declaration // //****************************************************************************// + #ifndef NEW_FILE_IO CAL3D_WRAPPER_API void CalCoreAnimation_Scale(struct CalCoreAnimation *self, float factor); + #endif CAL3D_WRAPPER_API void CalCoreAnimation_AddCoreTrack(struct CalCoreAnimation *self, struct CalCoreTrack *pCoreTrack); CAL3D_WRAPPER_API void CalCoreAnimation_Delete(struct CalCoreAnimation *self); CAL3D_WRAPPER_API struct CalCoreTrack *CalCoreAnimation_GetCoreTrack(struct CalCoreAnimation *self, int coreBoneId); @@ -265,7 +267,9 @@ extern "C" // CalCoreMesh wrapper functions declaration // //****************************************************************************// + #ifndef NEW_FILE_IO CAL3D_WRAPPER_API void CalCoreMesh_Scale(struct CalCoreMesh *self,float factor); + #endif CAL3D_WRAPPER_API int CalCoreMesh_AddCoreSubmesh(struct CalCoreMesh *self, struct CalCoreSubmesh *pCoreSubmesh); CAL3D_WRAPPER_API void CalCoreMesh_Delete(struct CalCoreMesh *self); CAL3D_WRAPPER_API struct CalCoreSubmesh *CalCoreMesh_GetCoreSubmesh(struct CalCoreMesh *self, int id); @@ -308,8 +312,9 @@ extern "C" // CalCoreSkeleton wrapper functions declaration // //****************************************************************************// - + #ifndef NEW_FILE_IO CAL3D_WRAPPER_API void CalCoreSkeleton_Scale(struct CalCoreSkeleton *self,float factor); + #endif CAL3D_WRAPPER_API int CalCoreSkeleton_AddCoreBone(struct CalCoreSkeleton *self, struct CalCoreBone *pCoreBone); CAL3D_WRAPPER_API void CalCoreSkeleton_CalculateState(struct CalCoreSkeleton *self); CAL3D_WRAPPER_API void CalCoreSkeleton_Delete(struct CalCoreSkeleton *self); @@ -427,7 +432,9 @@ CAL3D_WRAPPER_API enum CalBoolean CalCo CAL3D_WRAPPER_API enum CalBoolean CalMixer_ClearCycle(struct CalMixer *self, int id, float delay); CAL3D_WRAPPER_API void CalMixer_Delete(struct CalMixer *self); CAL3D_WRAPPER_API enum CalBoolean CalMixer_ExecuteAction(struct CalMixer *self, int id, float delayIn, float delayOut); + #ifndef NEW_FILE_IO CAL3D_WRAPPER_API void CalMixer_RemoveAction(struct CalMixer *self,int id); + #endif CAL3D_WRAPPER_API struct CalMixer *CalMixer_New(struct CalModel *pModel); CAL3D_WRAPPER_API void CalMixer_UpdateAnimation(struct CalMixer *self, float deltaTime); CAL3D_WRAPPER_API void CalMixer_UpdateSkeleton(struct CalMixer *self); @@ -540,8 +547,10 @@ CAL3D_WRAPPER_API enum CalBoolean CalCo // CAL3D_WRAPPER_API std::vector<CalBone *>& CalSkeleton_GetVectorBone(struct CalSkeleton *self); CAL3D_WRAPPER_API void CalSkeleton_LockState(struct CalSkeleton *self); CAL3D_WRAPPER_API struct CalSkeleton *CalSkeleton_New(struct CalCoreSkeleton* pCoreSkeleton); + #ifndef NEW_FILE_IO CAL3D_WRAPPER_API void CalSkeleton_GetBoneBoundingBox(struct CalSkeleton *self, float *min, float *max); CAL3D_WRAPPER_API void CalSkeleton_CalculateBoundingBoxes(struct CalSkeleton *self); + #endif // DEBUG-CODE CAL3D_WRAPPER_API int CalSkeleton_GetBonePoints(struct CalSkeleton *self, float *pPoints); Edited September 14, 2007 by Florian Share this post Link to post Share on other sites