Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  [odejava] compilation problems  (Read 949 times)
0 Members and 1 Guest are viewing this topic.
Offline sanchofx1

Senior Newbie




Java games rock!


« Posted 2004-10-21 16:59:29 »

Hello folks,

I have checked out a recent version of odejava from cvs and now trying to compile it. During compilation I get the following  problems (using linux, gcc version 3.3.4 (Debian 1:3.3.4-13)):

[...]
[creating libodejava.so]
../odejava/odejava_wrap.cxx: In function `void
  Java_org_odejava_ode_OdeJNI_dWorldSetAutoDisableAnguleThreshold(JNIEnv*,
  _jclass*, long long int, float)':
../odejava/odejava_wrap.cxx:4928: error: `dWorldSetAutoDisableAnguleThreshold'
  undeclared (first use this function)
../odejava/odejava_wrap.cxx:4928: error: (Each undeclared identifier is
  reported only once for each function it appears in.)
../odejava/odejava_wrap.cxx: In function `jfloat
  Java_org_odejava_ode_OdeJNI_dWorldGetAutoDisableAnguleThreshold(JNIEnv*,
  _jclass*, long long int)':
../odejava/odejava_wrap.cxx:4947: error: `dWorldGetAutoDisableAnguleThreshold'
  undeclared (first use this function)
../odejava/odejava_wrap.cxx: In function `jfloat
  Java_org_odejava_ode_OdeJNI_dWorldGetContactSurfaceLater(JNIEnv*, _jclass*,
  long long int)':
../odejava/odejava_wrap.cxx:5107: error: `dWorldGetContactSurfaceLater'
  undeclared (first use this function)
../odejava/odejava_wrap.cxx: In function `void
  Java_org_odejava_ode_OdeJNI_dBodySetAutoDisableAnguleThreshold(JNIEnv*,
  _jclass*, long long int, float)':
../odejava/odejava_wrap.cxx:6340: error: `dBodySetAutoDisableAnguleThreshold'
  undeclared (first use this function)
../odejava/odejava_wrap.cxx: In function `jfloat
  Java_org_odejava_ode_OdeJNI_dBodyGetAutoDisableAnguleThreshold(JNIEnv*,
  _jclass*, long long int)':
../odejava/odejava_wrap.cxx:6359: error: `dBodyGetAutoDisableAnguleThreshold'
  undeclared (first use this function)
../odejava/odejava_wrap.cxx: At top level:
../odejava/odejava.hpp:41: warning: `int surfaceMode' defined but not used
../odejava/odejava.hpp:42: warning: `float surfaceMu' defined but not used
../odejava/odejava.hpp:43: warning: `float surfaceMu2' defined but not used
../odejava/odejava.hpp:44: warning: `float surfaceBounce' defined but not used
../odejava/odejava.hpp:45: warning: `float surfaceBounceVel' defined but not
  used
../odejava/odejava.hpp:46: warning: `float surfaceMotion1' defined but not used
../odejava/odejava.hpp:47: warning: `float surfaceMotion2' defined but not used
../odejava/odejava.hpp:48: warning: `float surfaceSlip1' defined but not used
../odejava/odejava.hpp:49: warning: `float surfaceSlip2' defined but not used
../odejava/odejava.hpp:50: warning: `float surfaceSoftErp' defined but not used
../odejava/odejava.hpp:51: warning: `float surfaceSoftCfm' defined but not used
../odejava/odejava.cpp: In function `void
  Java_org_odejava_collision_PureJavaCollision_javaSpaceCollide2(JNIEnv*,
  _jobject*, long long int, long long int)':
../odejava/odejava.cpp:474: warning: cast to pointer from integer of different
  size
../odejava/odejava.cpp:474: warning: cast to pointer from integer of different
  size
g++: ../odejava/odejava_wrap.o: No such file or directory
-----------------------

In addition I wonder if it would be possible to add the log4j.jar into the library path (and update the ant build scripts), as the java compilation will not work without log4j. Currently you need to copy it into the JAVA_HOME/jre/lib/ext/ directory to run the build script.
Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #1 - Posted 2004-10-22 23:21:12 »

Any reason why you are not using the precompiled binaries?

The explanation for your compile problem that the "missing" methods are infact missing from the version of ODE you are compiling against.  Check out the second most recent version of odejava.i and it will work.

Will.

Offline William Denniss

JGO Coder


Projects: 2


Fire at will


« Reply #2 - Posted 2004-10-30 04:12:18 »

Actually this was due to a typo in the odejava.i file for these new methods.

Angule should be "Angular" (several instances) and "Later" should have been "Layer".

I didn't notice this when I committed in the patch to add these methods.  It's fixed now.

Will.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Riven (8 views)
2014-10-02 14:36:20

Pippogeek (41 views)
2014-09-24 16:13:29

Pippogeek (32 views)
2014-09-24 16:12:22

Pippogeek (22 views)
2014-09-24 16:12:06

Grunnt (47 views)
2014-09-23 14:38:19

radar3301 (30 views)
2014-09-21 23:33:17

BurntPizza (65 views)
2014-09-21 02:42:18

BurntPizza (37 views)
2014-09-21 01:30:30

moogie (44 views)
2014-09-21 00:26:15

UprightPath (53 views)
2014-09-20 20:14:06
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!