 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
CHERTS
Joined: 29 Oct 2007 Posts: 15
|
Posted: Wed Oct 22, 2008 6:11 pm Post subject: cal3D patch |
|
|
When building a repository cal3D ps2dev.org (revision 2435), a few errors:
| Quote: | psp-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src -O2 -fno-rtti -
G0 -MT hardwaremodel.lo -MD -MP -MF .deps/hardwaremodel.Tpo -c hardwaremodel.cpp
-o hardwaremodel.o
hardwaremodel.cpp: In member function 'int CalHardwareModel::addVertex(CalHardwa
reModel::CalHardwareMesh&, int, CalCoreSubmesh*, int)':
hardwaremodel.cpp:754: error: 'memcpy' was not declared in this scope
hardwaremodel.cpp:765: error: 'memset' was not declared in this scope
hardwaremodel.cpp:776: error: 'memset' was not declared in this scope
hardwaremodel.cpp:793: error: 'memset' was not declared in this scope
make[3]: *** [hardwaremodel.lo] Error 1
make[3]: Leaving directory `/cygdrive/c/svn/cal3D/src/cal3d'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/svn/cal3D/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/svn/cal3D'
make: *** [all] Error 2 |
Use this patch to address them
cal3D.patch
| Code: | Index: src/cal3d/hardwaremodel.cpp
===================================================================
--- src/cal3d/hardwaremodel.cpp (revision 2435)
+++ src/cal3d/hardwaremodel.cpp (working copy)
@@ -12,6 +12,7 @@
#include "config.h"
#endif
+#include <string.h>
#include "cal3d/error.h"
#include "cal3d/hardwaremodel.h"
Index: src/cal3d/platform.cpp
===================================================================
--- src/cal3d/platform.cpp (revision 2435)
+++ src/cal3d/platform.cpp (working copy)
@@ -16,6 +16,8 @@
// Includes //
//****************************************************************************//
+#include <string.h>
+
#include "cal3d/platform.h"
/*****************************************************************************/
Index: src/cal3d/renderer.cpp
===================================================================
--- src/cal3d/renderer.cpp (revision 2435)
+++ src/cal3d/renderer.cpp (working copy)
@@ -16,6 +16,8 @@
// Includes //
//****************************************************************************//
+#include <string.h>
+
#include "cal3d/error.h"
#include "cal3d/renderer.h"
#include "cal3d/coremodel.h"
Index: src/cal3d/submesh.cpp
===================================================================
--- src/cal3d/submesh.cpp (revision 2435)
+++ src/cal3d/submesh.cpp (working copy)
@@ -12,6 +12,8 @@
#include "config.h"
#endif
+#include <string.h>
+
#include "cal3d/submesh.h"
#include "cal3d/error.h"
#include "cal3d/coresubmesh.h" |
make-psp.sh
| Quote: | cat cal3D.patch | patch -p0
LDFLAGS="-L$(psp-config --psp-prefix)/lib -L$(psp-config --pspsdk-path)/lib" \
LIBS="-lc -lstdc++ -lpsplibc -lpspuser" \
./configure --host=psp --disable-shared --prefix=$(psp-config --psp-prefix)
make && make install |
|
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Wed Oct 22, 2008 11:30 pm Post subject: |
|
|
| Quote: | Sending src/cal3d/hardwaremodel.cpp
Sending src/cal3d/platform.cpp
Sending src/cal3d/renderer.cpp
Sending src/cal3d/submesh.cpp
Transmitting file data ....
Committed revision 2437. |
Added to the repository. Thanks for the patch. |
|
| Back to top |
|
 |
is01sjjj
Joined: 28 Nov 2008 Posts: 1
|
Posted: Fri Nov 28, 2008 6:18 pm Post subject: |
|
|
Could anybody give a simple example of how to use cal3D with pspsdk?
I find it difficult to use cal3D without any sample or tutorial, very much thanks! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|