Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (482)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (550)
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  
  Building: compilers  (Read 3152 times)
0 Members and 1 Guest are viewing this topic.
Offline Smoke

Senior Newbie




games rock!


« Posted 2003-06-27 03:46:04 »

well the "official" makefile requires either vc6 or 7 and i dont have both of them, and don't plan on buying  Tongue

is there a way to do one of
-download a vc6 or 7 compiler
-build with another (free) compiler
-somthing even smarter

sorry but i  know not much about vc++ exactly  Roll Eyes
Offline Javabear

Senior Newbie




Java games rock!


« Reply #1 - Posted 2003-06-27 13:18:19 »

Well, the good folks at Mind2Machine have prepared a Win32 build and made it available in the downloads section of their OpenMind Java game engine Sourceforge project. While they were at it, they compiled the other JSR-134 projects, so the download includes JOGL, JOAL, Jinput and Jutils.

http://sourceforge.net/project/showfiles.php?group_id=72173
Offline Smoke

Senior Newbie




games rock!


« Reply #2 - Posted 2003-06-27 13:46:07 »

i know that one but thanks anyway  Smiley
there's also a jogl build build in the filesharing section of the jogl project now.

but both builds dont work with the new jogl demos, because the demos depend on the utils package that was very recently moved inside the jogl package. (so both builds dont have it)
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline gregorypierce

Senior Member




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


« Reply #3 - Posted 2003-06-27 17:44:43 »

The jogl stuff can be built using the free compilers available on Windows such as those in the cygwin environment. Simply download it and follow the instructions in the readme file.

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 Smoke

Senior Newbie




games rock!


« Reply #4 - Posted 2003-06-27 19:47:02 »

i tryed using the cygwin gcc compiler already by changing the call of "cl" to "gcc" in te makefile but that didn't quite work out. Smiley different parameters....

could you please publish a makefile wich uses gcc or give me some hints how to replace cl by gcc?
Offline abies

Senior Member





« Reply #5 - Posted 2003-06-28 06:05:05 »

Please download mingw32 and then compile .c files with following instructions (they are taken from my build.xml, so you need to change them to whatever format you use):

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
<exec dir="${obj.dir}" executable="gcc.exe">
      <arg value="-D_WINGDI_"/>
      <arg value="-DBUILD_DLL"/>
      <arg value="-I../${stub.includes.opengl}"/>
      <arg value="-I${java.include.path}"/>
      <arg value="-I${java.include.path.pd}"/>
      <arg line=" -D_STRICT_ANSI -D_JNI_IMPLEMENTATION_ -c"/>
      <arg line="${native.files}"/>
</exec>

<exec dir="${obj.dir}" executable="gcc.exe">
     <arg line="-o jogl.dll"/>
      <arg line="*.o"/>
      <arg line="-shared -Wl,--kill-at -L${jdk.home}/lib -lopengl32 -lglu32 -ljawt -lgdi32"/>
</exec>


In reality, after substitution, commands on my system looked like:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
'gcc.exe'
'-D_WINGDI_'
'-DBUILD_DLL'
'-I../../make/stub_includes/opengl'
'-IC:/java/jdk1.4.2/include'
'-IC:/java/jdk1.4.2/include/win32'
'-D_STRICT_ANSI'
'-D_JNI_IMPLEMENTATION_'
'-c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\GLUImpl_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\JAWTFactory_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\JAWT_DrawingSurface_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\JAWT_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\WGL_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\build\gensrc\native\jogl\WindowsGLImpl_JNI.c'
'C:\java\eclipse-cvs\workspace\jogl\src\native\jogl\JAWT_DrawingSurfaceInfo.c'


and for linking

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
'gcc.exe'
'-o'
'jogl.dll'
'*.o'
'-shared'
'-Wl,--kill-at'
'-LC:/java/jdk1.4.2/lib'
'-lopengl32'
'-lglu32'
'-ljawt'
'-lgdi32'


I'll try to modify build.xml from rgrzywinski to make this stuff automagically. Until then, play with command line Smiley

Artur Biesiadowski
Offline Jeff

JGO Coder




Got any cats?


« Reply #6 - Posted 2003-06-28 06:11:47 »

This is very cool Abies, thank you muchly  Cheesy

I'm going to point Dan at your post and maybe we can get the MinGW build integrated in to the release soon Smiley

(We wanted gcc for release, we just didnt have the time before J1 to get it all together.)

CQ

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 abies

Senior Member





« Reply #7 - Posted 2003-06-28 08:26:44 »

I have modified build file made by rgrzywinski so you can build native dll with mingw compiler. Cygwin is not needed anymore - only java, ant, antlr and mingw32.

http://nwn-j3d.sourceforge.net/jogl/jogl-ant.zip

Patch against original build.xml is available at
http://nwn-j3d.sourceforge.net/jogl/build-rg.diff

Please remember - all credits are due to rgrzywinski, I have only added mingw32 target.

Some links which might be useful:



Artur Biesiadowski
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #8 - Posted 2003-07-04 11:11:00 »

Quote
(We wanted gcc for release, we just didnt have the time before J1 to get it all together.)


If we have precompiled binaries available lets be sure that they AREN'T compiled with GCC.  The code produced by GCC isn't nearly as good.  I know for tiny bindings like this it won't matter much, but just in principle... if you have access to a better compiler it makes sense to use it.

Offline abies

Senior Member





« Reply #9 - Posted 2003-07-04 13:01:42 »

Quote

If we have precompiled binaries available lets be sure that they AREN'T compiled with GCC.  The code produced by GCC isn't nearly as good.  I know for tiny bindings like this it won't matter much, but just in principle... if you have access to a better compiler it makes sense to use it.


Do you really think that gcc is really so bad at compiling method containing single branch with one call inside ? I know that gcc is not very good generally, neither is MS VC++ - but this is not a reason to not use them for such simple things. I will say even more - standarizing on 'weaker' compiler - mingw - is better, because everybody can download 5MB mingw, but not everybody can get VC++ to compile the lib. And I really don't think that there is any performance difference for jogl between these two.

When we will talk about heavy-computation inside native code, we can ask somebody with Intel compiler to make really fast binaries. But until then, I think that free and small compilers are best common ground.

Artur Biesiadowski
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline swpalmer

JGO Coder




Where's the Kaboom?


« Reply #10 - Posted 2003-07-07 00:54:53 »

- I said in this case it probably wouldn't matter much.  GCC has too little to screw up in this case.

- I was talking about the pre-compiled binaries that would be made available for download from java.net.. Therefore it has nothing to do with who can get VC++.  JOGL already is set up to build with it.

- I have no argument against making it build-able with all the free tools you can find.  I was just pointing out that if binaries are made available at java.net it makes sense to use the best compiler you have  to build those "release builds".


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.

CopyableCougar4 (14 views)
2014-08-22 19:31:30

atombrot (28 views)
2014-08-19 09:29:53

Tekkerue (25 views)
2014-08-16 06:45:27

Tekkerue (23 views)
2014-08-16 06:22:17

Tekkerue (15 views)
2014-08-16 06:20:21

Tekkerue (22 views)
2014-08-16 06:12:11

Rayexar (61 views)
2014-08-11 02:49:23

BurntPizza (39 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (37 views)
2014-08-06 19:49:38
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!