Skip to main content

Compiling J3D Core on amd64

9 replies [Last post]
timschwartz
Offline
Joined: 2004-09-22

Hi, I'm trying to compile j3dcore on my athlon 64, but there is no build-linux-x86_64.xml in the j3d-core/src/native/ogl/ directory. Could one of the developers make one? or explain to me what needs to be in that file?

Thanks,
Tim Schwartz

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
albrecht
Offline
Joined: 2005-07-11

hi tim,
their is a version (1.3.1.) for amd64. (here for example http://mirrors.sunsite.dk/java-linux/java3d/1.3.1/amd64/fcs/)

Is it possible to give an estimation on when it could be done for Version 1.3.2? I need it to run Looking Glass (which i need for a project at my university).

paulby
Offline
Joined: 2003-06-13

The ant changes/additions have been made and 1.3.2 is compiled. The machine I compiled on is headless so I'm waiting for a desktop so I can run some tests. As soon as I've seen HelloUniverse running I'll commit the ant changes.

The desktop is being configured as we speak so it should not be long....

paulby
Offline
Joined: 2003-06-13

I've just commited the changes for amd64 builds to the CVS repository. HelloUniverse run's, but I've not tested anything else. Once we have done some more testing we will post a binary version as well.

Note, to compile on amd64 you must set the ANT_OPTS environment variable to -Xmx256m, as noted in the README-build.html file.

timschwartz
Offline
Joined: 2004-09-22

I've tried to run ant and this is what I get:

compile:
[echo] Executing 64 bit native renderer build [opt]
[exec] /usr/bin/ld: /usr/X11R6/lib64/libGL.a(glapi.o): relocation R_X86_64_32 can not be used when making a shared object; recompile with -fPIC
[exec] /usr/X11R6/lib64/libGL.a: could not read symbols: Bad value
[exec] Result: 1

Any suggestions?

paulby
Offline
Joined: 2003-06-13

What OS and gcc version are you using ? Can you run ant -v and email me the output at Paul.Byrne'at'sun.com

I've built on SLES 9 with gcc 3.3.3 (which is comes with SLES9). The machine has the Nvidia AMD64 drivers installed, version 6111

timschwartz
Offline
Joined: 2004-09-22

I am using Debian/sid 64bit version. Kernel version 2.6.8-3.

gcc -v output:
Reading specs from /usr/lib/gcc-lib/x86_64-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc --disable-multilib x86_64-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-1)

The output from ant -v is viewable at http://www.timscomputers.com/j3d-core_ant_log

I am also using version 6111 of the Nvidia AMD64 drivers

timschwartz
Offline
Joined: 2004-09-22

Addendum: I also had to remove the -march=k8 from the build flags in build-linux-amd64.xml because I would get an error like: 'cc1: bad value (k8) for -march'

I tried x86_64 and amd64 in place of k8 and neither worked.

timschwartz
Offline
Joined: 2004-09-22

Any further developments on this topic?

paulby
Offline
Joined: 2003-06-13

I'm working on this now. Hopefully I'll have it finished in a couple of days.