Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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  
  Linux status  (Read 4072 times)
0 Members and 1 Guest are viewing this topic.
Offline lomax

Junior Newbie





« Posted 2003-09-15 21:48:28 »

Just wanted to check the status of the linux port. the cvs from monday
didn't compile out of the box. (gentoo, gcc 3.2.2, openal from portage)

But after some minor tweaks  of headerfiles and buildscript
(mainly removing the unit_test target) it produced
the files needed.

Have tried both SingleStaticSource from lesson1. (didnt compile)
and OpenALTest (runtime exception, missing function)

So, is this being worked on, or should I start to poke around in
the native code and see whats not working.

I'd be glad to help any way I can (experienced in both C and JNI) but
I don't want to waste my time fixing something thats already being fixed Smiley

/lomax


Offline sugarshark

Junior Devvie




Sugar to the sharks.


« Reply #1 - Posted 2003-09-17 08:14:03 »

Please feel free to improve on joal. I did the initial port to Linux and I don't think it's beeing worked on at the moment.
All I did was some tweaking of the build files and some fixes in the native part, so it compiled and ran the tests on my Redhat 9 box with OpenAL from the cvs. But I do not have the time currently to do more than that.

Most of the native code is still a bit of a mess. There is at least one memory leak I know of in the initialization code. So your fixes and contributions will be very welcome.


I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Offline DavidYazel

Junior Devvie




Java games rock!


« Reply #2 - Posted 2003-09-17 11:17:06 »

Well we are a bit stymied.  We added 3d sound to Xith3D and wrote the reference implementatiojn against OpenAL through JOAL.  It works flawlessly in Windows.  In linux it just crashes the program without exception information of any kind.  

Anyway we can widen the net to  catch a dev or two to shore this up?  Perhaps a request on the main JavaGaming site page.

David Yazel
Xith3D Project Founder
http://xith3d.dev.java.net

It may look complicated, but in the end it is just a bunch of triangles
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline pepijnve

Junior Devvie




Java games rock!


« Reply #3 - Posted 2003-09-17 11:31:50 »

I worked on my own OpenAL binding (http://al4java.sf.net) for some time, but I abandoned it once joal was made public. I was succesfull in making my binding run on windows too, but not on linux or os x. In os x I got terrible sound corruption (might have been an endianness problem, I didn't look at this any further). On linux though the OpenAL implementation seemed to differ from the spec. Some methods were missing, some had different return types, etc. I got the source OpenAL source from the creative cvs site, and indeed, the implementations differed. I mailed the maintainer at creative about this, but I never got any response. Are you guys possibly experiencing the same problems?
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #4 - Posted 2003-09-17 14:10:50 »

Quote
I was succesfull in making my binding run on windows too, but not on linux or os x. In os x I got terrible sound corruption (might have been an endianness problem, I didn't look at this any further).

Long ago, when I was playing with porting OpenAL to OS X with LWJGL I came across the same issue. I'm pretty sure it is endian related, but I didn't have a chance to sort it out.

Offline Jens

Senior Devvie




Java for games!


« Reply #5 - Posted 2003-09-29 12:42:45 »

What is needed to run OpenAL on Linux (besides joal.jar and libjoal.so)?

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline gregorypierce

Senior Devvie




I come upon thee like the blue screen of death....


« Reply #6 - Posted 2003-09-30 18:51:43 »

Well the native OpenAL stuff appears to play files fine so there should be a problem with endianness unless we're doing something weird with byte buffers somewhere.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline Jens

Senior Devvie




Java for games!


« Reply #7 - Posted 2003-10-02 18:05:02 »

I assume there are no additional requirements (at least no one answered). Why do I get this error if I run the Xith3D (latest CVS) SoundTest (com.xith3d.test.SoundTest)?
1  
2  
3  
4  
Exception in thread "main" java.lang.NullPointerException
        at com.xith3d.sound.drivers.joal.SoundDriverImpl.<init>(SoundDriverImpl.java)
        at com.xith3d.test.SoundTest.<init>(SoundTest.java)
        at com.xith3d.test.SoundTest.main(SoundTest.java)

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline Jens

Senior Devvie




Java for games!


« Reply #8 - Posted 2003-12-11 07:13:19 »

Using the newest Joal nightly build, I get this exception when running the first lesson of the Joal tutorial or the Xith3D sound test:

1  
2  
3  
4  
5  
6  
7  
ALFactory.init - Native: Enter
ALFactory.init - Native: Exit
net.java.games.joal.OpenALException: Could not load openal library.
        at net.java.games.joal.ALFactory.init(Native Method)
        at net.java.games.joal.ALFactory.initialize(ALFactory.java:63)
        at net.java.games.joal.ALFactory.getAL(ALFactory.java:88)
        at SingleStaticSource.main(SingleStaticSource.java:132)


Looks like there is something missing on my system.

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline sugarshark

Junior Devvie




Sugar to the sharks.


« Reply #9 - Posted 2003-12-12 05:57:21 »

Quote
I assume there are no additional requirements (at least no one answered).

Sorry Jens, you need of course the native openal.dll in your path (assuming you are on windows). See the project page of joal for instructions how to get it, or go directly to http://openal.org.

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Jens

Senior Devvie




Java for games!


« Reply #10 - Posted 2003-12-12 08:43:40 »

Quote

Sorry Jens, you need of course the native openal.dll in your path (assuming you are on windows).


As I said above and the thread topic suggests I'm using Linux. Wink

Can you point me to the list of system requirements for running (not building) Joal? Or ist the Linux version in a state where it should better not be used?

Xith3D Getting Started Guide (PDF,HTML,Source)
Offline sugarshark

Junior Devvie




Sugar to the sharks.


« Reply #11 - Posted 2003-12-12 11:06:23 »

Ok, I should have taken a look at the thread title :-)

OK here we go, requirements for running joal on linux:

Apart from joal.jar and libjoal.so you need a native openal library. It must be named libopenal.so and has to be available on the path java looks for shared libraries. This can be accomplished in quite a few ways:

  • call java with Djava.library.path=/dir/where./libopenal.so/lives
  • export LD_LIBRARY_PATH=/dir/where/libopenal.so/lives
  • copy libopenal.so into $JAVA_HOME/jre/lib/i386

Sadly openal for Linux seems to be in a state of constant (but unalien) flux. I had success with a fairly recent cvs version of openal, but the newest one gave me trouble: the sound is distorted.

The version from the gentoo portage ist too old. It does not work.

Regarding the state of he Linux port: It could be improved. ALC doesn't seem to work at the moment and there is no EAX support, afaik.

I used to think that the brain was the most wonderful organ in my body.  
Then I realized who was telling me this.
-- Emo Phillips
Offline Jens

Senior Devvie




Java for games!


« Reply #12 - Posted 2003-12-13 17:00:29 »

I have installed libopenal0 on my system, before I asked this questions here. However it probably wasn't found by Java. I copied libopenal.so to my $JRE dir and can now run the first Joal lesson. (The bad news is that the Xith3D SoundTest doesn't work.)

What is the reason why you don't provide a working libopenal.so together with the Joal download? Are there strong reasons? This makes distribution much easier. I didn't have it installed before I looked at Joal. I hope this lib is included once there is a stable Linux build.

Xith3D Getting Started Guide (PDF,HTML,Source)
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.

rwatson462 (33 views)
2014-12-15 09:26:44

Mr.CodeIt (23 views)
2014-12-14 19:50:38

BurntPizza (51 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (45 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (58 views)
2014-11-29 21:32:03

toopeicgaming1999 (123 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!