PDA

View Full Version : OpenGL on Eclipse



Ibrahim mufeed
March 10th, 2009, 10:11 PM
Hi,

I am trying to do some OpenGL programing on my Ubuntu, using Eclipse, I never write any code on linux before, but I do A LOT on Windows XP.

I have installed Eclipse suing the Add Remove programs but after the installation I found out that it is only for Java programing, and I need to write C, C++ programs.

Also, I do not know how to install or configure OpenGL, I did it on Visual Studio on XP, but I want to try it on Ubuntu.

I need some basic detailed instructions, (if any).

Thanks,

diafanos
March 10th, 2009, 11:36 PM
Hi,
I have installed Eclipse suing the Add Remove programs but after the installation I found out that it is only for Java programing, and I need to write C, C++ programs.




You can install netbeans with c/c++ support (http://www.netbeans.org/downloads/index.html)

vandorjw
March 10th, 2009, 11:47 PM
I don't know about OpenGL but I do know if you want to program you need.

sudo apt-get install build-essential

I do not like net-beans and prefer geany.

Geany supports all languages I have come across.
(although it is not as powerful as netbeans, it is ALOT faster)

Cheers - CC7

JPtux
March 10th, 2009, 11:49 PM
You have to install a plugin to use eclipse with C/C++.
Regards

Shin_Gouki2501
March 11th, 2009, 12:19 AM
netbeans, java + netbeans jogl pack , works fine here.

k2t0f12d
March 11th, 2009, 12:50 AM
I might recommend Code::Blocks (http://www.codeblocks.org/). It's a fully functional C/C++ IDE based on wxWidgets. Very familiar working environment if you are coming from MSVS.

I'm not sure if there is a Debian package release, so, here are some useful directions for getting a working copy put up on your machine.

http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_sourc e_on_Linux

Can+~
March 12th, 2009, 12:08 AM
Hi,

I am trying to do some OpenGL programing on my Ubuntu, using Eclipse, I never write any code on linux before, but I do A LOT on Windows XP.

I have installed Eclipse suing the Add Remove programs but after the installation I found out that it is only for Java programing, and I need to write C, C++ programs.

Adding support for C/C++ in eclipse:


sudo apt-get install eclipse-cdt

And for opengl, I guess you only need to set up the project with the corresponding flags.
(and for pytholians, eclipse-pydev is recommended)

Ibrahim mufeed
March 13th, 2009, 12:58 AM
Thank you so much, It works now.

I will start having fun on Eclipse. ;)