Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (476)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (533)
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 2123 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

JGO Knight


Medals: 19
Projects: 1


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!
Legends of Yore - The Casual Retro Roguelike
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!
Legends of Yore - The Casual Retro Roguelike
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.

 

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

The first screenshot will be displayed as a thumbnail.

pw (22 views)
2014-07-24 01:59:36

Riven (20 views)
2014-07-23 21:16:32

Riven (17 views)
2014-07-23 21:07:15

Riven (20 views)
2014-07-23 20:56:16

ctomni231 (48 views)
2014-07-18 06:55:21

Zero Volt (44 views)
2014-07-17 23:47:54

danieldean (35 views)
2014-07-17 23:41:23

MustardPeter (38 views)
2014-07-16 23:30:00

Cero (53 views)
2014-07-16 00:42:17

Riven (52 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!