Use this patch to address thempsp-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
cal3D.patch
Code: Select all
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"
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