[Bf-committers] problems compiling gameengine
Mathias Panzenböck
grosser.meister.morti at gmx.net
Wed Aug 6 17:45:39 CEST 2008
Hi.
Compiling current trunk and current apricot I get this message:
[ 69%] Building CXX object
source/gameengine/Ketsji/CMakeFiles/bf_ketsji.dir/KX_PythonInit.o
/home/panzi/software/apricot/apricot/source/gameengine/Ketsji/KX_PythonInit.cpp:66:93:
error: Mathutils.h: No such file or directory
/home/panzi/software/apricot/apricot/source/gameengine/Ketsji/KX_PythonInit.cpp: In
function 'PyObject* initMathutils()':
/home/panzi/software/apricot/apricot/source/gameengine/Ketsji/KX_PythonInit.cpp:1260:
error: 'Mathutils_Init' was not declared in this scope
make[2]: *** [source/gameengine/Ketsji/CMakeFiles/bf_ketsji.dir/KX_PythonInit.o] Error 1
make[1]: *** [source/gameengine/Ketsji/CMakeFiles/bf_ketsji.dir/all] Error 2
make: *** [all] Error 2
Adding the dir of the .h file to the include part helps compiling, but will end in an
error on linktime:
Linking C executable ../bin/blenderplayer
/home/panzi/software/apricot/lib/libbf_ketsji.a(KX_PythonInit.o): In function
`initMathutils()':
KX_PythonInit.cpp:(.text+0x97c): undefined reference to `Mathutils_Init'
/home/panzi/software/apricot/lib/libbf_nodes.a(SHD_dynamic.o): In function
`init_dynamicdict':
SHD_dynamic.c:(.text+0x153): undefined reference to `EXPP_dict_set_item_str'
collect2: ld returned 1 exit status
make[2]: *** [bin/blenderplayer] Error 1
make[1]: *** [blenderplayer/CMakeFiles/blenderplayer.dir/all] Error 2
make: *** [all] Error 2
But that's only the blenderplayer (I know that mathutils are missing in
blenderplayer, blender works).
My hack to fix the compile:
Index: source/gameengine/Ketsji/KX_PythonInit.cpp
===================================================================
--- source/gameengine/Ketsji/KX_PythonInit.cpp (revision 15985)
+++ source/gameengine/Ketsji/KX_PythonInit.cpp (working copy)
@@ -63,7 +63,7 @@
#include "KX_PyMath.h"
extern "C" {
- #include "Mathutils.h" // Blender.Mathutils module copied here so the
blenderlayer can use.
+ #include "../../blender/python/api2_2x/Mathutils.h" // Blender.Mathutils
module copied here so the blenderlayer can use.
}
#include "PHY_IPhysicsEnvironment.h"
More information about the Bf-committers
mailing list