Advertisement

LWJGL OpenAL

Started by March 08, 2004 06:17 AM
6 comments, last by Mr_Ridd 20 years, 8 months ago
Howzit I''m using LWJGL. When I try use AL.create() it throws an exception and tell me that it cannot find the sound library. I have included it in my path. OpenGL works fine. What could be the problem? Shot
The ability to succeed is the ability to adapt
Havn''t used the libary, but have you made sure the DLL is somewhere the program can find it (c:\windows is popular, so is c:\windows\system, also you could use the program''s own directory).

If it''s a compile error on the other hand, make sure you''ve put the LIB file into your project. If you''re using MSVC, I don''t think it''s enough to have it in the path, you actualy have to include it in the project. This also works for Borland, but it''s much better behaved with the path thing anyway.

Advertisement
Andrew: It''s Java.

Mr_Ridd: Don''t you think it would help people if you posted the exception and the stack trace that came with it?
Yeah, it probably would, but I don''t have it with me.
The ability to succeed is the ability to adapt
The stack trace is:

-----------

org.lwjgl.openal.OpenALException: Could not load openal library.
at org.lwjgl.openal.BaseAL.nCreate(Native Method)

at org.lwjgl.openal.BaseAL.create(Unknown Source)
at org.lwjgl.openal.AL.create(Unknown Source)
at OpenALCreationTest.alInitialize(OpenALCreationTest.java:57)
at OpenALCreationTest.execute(OpenALCreationTest.java:101)
at OpenALCreationTest.main(OpenALCreationTest.java:219)

-----------

The odd thing is that I am including the library in my path. As I said, OpenGL works fine.
The ability to succeed is the ability to adapt
quote: Original post by BitMaster
Andrew: It''s Java.

Mr_Ridd: Don''t you think it would help people if you posted the exception and the stack trace that came with it?


It _uses_ dlls for the windows platform and shared objects (.so) for linux platform, etc.

How else could it use OpenGL or OpenAL?

Mr_Ridd: Put the dll''s in the working folder. It''ll work.
Advertisement
I was referring to Andrew''s second paragraph when I wrote that.
Worked like a charm.

It''s quite odd though. How did it pick up the openGL libraries then.
The ability to succeed is the ability to adapt

This topic is closed to new replies.

Advertisement