Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (481)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (548)
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] Compiling ODE natives for Mac OS X  (Read 994 times)
0 Members and 1 Guest are viewing this topic.
Offline joh

Junior Newbie





« Posted 2007-04-23 07:55:55 »

Hello,

I'm trying to compile ODE natives for Mac OS X by following the instructions in odejava-jni/src/readme.txt but I'm having problems compiling ode rev 996:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
odejava/odejava-jni joh$ svn co https://svn.sourceforge.net/svnroot/opende/trunk opende -r 996
<snip>
odejava/odejava-jni joh$ cd opende/
odejava/odejava-jni/opende joh$ patch -p0 --dry-run < ../src/ode.patch
patching file include/ode/common.h
patching file include/ode/objects.h
patching file include/ode/odecpp.h
patching file ode/src/error.cpp
patching file ode/src/joint.cpp
patching file ode/src/joint.h
patching file ode/src/timer.cpp
odejava/odejava-jni/opende joh$ export CFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
odejava/odejava-jni/opende joh$ export CXXFLAGS="-arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
odejava/odejava-jni/opende joh$ sh autogen.sh
<snip>
odejava/odejava-jni/opende joh$ ./configure --disable-dependency-tracking
<snip>
Configuration:
  Target system type:      powerpc-apple-darwin8.9.0
  Build  system type:      powerpc-apple-darwin8.9.0
  Host   system type:      powerpc-apple-darwin8.9.0
  Use double precision:    no
  Use OPCODE:              yes
  Use gyroscopic term:     yes
  Is this a Pentium:       no
  Is the CPU x86-64:       no
  Is this a release build: no
  Is this a debug build:   no
  Using SONAME:           no
  Headers will be installed in /usr/local/include/ode
  Libraries will be installed in /usr/local/lib
odejava/odejava-jni/opende joh$ cd ode
odejava/odejava-jni/opende/ode joh$ make
<snip>
Making all in test
g++ -DHAVE_CONFIG_H -I. -I. -I../../include/ode    -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -I../../include -I../../include -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -c -o test_collision.o test_collision.cpp
make[1]: *** No rule to make target `../../drawstuff/src/libdrawstuff.a', needed by `test_collision'.  Stop.
make: *** [all-recursive] Error 1


Anyone know how I can fix this?

- joh
Offline irrisor

Junior Member





« Reply #1 - Posted 2007-04-24 07:52:49 »

Compiling without tests should be fine. You are missing the drawstuff but it's not needed for the odelib. Simply go on with the next steps.
Offline joh

Junior Newbie





« Reply #2 - Posted 2007-04-25 00:07:56 »

Compiling without tests should be fine. You are missing the drawstuff but it's not needed for the odelib. Simply go on with the next steps.

Ah great! You see, I tried that and didn't really look closely enough at the errors I got and just assumed it was because ode seemed to fail to compile. But I finally got it working now with these altered commands compared to the ones from readme.txt... You might want to update that section Smiley

1  
2  
3  
4  
5  
6  
7  
odejava/odejava-jni/opende joh$ export JAVA_INCLUDE=/Library/Java/Home/include

odejava/odejava-jni/opende joh$ g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fPIC -DHAVE_CONFIG_H -I. -Iinclude/ode -O2 -fno-strict-aliasing -fomit-frame-pointer -ffast-math -Iinclude -Iinclude -IOPCODE -IOPCODE/Ice -I$JAVA_INCLUDE/linux -I$JAVA_INCLUDE -I../src/c -DdTRIMESH_ENABLED -c -o ../bin/odejava_wrap.o ../generated/odejava_wrap.cxx

odejava/odejava-jni/opende joh$ g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fPIC -DHAVE_CONFIG_H -I. -Iinclude/ode -O2 -fno-strict-aliasing -fomit-frame-pointer -ffast-math -Iinclude -Iinclude -IOPCODE -IOPCODE/Ice -I$JAVA_INCLUDE/linux -I$JAVA_INCLUDE -DdTRIMESH_ENABLED -c -o ../bin/odejava.o ../src/c/odejava.cpp

odejava/odejava-jni/opende joh$ g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fPIC -dynamiclib `find ode/src -name *.o` ../bin/odejava_wrap.o ../bin/odejava.o -o lib/libodejava.so


Rename lib/libodejava.so to libodejava.jnilib and put it somewhere in your java library path Smiley

irrisor, let me know if you want my libodejava.jnilib for jMEphysics2 Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline irrisor

Junior Member





« Reply #3 - Posted 2007-04-25 07:17:40 »

irrisor, let me know if you want my libodejava.jnilib for jMEphysics2 Smiley
sure, that'd be great - is it universal (intel and mac)?

What did you have to change in those lines?
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.

atombrot (26 views)
2014-08-19 09:29:53

Tekkerue (24 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (14 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (60 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (30 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38

BurntPizza (67 views)
2014-08-03 02:57:17
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!