Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  LWJGL Using 64bit natives  (Read 519 times)
0 Members and 2 Guests are viewing this topic.
Offline StumpyStrust

Full Member
**

Posts: 103
Medals: 1



« on: 2012-01-20 00:06:56 »

Hello so a noob here is wondering how to setup LWJGL so it uses 64bit natives on 64bit systems and 32bit on 32bit.  Grin

The same noob (who is me if you could not guess) also would like to know if there was an easier way of porting

linux/mac/windows versions of a program to a different OS. So if I made a program on a Mac how could I distribute it to someone using Windows.

Any help would be much appreciated.

  

Offline ra4king

JGO Kernel
*****

Posts: 3158
Medals: 196


I'm the King!


« Reply #1 on: 2012-01-20 01:16:39 »

It automatically chooses the right natives for the platform Tongue
Just dump all the natives in one folder (except for Solaris) and LWJGL will use the correct ones.

Offline StumpyStrust

Full Member
**

Posts: 103
Medals: 1



« Reply #2 on: 2012-01-20 01:26:55 »

You sure? because I tried that and it did not work. At least in eclipse when you set the natives for lwjgl and you just say to use the natives folder it will not run.
Games published by our own members! Go get 'em!
Offline ra4king

JGO Kernel
*****

Posts: 3158
Medals: 196


I'm the King!


« Reply #3 on: 2012-01-20 01:30:44 »

You need to set the folder that contains the natives directly. In Eclipse, you just need to choose the folder of your OS. When distributing your application, dump all that natives in 1 folder and set that as the -Djava.library.path="natives/"

For more information on distributing your LWJGL application, this wiki explains your options in detail.

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.073 seconds with 19 queries.