Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (407)
games submitted by our members
Games in WIP (293)
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  
  lwjgl 0.5 problems  (Read 1858 times)
0 Members and 1 Guest are viewing this topic.
Offline starlord

Junior Member





« Posted 2003-03-23 09:03:50 »

i have suse 8.1 and when i use Display.getAvailableDisplayModes();
it doesn't return anything...

also cvs doesn't compile, should it?

using gcc 3.2
Offline Matzon
« League of Dukes »

JGO Knight


Medals: 13
Projects: 2


I'm gonna wring your pants!


« Reply #1 - Posted 2003-03-23 09:36:44 »

Quote
also cvs doesn't compile, should it?

that depends on whether or not you checked out before or after I checked some stuff in  Roll Eyes

OAL failing or is it somewhere else?

Offline starlord

Junior Member





« Reply #2 - Posted 2003-03-23 11:24:02 »

hmm,this is strange
i took update from cvs(didn't notice any changes on OpenAL related files) and now it's hangs on compiling GLUQuadrics:
1  
2  
3  
In file included from GLUQuadricCallbacks.h:11,
from GLUQuadricCallbacks.cpp:8:
../extgl.h:221:26: GL/glxtokens.h: No such file or directory


it seem's to be that it doesn't some reason to find glxtokens.h
but i have it on:
locate glxtokens.h
/usr/include/GL/glxtokens.h
/usr/share/doc/packages/nv_glx/usr/include/GL/glxtokens.h

before it hanged on OpenAL.

any solutions why Display.getAvailableDisplayModes() return's array of size 0?
Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Offline starlord

Junior Member





« Reply #3 - Posted 2003-03-23 12:18:55 »

and when i run autogen.sh i get
autoheader: error: AC_CONFIG_HEADERS not found in linux
so there's so error's on autogen.sh script because it shouldn't
run aclocal or anyother script's after autoheader if it fails to run

i don't know how autoheader,aclocal,automake
and autoconf operate's so i can't fix this, i have alway's done manually Makefile's if i need c/c++ somewhere
Offline elias

Senior Member





« Reply #4 - Posted 2003-03-23 14:06:22 »

The current automake maintainer is busy atm Smiley. For now, it is safe to ignore the error and just procesding with ./configure && make

Offline starlord

Junior Member





« Reply #5 - Posted 2003-03-24 13:35:52 »

still getting some errors
Quote

In file included from extal.cpp:35:
extal.h:146: syntax error before `*' token
extal.h:147: `ALCcontext' was not declared in this scope
extal.h:147: `context' was not declared in this scope
extal.h:147: typedef declaration includes an initializer
extal.h:147: typedef `alcMakeContextCurrentPROC' is initialized
extal.h:148: `ALCcontext' was not declared in this scope
extal.h:148: `context' was not declared in this scope
extal.h:148: typedef declaration includes an initializer
extal.h:148: typedef `alcProcessContextPROC' is initialized
extal.h:149: syntax error before `*' token
extal.h:150: `ALCcontext' was not declared in this scope
extal.h:150: `context' was not declared in this scope
extal.h:150: typedef declaration includes an initializer
extal.h:150: typedef `alcGetContextsDevicePROC' is initialized
extal.h:151: `ALCcontext' was not declared in this scope
extal.h:151: `context' was not declared in this scope
extal.h:151: typedef declaration includes an initializer
extal.h:151: typedef `alcSuspendContextPROC' is initialized
extal.h:152: `ALCcontext' was not declared in this scope
extal.h:152: `context' was not declared in this scope
extal.h:152: typedef declaration includes an initializer
extal.h:152: typedef `alcDestroyContextPROC' is initialized
extal.h:223: syntax error before `;' token
extal.h:226: syntax error before `;' token
extal.cpp:108: parse error before `=' token
extal.cpp:111: parse error before `=' token
extal.cpp: In function `int LoadALC()':
extal.cpp:377: `alcCreateContext' undeclared (first use this function)
extal.cpp:377: (Each undeclared identifier is reported only once for each
  function it appears in.)
extal.cpp:377: `alcCreateContextPROC' undeclared (first use this function)
extal.cpp:377: parse error before `(' token
extal.cpp:380: `alcGetCurrentContext' undeclared (first use this function)
extal.cpp:380: `alcGetCurrentContextPROC' undeclared (first use this function)
extal.cpp:380: parse error before `(' token


does anyone else getting array of size 0 from Display.getDisplayModes()
using 0.5 in suse 8.1?

also
when i installed suse i selected mesa-devel but when i installed nvidia glx
it removed mesa header's file's but didn't install nvidia to correct location
i symlinked the dir to correct path but don't know if i have all the header files, this is why i got glxtokens.h error's before but now i'm stuck with extal.

currently i can't do nothing with lwjgl because of Display class
Offline elias

Senior Member





« Reply #6 - Posted 2003-03-24 13:44:51 »

Try to download OpenAL from cvs and install it (along with headers). It works fine here.

the cvs instructions is located at

http://opensource.creative.com/

- elias

Offline starlord

Junior Member





« Reply #7 - Posted 2003-03-24 16:02:53 »

now it compiles but how do i make this:
-make it to not install into /usr/local
-make same kind of distribution like normally(jar files,shared lib's)

i can't find shared openal shared lib's after compile only lwjgl is it packaged on same lib?
how do i make own lib for gl and al?

so for short i want the output to be same like in lwjgl release

liblwjgl.so
libopenal.so
lwjgl.jar

i'm new to this configure automake thing, i have alway's done own makefile's manually.

i don't see target for this in Makefile(for native side) and in build.xml(for java side)
Offline elias

Senior Member





« Reply #8 - Posted 2003-03-24 16:14:32 »

the openal binding is within liblwjgl.so, and libopenal.so comes from the openal source.

- elias

Offline starlord

Junior Member





« Reply #9 - Posted 2003-03-25 14:19:21 »

now it compiles and work's normally(only few tests done)
but Display.getDisplayModes() only return's 1 mode,
and that's the mode i'm currently using.

it should work like on windows platform?
returning all modes that are supported.
but it doesn't!!!
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline elias

Senior Member





« Reply #10 - Posted 2003-03-25 15:19:16 »

X only gives lwjgl the modes specified in the XF86Config, not all the ones possible available given your gfx card/monitor. Try adding some more modes in XF86Config. As a rule of thumb, modes you can cycle through ctrl-alt-<numpad->/<numpad+> is available to lwjgl.

- elias

Offline starlord

Junior Member





« Reply #11 - Posted 2003-03-25 15:59:24 »

i already have them, i have
640*480 to 1600*1200 in all color depth's

meaning i have all the standard modes between 640*480 and 1600*1200
Offline elias

Senior Member





« Reply #12 - Posted 2003-03-25 16:06:52 »

weird then. Maybe your X server doesn't support (or have enabled) the XVidMode extension. What X version are you using? On my setup, doing an xdpyinfo|grep XFree86-VidModeExtension gives me

[elias@ip172 elias]$ xdpyinfo |grep XFree86-VidModeExtension
   XFree86-VidModeExtension

- elias

Offline starlord

Junior Member





« Reply #13 - Posted 2003-03-26 12:43:26 »

hmm,took update for Sax and xfree
and this time configured with sax and not xf86config
and now it work's.
it seem's to be that xf86config didn't write all the modes in configure file
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Try the Free Demo of Revenge of the Titans

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (91 views)
2013-05-17 21:29:12

alaslipknot (100 views)
2013-05-16 21:24:48

gouessej (130 views)
2013-05-16 00:53:38

gouessej (125 views)
2013-05-16 00:17:58

theagentd (136 views)
2013-05-15 15:01:13

theagentd (123 views)
2013-05-15 15:00:54

StreetDoggy (165 views)
2013-05-14 15:56:26

kutucuk (187 views)
2013-05-12 17:10:36

kutucuk (190 views)
2013-05-12 15:36:09

UnluckyDevil (196 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.148 seconds with 20 queries.