Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (497)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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  
  Hot Issues  (Read 2090 times)
0 Members and 1 Guest are viewing this topic.
Offline Jeff

JGO Coder




Got any cats?


« Posted 2003-08-08 02:24:03 »

Hey Guys,

We've had a terrific show of support for them community already and  inparticular from Greg Peirce and Endolf on porting to Linux and Mac.

I want to thank both of them for their terrific efforts again.

We now have some hot issues I'd love to get one or more volunteers for.  I'd do some of this msyelf but I'm swamped with other duties right now...

(1) Fixing the MouseDevice in the Win32 JInput plug-in.
We've pretty much determined that the way its currently implemented is wrong.  It needs to be rewritten to return relative delta values and support more then 2 buttons as wellas  to look like a single device like the mouse does on the other two platforms.

(2) Expand the devices known by the Win32 driver.  Currently the driver is calling anything it doesnt otherwise recognize a generic "joystick" type device.  This really isnt right.  There are something like a dozen device types defined by DirectX 9 and we really should support them all more directly.

(3) JUnit tests for the API.  Simple tests are doable thata re generic to all environments.  More involed tests will likely have to test the generic layer and work by using a "test plugin" that returns known values.

(4) The current Win32 build requires the open source Cygwin DLL.   There are rumors that it is possible to build a DLL with gcc that doesnt require the Cygwin DLL. If someone knows how to do this, it would be an improvement

Anyway if anyone is up to work on any of these, please post here and apply for Developer status on the code.  (If you haven't already filled out a developer agreement, you'll need to do that. Its linked on the JInput main page.)


Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Mithrandir

Senior Member




Cut from being on the bleeding edge too long


« Reply #1 - Posted 2003-08-18 19:12:01 »

Quote
(4) The current Win32 build requires the open source Cygwin DLL.   There are rumors that it is possible to build a DLL with gcc that doesnt require the Cygwin DLL. If someone knows how to do this, it would be an improvement


This is the guts of what we use for Xj3D and a number of our other combined Java/native code makefiles:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
OS_NAME=$(shell uname)
ifeq (, $(strip $(findstring CYGWIN, $(OS_NAME))))
  PATH_SEP=':'
  LIB_SUFFIX=so
  LIB_PREFIX=lib
  INCLUDE_LIST+=$(JNI_HEADER_DIR)/linux
  CC_LINK_OPTIONS = -Wl -shared $(CFLAGS)
  ifdef LIBRARY_3RDPARTY
    3RDPARTY_LIBS = $(patsubst %,-l%, $(LIBRARY_3RDPARTY))
  endif
else
  PATH_SEP=';'
  LIB_SUFFIX=dll
  LIB_PREFIX=
  INCLUDE_LIST+=$(JNI_HEADER_DIR)/win32 /usr/include/win32api
  CFLAGS +=-D_WIN32 -mno-cygwin
  CC_LINK_OPTIONS = -Wl,--add-stdcall-alias -shared $(CFLAGS)
  ifdef LIBRARY_3RDPARTY
    3RDPARTY_LIBS = $(patsubst %,$(3RDPARTY_DLL_DIR)/lib%.dll,$(LIBRARY_3RDPARTY))
  endif
endif

INCS=$(subst $(SPACE)$(SPACE),$(SPACE),$(INCLUDE_LIST))
INC_DIRS=$(subst $(SPACE),$(SPACE)-I,$(INCS))

#
# Option listing for the various commands
#
CC_OPTIONS = -c -O2 $(INC_DIRS) $(CFLAGS)

#
# Build rules.
#

ifdef LIBRARY
  LIB_DIR   = $(DESTINATION)/$(LIBRARY)
  OBJ_FILE_LIST = $(SOURCE_FILES:%.c=%.o)
  OBJ_FILES = $(SOURCE_FILES:%.c=$(DESTINATION)/$(LIBRARY)/%.o)
  LIB_FILES = $(LIB_DESTINATION)/$(LIB_PREFIX)$(LIBRARY).$(LIB_SUFFIX)
endif

SOURCE_FILES  = $(filter  %.c,$(C_SOURCE))

LIB_LIST_CLEAN = $(patsubst %,$(NATIVE_SRC_DIR)/%/.clean,$(LIBRARY_LIST))
LIB_LIST_BUILD = $(patsubst %,$(NATIVE_SRC_DIR)/%/.build,$(LIBRARY_LIST))

....

# Rule 4. Building a .o object file from a .java file
$(LIB_DIR)/%.o : $(NATIVE_DIR)/$(LIBRARY)/%.c
      $(PRINT) Compiling $*.c
      cd $(LIB_DIR) && $(CC) $(CC_OPTIONS) $<

# Rule 5. Building a .o file from a .c file. Invokes rule 4.
%.o : $(NATIVE_DIR)/$(LIBRARY)/%.c
      $(PRINT) creating $(LIB_DIR)/$(LIBRARY)
      $(MAKE) -k $(LIB_DIR)/$@

# Rule 6. Building a .dll or .so from .o files.
$(LIB_DESTINATION)/$(LIB_PREFIX)$(LIBRARY).$(LIB_SUFFIX): $(OBJ_FILES)
      $(PRINT) Building $@
      cd $(LIB_DIR) && $(CC) $(CC_LINK_OPTIONS) -o $(LIB_DESTINATION)/$(LIB_PREFIX)$(LIBRARY).$(LIB_SUFFIX) $(3RDPARTY_LIBS) $(OBJ_FILES)


If need be, I can send you the entire makefile setup that you can then disassemble as needed.

The site for 3D Graphics information http://www.j3d.org/
Aviatrix3D JOGL Scenegraph http://aviatrix3d.j3d.org/
Programming is essentially a markup language surrounding mathematical formulae and thus, should not be patentable.
Offline Mithrandir

Senior Member




Cut from being on the bleeding edge too long


« Reply #2 - Posted 2003-08-18 19:14:45 »

Forgot to add - Note that there are some very strict things in the GCC call setup on cygwin. The CC_LINK_OPTIONS must be copied absolutely verbatim. The comma is meant to be there, and the whitespace setup is critical too.  If you don't used it exactly as written there, you won't get cygwin to compile it all.

The site for 3D Graphics information http://www.j3d.org/
Aviatrix3D JOGL Scenegraph http://aviatrix3d.j3d.org/
Programming is essentially a markup language surrounding mathematical formulae and thus, should not be patentable.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tortoise

Junior Member




<3 Shmups


« Reply #3 - Posted 2003-08-19 11:58:07 »

Quote

(4) The current Win32 build requires the open source Cygwin DLL.   There are rumors that it is possible to build a DLL with gcc that doesnt require the Cygwin DLL. If someone knows how to do this, it would be an improvement


Why not just use mingw? Is there a reason cygwin was chosen? mingw doesn't rely on any sort of "unix compatibility" dll, it's just straight up gcc on win32.
Offline Jeff

JGO Coder




Got any cats?


« Reply #4 - Posted 2003-09-02 16:46:00 »

Um we ARE using MinGW.

Im told the result though requries cygwin.
(Its possible that the requriement coems from Peter Puck's dx8 libs. We are using those becuase MinGW has incomplete and back-version DX support.)

If someone wants to take charge of working this out, that would be great.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline Mithrandir

Senior Member




Cut from being on the bleeding edge too long


« Reply #5 - Posted 2003-09-03 14:07:07 »

I'll attempt to have a look at it later this week. We're going through the process right now of evaluating whether to use JInput or the javax.usb code within Xj3D. We've been using JXInput for the code we've been delivering to some of our clients, but we can't include it in the public codebase because of the licensing restrictions on it (ie non open source).

The site for 3D Graphics information http://www.j3d.org/
Aviatrix3D JOGL Scenegraph http://aviatrix3d.j3d.org/
Programming is essentially a markup language surrounding mathematical formulae and thus, should not be patentable.
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.

BurntPizza (25 views)
2014-09-19 03:14:18

Dwinin (39 views)
2014-09-12 09:08:26

Norakomi (68 views)
2014-09-10 13:57:51

TehJavaDev (93 views)
2014-09-10 06:39:09

Tekkerue (47 views)
2014-09-09 02:24:56

mitcheeb (68 views)
2014-09-08 06:06:29

BurntPizza (51 views)
2014-09-07 01:13:42

Longarmx (38 views)
2014-09-07 01:12:14

Longarmx (44 views)
2014-09-07 01:11:22

Longarmx (40 views)
2014-09-07 01:10:19
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!