Saturday, December 01, 2007

Getting JOGL to work on Linux (the really abbreviated version)

“’If you please--draw me a sheep . . .’
When a mystery is too overpowering, one dare not disobey. Absurd as it might seem to me, a thousand miles from any human habitation and in danger of death, I took out of my pocket a sheet of paper and my fountain-pen. But then I remembered how my studies had been concentrated on geography, history, arithmetic and grammar, and I told the little chap (a little crossly, too) that I did not know how to draw. He answered me:
‘That doesn't matter. Draw me a sheep . . .’”

-Le Petit Prince

Setup JOGL

  1. Download the JOGL zip file for Linux.

  2. Next, make a folder named "jogl" in your home directory.

  3. Uncompress the zip file into this directory. It should look like this now:

    glenn@rufus:~$ ls jogl/

    gluegen-rt.jar
    libgluegen-rt.so
    libjogl_cg.so
    jogl.jar
    libjogl_awt.so
    libjogl.so

  4. Now add these lines to your ".bashrc" file OR append the paths to existing lines that contain the same variable names (so if you already had a line with CLASSPATH, then append ":~jogl").

    export CLASSPATH=.:~/jogl/jogl.jar:~/jogl/gluegen-rt.jar
    export LD_LIBRARY_PATH=~/jogl
Working example coming soon (hopefully!)...

0 Comments:

Post a Comment

<< Home