Tag Archives: guide

Steven Installing JOGL and Adding it to an Eclipse Project (Ubuntu) by

Quick guide to setting up JOGL in Eclipse to get you on your way.

Installing JOGL:

sudo apt-get install libjogl-jni libjogl-java libjogl-java-doc

Adding JOGL to an Eclipse Project:

Open an existing project or create a new one. Right click on the project and select Build Path -> Configure Build Path or from the project menu: Project-> Properties -> Java Build Path.

Under the libraries tab: Add External Jars…

For JOGL  and GLUT you will want to go to /usr/share/java and add jogl.jar and gluegen-rt.jar to project. You will also want to link the jar files to their native libraries and javadoc locations.

(Optional) Creating a user library for JOGL:

You can define a user library with all of this information, so whenever you want to create a project that uses JOGL, you can just add your library.

Window -> Preferences -> Java -> Build Path -> User Libraries -> New…

You can add the jars, native libraries and javadoc the same way, and then save it. Then when you create a new project, under configure build path, you can add a user-defined library.

Happy gl object passing

Steven Compiling Objective C in Ubuntu by

After several hours of searching through other guides, objective-c now compiles on Ubuntu 11.04.
Retracing my steps, I believe THIS is how I did it:

1. Install GNUstep

GNUstep is the open-source version of Cocoa, and contains many of the same development tools and APIs.
Source is available

Or just type the following in terminal:
sudo apt-get install gobjc gnustep gnustep-make gnustep-common

2. Setup GNUstep environment
Execute the following script in order to set up the GNUstep environment for the current terminal session
. /usr/share/GNUstep/Makefiles/GNUstep.sh

Additionally, you can add the this to the bottom of your ~/.bashrc file so you don’t have to run it manually.

3. Compile with gnustep flags

Assuming you already have the gcc compiler, add these flags for objective c files.
gcc 'gnustep-config --objc-flags' -lgnustep-base -o

So for example, the files helloworld.m,helloworld.h would be compiled like so:
gcc 'gnustep-config --objc-flags' -lgnustep-base helloworld.m -o helloworld

This should compile silently, and can then be executed with:
./helloworld

Haven’t tested this with any Objc 2.0 features, but its enough to start doing some basic tutorials.