Building - Java-related issues
fillest opened this issue · 0 comments
fillest commented
First of all - I don't need Java bindings, is there a way to disable building it? I've looked through cmake files and haven't noticed any related flags.
Anyway, build fails for me:
- I make a build dir for out-of-source building,
cd
to it and runcmake ..
andmake
[ 44%] Building C object kazmath/CMakeFiles/kazmath.dir/GL/matrix.c.o
Linking C shared library libkazmath.so
[ 44%] Built target kazmath
[ 48%] Generating kazmath/jkazmath.class
[ 51%] Generating jni/kazmath_jkazmath.h
error: cannot access kazmath.jkazmath
class file for kazmath.jkazmath not found
javadoc: error - Class kazmath.jkazmath not found.
Error: No classes were specified on the command line. Try -help.
make[2]: *** [java/jni/kazmath_jkazmath.h] Error 15
make[1]: *** [java/CMakeFiles/Jkazmath.dir/all] Error 2
make: *** [all] Error 2
ERROR Last command returned non-zero exit status 2, it's error report should be above
- Seems like there may be a problem with the paths. Ok, I try again but run
cmake .
in source root dir (clean checkout).
[ 44%] Building C object kazmath/CMakeFiles/kazmath.dir/GL/matrix.c.o
Linking C shared library libkazmath.so
[ 44%] Built target kazmath
[ 48%] Generating kazmath/jkazmath.class
[ 51%] Generating jni/kazmath_jkazmath.h
Scanning dependencies of target Jkazmath
[ 55%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/mat4.c.o
[ 58%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/vec2.c.o
[ 62%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/ray2.c.o
[ 65%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/utility.c.o
[ 68%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/mat3.c.o
[ 72%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/plane.c.o
[ 75%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/aabb.c.o
[ 79%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/ray3.c.o
[ 82%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/vec4.c.o
[ 86%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/GL/matrix.c.o
[ 89%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/GL/mat4stack.c.o
[ 93%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/quaternion.c.o
[ 96%] Building C object java/CMakeFiles/Jkazmath.dir/__/kazmath/vec3.c.o
[100%] Building C object java/CMakeFiles/Jkazmath.dir/jni/kazmath.c.o
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmQuaternionConjugate’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:214:5: warning: implicit declaration of function ‘kmQuaternionConjugate’ [-Wimplicit-function-declaration]
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmQuaternionNormalize’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:306:19: warning: unused variable ‘i’ [-Wunused-variable]
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:305:19: warning: unused variable ‘o’ [-Wunused-variable]
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmQuaternionRotationAxis’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:316:5: warning: implicit declaration of function ‘kmQuaternionRotationAxis’ [-Wimplicit-function-declaration]
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmQuaternionRotationYawPitchRoll’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:335:5: warning: implicit declaration of function ‘kmQuaternionRotationYawPitchRoll’ [-Wimplicit-function-declaration]
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmPlaneFromPointNormal’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:449:5: warning: implicit declaration of function ‘kmPlaneFromPointNormal’ [-Wimplicit-function-declaration]
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmMat3Inverse’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:566:5: error: incompatible type for argument 2 of ‘kmMat3Inverse’
/home/f/proj/game_new/build/dev/kazmath/kazmath/mat3.h:50:9: note: expected ‘const struct kmMat3 *’ but argument is of type ‘jfloat’
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:566:5: error: too many arguments to function ‘kmMat3Inverse’
/home/f/proj/game_new/build/dev/kazmath/kazmath/mat3.h:50:9: note: declared here
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmMat4RotationPitchYawRoll’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:1091:5: warning: implicit declaration of function ‘kmMat4RotationPitchYawRoll’ [-Wimplicit-function-declaration]
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmMat4GetForwardVec3’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:1143:5: warning: implicit declaration of function ‘kmMat4GetForwardVec3’ [-Wimplicit-function-declaration]
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c: In function ‘Java_kazmath_jkazmath_kmVec4TransformArray’:
/home/f/proj/game_new/build/dev/kazmath/java/jni/kazmath.c:129:1: warning: control reaches end of non-void function [-Wreturn-type]
make[2]: *** [java/CMakeFiles/Jkazmath.dir/jni/kazmath.c.o] Error 1
make[1]: *** [java/CMakeFiles/Jkazmath.dir/all] Error 2
make: *** [all] Error 2
ERROR Last command returned non-zero exit status 2, it's error report should be above
Environment is Ubuntu 12.04.3,
$ java -version
java version "1.6.0_27"
OpenJDK Runtime Environment (IcedTea6 1.12.6) (6b27-1.12.6-1ubuntu0.12.04.2)
Kazmath is latest from master
(1f3ce5a)