[stextbox id=”info” caption=”Comment or Leave a Message”] Please if this is what you are looking for or if you have any question/comment/suggestion/request. [/stextbox] Install Eclipse First of all download Eclipse from the official website: Download IDE for Java developers (for example) or the one for C/C++ developer. I’ll download the first for this guide. Unzip the package in your preferred folder. Java; Eclipse; Windows; Linux - 32bit; Linux - 64bit; Mac OS-X; Modifying default. It to have C/C++ development functionality, please refer installing CDT. The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 350 open source projects, including runtimes, tools and frameworks. Now you can start Eclipse. It will ask you for the workspace folder. You can leave the default. NOTE: If it doesn’t start after setting launcher options then MOVE eclipse in another folder, maybe without any space within the path name. Install Java SDK Download the Java SDK (JDK): I got the “ jdk-6u24-windows-i586.exe” installer. Install OpenGL Libraries for Java (Mac and Windows) I use JOGL for this. It is maintained by jogamp, there: Download JOGL from: For Windows I Downloaded: jogl-2.0-b3-windows-i586.7z (). For Mac I got the “jogl-2.0-pre-20101104-macosx-universal” package. Extract it in a reasonable place, maybe in a subfolder named “jogl-2.0″ something like “ C:libjogl-2.0” (or equivalent in Mac). Now we have to bind it with Eclipse IDE. ![]() I will explain only the minimum amount of work to do for this (just to have it working) because I know that the first thing that someone wants is have t working and looking into the detail later, when we are already happy that it works!:) Open Eclipse Preferences (e.g. “ Windows->Preferences” in Windows Helios or “ Eclipse->Preferences” in Mac Galileo). In the form open: Java->Build Path->User Libraries Click the “New” button and in the dialog type something sensible in the library name box. Something such as “jogl-2.0”: Select the newly created entry and click on the “Add JARs” button. Browse where the jogl package has been extracted and enter in the jar folder. Once in the folder you need to select just those files: • gluegen-rt.jar • jogl.all.jar • nativewindow.all.jar • newat.all.jar Once this is done, you have to set the lib folder for each one of those. Just expand each entry, select the Native library location field, click “Edit” and browse until you reach the lib folder of the same extracted jogl package: Repeat this for each entry. In order to use it in your (any) Java project, go into the project’s properties page (right click on the project in the Project Explorer window and select “Properties”). In the properties page open the “ Java Build Path” page, then select the “ Libraries” tab and click the “ Add Library” button. In the selection window select “ User Library“: Click “Next” and select our jogl-2.0 library” And click “ Finish” If everything is done correctly, this should be the final result: Once this is done you are ready to write and run OpenGL Java apps. Install CDT Plugin for Eclipse (for C/C++ projects) Go in: Help->Install New Software From the list select the CDT repository for helios, or add it if it is not there: and select the CDT Main Features: Then just follow the installation flow (Next, Next, Accept License Agreement, etc) Restart Eclipse when asked You can show the icon for quick access clicking on the Open Perspective button or accessing it from the menu Window->Open Perspective. Select “Other” and select the C/C++ perspective: Now both Java anc C/C++ perspectives will be available with one click: Install the C/C++ compiler (Windows) I use MiniGW to build the project. You can take it from there: Install it in an easy-to-reach folder. “C:MiniGW” is perfect for this. I Install only the C++ Compiler, MSYS Basic System and the MiniGW Developer Toolkit: Once finished I like to add “ C: MinGW bin” and “ C: MinGW msys 1.0 bin” to the path: This should be enough to meke Eclipse Happy to build our C/C++ projects. When building C/C++ projects in Windows I use the MiniGW/CDT Toolchain, while In Mac I use MacOSX/GNU. To set this in Windows, Open Project Preferences and then “ C/C++ Build->Tool Chain Editor“. Here select MiniGW GCC, CDT Internal Builder.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |