Skip to main content

J3dBuildInfo

9 replies [Last post]
pepe
Offline
Joined: 2003-06-10
Points: 0

Do we have to make our own?
It is not in cvs, but doing our own looks weird to me.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Chien Yang

You need the w32api package that comes with MinGW. Check out the
README-build.html in the j3d-core directory. It has the information you
will need for a Windows build.

- Chien.

java3d-interest@javadesktop.org wrote:
> heh, ok. you ran into my second question.
> Ant script fails when compiling the native (windows) parts.
> i use GCC 3.3.1 installed with cygwin.
> Unfortuatly, no error reporting from ant, (netbeans 3.6) except maybe an "error=2" at the end of the line..
>
> tried with a 1.6.2 commandline external ant and compile failed with LOTS of errors, too much to read. i'll have to pipe the log to a file and see what's wrong... tomorrow...
>
> Anyone succeeded running the full ant script under netbeans 3.6?
> ---
> [Message sent by forum member 'pepe' (frederic barachant)]
>
> http://www.javadesktop.org/forums/thread.jspa?messageID=21739&#21739
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
> For additional commands, e-mail: interest-help@java3d.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

pepe
Offline
Joined: 2003-06-10
Points: 0

mingw32 is installed with cygwin. I had it, working.
It turned out that the problem lied in the jdk include/win32/jni_md.h .
GCC does not support __int64 which is microsoft specific, but long long.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccelng...

Once the header was changed, it compiled like a charm.
I've been googling for __int64 GCC support, to no result.
i found a page that suggests to adapt the header so it can support GCC and MSVC directly.
http://www.khelekore.org/jmp/winbuild.html
and an other, but quite old.
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/README.jni.txt

i found that header change quite often and, imho, it MUST be changed to distribution. Using MS specifics and forcing other compilers to comply is not that smart.

more link:
http://www.topcoder.com/?&t=support&c=index#186

Anyway, i guess that if you successfully used mingw, then cygwin's mingw must be broken. I tried installing latest w32api files over cygwin's (yes, i'd really like to only use cygwin ) and did not succeed compiling __int64.
I will use modified jni_md.h at the moment, and bend my configuration later.
Thanks for your help.

pepe
Offline
Joined: 2003-06-10
Points: 0

I've read on various pages that MSVC now supports 'long long'. That infamous __int64 should definatly disappear.

Kevin Rushforth

> I've read on various pages that MSVC now supports 'long long'. That infamous __int64 should definatly disappear.

Good to know. Until then, you will need to use the gcc from MinGW. This
is one of the reasons we use MinGW rather than Cygwin. Just make sure
that c:\mingw\bin (assuming that's where you installed it) is in your
PATH ahead of any Cygwin directories.

-- Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

pepe
Offline
Joined: 2003-06-10
Points: 0

well, passed some time recompiling my C/C++ thingies, and as they all passed, i'll now compile using mingw. Advantage is that i won't need the cygwin1.dll, nor i will need to modify the ant scripts for the nocygwin flag...

Let's go for some action.. Jca sent. :)

Matthew Hilliard

I used this stub to make compiler errors go away in Eclipse--if you're
actually going to build the source, just run the Ant script.


package javax.media.j3d;

public class J3dBuildInfo {

public static final boolean isDebug = true;

static String getBuildTimeStamp() {
return "6 o'clock this morning";
}
} // fin

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

Kevin Rushforth

> Do we have to make our own?
> It is not in cvs, but doing our own looks weird to me.

It's built automatically by the ant script from running the
MakeJ3dBuildInfo program (which is in CVS).

-- Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

pepe
Offline
Joined: 2003-06-10
Points: 0

heh, ok. you ran into my second question.
Ant script fails when compiling the native (windows) parts.
i use GCC 3.3.1 installed with cygwin.
Unfortuatly, no error reporting from ant, (netbeans 3.6) except maybe an "error=2" at the end of the line..

tried with a 1.6.2 commandline external ant and compile failed with LOTS of errors, too much to read. i'll have to pipe the log to a file and see what's wrong... tomorrow...

Anyone succeeded running the full ant script under netbeans 3.6?

Kevin Rushforth

> Ant script fails when compiling the native (windows) parts.
> i use GCC 3.3.1 installed with cygwin.

Did you install MinGW? You need to use gcc from MinGW and not Cygwin.

-- Kevin

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net