Hello Guest

[RFE] LWJGL FreeBSD support

  • 8 Replies
  • 14864 Views
*

Offline mgp

  • *
  • 2
[RFE] LWJGL FreeBSD support
« on: September 15, 2012, 17:54:15 »
Hi,
I've created a patch for the build system that allows building LWJGL under FreeBSD.
I'd like to ask you to review it and if you accept the proposed changes apply it to trunk.

I executed:
Code: [Select]
$ ant clean allThen I executed:
Code: [Select]
java -cp bin -Dorg.lwjgl.util.Debug=true -Djava.library.path=libs/linux org.lwjgl.test.SysTestI got the "Hello World!" window, my browser opened http://lwjgl.org and the contents of my clipboard was "src/java/org/lwjgl/util/Display.java" and I got the following output:
Code: [Select]
==== Test Alert ====
Opening native alert window
---- Test Alert ----

==== Test Debug ====
[LWJGL] Debug is enabled, you should now see output from LWJGL during the following tests.
[LWJGL] Xrandr extension version 1.3
[LWJGL] Using Xrandr for display mode switching
[LWJGL] XF86VidMode extension version 2.2
[LWJGL] Initial mode: 1280 x 1024 x 24 @50Hz
[LWJGL] Removed 0 duplicate displaymodes
---- Test Debug ----

==== Test Timer ====
Resolution of timer (ticks per second): 1000
Current time: 1347730730203
Sleeping for 2 seconds, using Thread.sleep()
Current time: 1347730732205
Actually slept for: 2.002 seconds
---- Test Timer ----

==== Test URL ====
Opening a browser window to http://www.lwjgl.org
---- Test URL ----

Contents of clipboard: 'src/java/org/lwjgl/util/Display.java'

Thank you.
« Last Edit: September 20, 2012, 11:51:30 by mgp »

*

Offline mgp

  • *
  • 2
Re: [path] LWJGL FreeBSD support
« Reply #1 on: September 19, 2012, 20:55:32 »
I've tested the applet loader using the icedtea-web plugin and the JNLP extension using OpenJDK6's javaws.
Everything works just fine.

P.S.
This is how the gears performed on my machine (which is quite old):
Code: [Select]
LWJGL: 2.8.4 / linux
GL_VENDOR: NVIDIA Corporation
GL_RENDERER: GeForce 9800 GT/PCIe/SSE2
GL_VERSION: 3.3.0 NVIDIA 295.71

glLoadTransposeMatrixfARB() supported: true
8365 frames 2 in 5.0 seconds = 1673.0
11533 frames 2 in 5.0 seconds = 2306.6
14167 frames 2 in 5.0 seconds = 2833.4
13486 frames 2 in 5.0 seconds = 2697.2
13797 frames 2 in 5.0 seconds = 2759.4

Re: [RFE] LWJGL FreeBSD support
« Reply #2 on: October 31, 2012, 20:36:47 »
Hey guys!
Here's my older patch:

http://pastebin.com/7S52GZE9

It's a bit cleaner, and introduce FreeBSD as a separate case, not as a variant of Linux.
I'll refresh patch soon, and it should came to next version :)

*

Offline Matzon

  • *****
  • 2242
Re: [RFE] LWJGL FreeBSD support
« Reply #3 on: November 05, 2012, 23:01:25 »
Does anyone have a comment to this patch, specifically the freebsd part - should it be called bsd instead? - since there are also net and open bsd variants?

Re: [RFE] LWJGL FreeBSD support
« Reply #4 on: November 06, 2012, 06:50:58 »
The patch which discussed is latest version - you can view it here:

http://pastebin.com/S4rGaa6R

I'd recommend use freebsd, as I'm not sure which state other bsd have with jdk/openjdk;
I'd be glad if we introduce FreeBSD full support now, and polish it later (maybe even separate linux_ant into linux_ant ant bsd_ant).
I'll try to find some open/net/dragonfly users and ask him to try find out specifics of system.

Release earyly, release often - come on, accept patch, I'm waiting more than year :-P

*

Offline Matzon

  • *****
  • 2242
Re: [RFE] LWJGL FreeBSD support
« Reply #5 on: November 06, 2012, 08:55:10 »
hah, I'll add it soon - I just dont like using FreeBSD - I would prefer just using BSD? - since that would imply all BSDs. But I don't know if that would work or not? (I very much assume that).

Or in other words, can these binaries build on a freebsd machine be used and loaded by all other bsds ?

Re: [RFE] LWJGL FreeBSD support
« Reply #6 on: November 07, 2012, 22:29:52 »
No, binaries and *.so are different on all of *BSD. I'm currently toying with OpenBSD, and seems that best case -
rename platform LINUX to LINUXORBSD :)
And add more platform builds (e.g separate FreeBSD from Linux, and make 3 or 4 additional platforms - FreeBSD, NetBSD, OpenBSD and maybe DragonflyBSD).
I could prepare patch for that.
DO you think it's acceptable?

I need check all native library loads under all systems, and see if it's all there the same.
(For example, OpenBSD still use /usr/X11R6, and there's no libGL.so.1, only libGL.so.12.0)

But Test Game works under OpenBSD too :)

Re: [RFE] LWJGL FreeBSD support
« Reply #7 on: November 17, 2012, 21:52:45 »
Well Matzon, when you planning add FreeBSD support? :)

*

Offline Matzon

  • *****
  • 2242
Re: [RFE] LWJGL FreeBSD support
« Reply #8 on: November 17, 2012, 21:59:24 »
[21:37:58] <Mazon> frogs: I'll get your bsd stuff in, during the next few days - just need to get git stuff all settled
[21:44:27] <Mazon> frogs: np, might want to do github pull requests now ;)
[21:44:55] <frogs> Mazon: btw. i am not the author of that, so you should not credit me
[21:45:16] <frogs> that forum person is also not me