cal3D patch

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
CHERTS
Posts: 15
Joined: Mon Oct 29, 2007 2:23 pm

cal3D patch

Post by CHERTS »

When building a repository cal3D ps2dev.org (revision 2435), a few errors:
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: 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&#58; src/cal3d/platform.cpp
===================================================================
--- src/cal3d/platform.cpp	&#40;revision 2435&#41;
+++ src/cal3d/platform.cpp	&#40;working copy&#41;
@@ -16,6 +16,8 @@
 // Includes                                                                   //
 //****************************************************************************//
 
+#include <string.h>
+
 #include "cal3d/platform.h"
 
  /*****************************************************************************/
Index&#58; src/cal3d/renderer.cpp
===================================================================
--- src/cal3d/renderer.cpp	&#40;revision 2435&#41;
+++ src/cal3d/renderer.cpp	&#40;working copy&#41;
@@ -16,6 +16,8 @@
 // Includes                                                                   //
 //****************************************************************************//
 
+#include <string.h>
+
 #include "cal3d/error.h"
 #include "cal3d/renderer.h"
 #include "cal3d/coremodel.h"
Index&#58; src/cal3d/submesh.cpp
===================================================================
--- src/cal3d/submesh.cpp	&#40;revision 2435&#41;
+++ src/cal3d/submesh.cpp	&#40;working copy&#41;
@@ -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
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
ooPo
Site Admin
Posts: 2023
Joined: Sat Jan 17, 2004 9:56 am
Location: Canada
Contact:

Post by ooPo »

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.
is01sjjj
Posts: 1
Joined: Fri Nov 28, 2008 6:10 pm

Post by is01sjjj »

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!
Post Reply