Thanks alot to tobi helping me with Problem Anpassung von Pfaden bei Eclipse-Installation!
- something like [Next >] means a button or an input mask and [check] means you have to select an option with your mouse
Upgrade current Eclipse installation
Eclipse -> Window -> Preferences -> Install/Update -> Available Software Sites -> Add... -> "Mars" + http://download.eclipse.org/releases/mars [OK] -> [uncheck] "Luna"
Eclipse -> Window -> Preferences -> Install/Update -> Available Software Sites -> [edit] "The Eclipse Project Updates" to http://download.eclipse.org/eclipse/updates/4.5 [OK] -> [OK]
Eclipse -> Window -> Help -> Check for Updates
Restart and repeat these steps until there are no updates anymore.
New installation of Eclipse
For just running ct-sim install:
Code: Alles auswählen
apt-get update && apt-get upgrade && apt-get install openjdk-7-jdk openjdk-7-source openjdk-7-demo openjdk-7-doc openjdk-7-jre-headless openjdk-7-jre-lib libjava3d-java libjava3d-java-doc libjava3d-jni doxygen graphviz make gcc gcc-avr libc-dev avr-libc
Code: Alles auswählen
apt-get update && apt-get upgrade && apt-get install openjdk-7-jdk libjava3d-java libjava3d-java-doc libjava3d-jni doxygen graphviz make gcc gcc-avr libc-dev avr-libc
In my case I've downloaded: http://www.eclipse.org/downloads/downlo ... _64.tar.gz)
Code: Alles auswählen
cd /home/user/Downloads
tar xvf eclipse*.tar.gz
mv ecplise /home/user/
cd /home/user/eclipse/
./eclipse
1. While starting eclipse, choose a workspace directory and [check] "Use this as the default..." [OK]
2. Eclipse main window -> Help -> Install new software
Work with: --All Available Sites-- (there is a message "Pending..." in the middle white box - wait, this can take a while!)
Programming Languages ->
[check] C/C++ Development Tools
[check] C/C++ Library Api Documentation Hover Help
Collaboration ->
[check] Subversive Revision Graph (Optional)
[check] Subversive SVN Team Provider
[Next >]
[Next >]
[check] "I accept ..."
[Finish]
[now wait for installation process]
[click [Yes] for "restart now?"]
3. If no pop-up appears for "Subversive SVN Connectors" after restart open:
Eclipse main window -> Window -> Perspective -> Open Perspective -> Other... -> [select] SVN Repository Exploring -> [OK]
[check] SVN Kit 1.8.x [1.8.11 in my case]
[check] JavaHL 1.8.x
[Finish]
[Next >]
[Next >]
[check] "I accept ..."
[Finish]
[now wait for installation process, click [OK] if there are warnings]
[click [Yes] for "restart now?"]
4. Eclipse main window -> Help -> Install new software
paste in [Work with:] the address: http://download.gna.org/eclox/update (confirm by hitting your enter button)
[UNcheck] Group items by category
[check] Eclox Hot
[Next >]
[Next >]
[check] "I accept ..." [Finish]
[now wait for installation process, [OK if there are warnings]
[click [Yes] for "restart now?"]
5. Eclipse main window -> Window -> Preferences -> Doxygen (check if there is a version like "1.8.8" listed next to type "Default", [OK])
6. Eclipse main window -> File -> Import
[expand] SVN
[select] Project from SVN
[Next >]
URL: https://www.heise.de:444/svn/ctbot (click [Browse...] to confirm)
[expand] stable
[select] ct-Sim [OK]
[Next >]
[Finish]
[Finish]
[now wait for check out process]
7. Eclipse main window -> File -> Import
[select] SVN
[select] Project from SVN
[check] "Create a new respoitory location"
[Next >]
URL: https://www.heise.de:444/svn/ctbot (click [Browse...] to confirm)
[expand] stable
[select] ct-Bot [OK]
[Next >]
[Finish]
[Finish]
[now wait for check out process]
8. Ecplise main window -> Window -> Perspective -> Open Perspective -> Other... -> [select] C/C++ -> [OK]
9. There should be a new (very) small button on the right side showing a "C" -> expand "C/C++-Eclipse" via this button
10. Expand the new opened window by dragging the box borders with your mouse left and down,
on the left side select "Project Explorer", then select "ct-Bot"]
(first time with Eclipse is like first time with Photoshop so if you get lost in the menus/windows you can reset the window postions via:
Window -> Perspective -> Reset Perspective...)
11. Eclipse main window -> Project -> Build Configurations -> Set Active -> 1 Debug-Linux (Simulierter Bot unter Linux)
Eclipse -> [Java-menu button on the left side] -> [right click] ct-Sim -> Properties -> Java Build Path -> "Libraries" tab -> Add External JARs...
[select] j3dcore.jar in /usr/share/java/ [OK]
Add External JARs...
[select] j3dutils.jar.jar in /usr/share/java/ [OK]
Add External JARs...
[select] vecmath.jar in /usr/share/java/ [OK]
[OK]
12. Java-Ecplise window -> Project -> Clean [OK]
To follow process look for the "Console" tab in C/C++ window]
[After building process in a termial the command...] #find / -name ct-Bot [...should list: ~/workspace/ct-Bot/Debug-Linux/ct-Bot]
13. Java-Eclipse -> Package Explorer -> ct-Sim -> ctSim.controller -> [right click] Main.java -> Run As -> 1 Java Application
(to start a second "Sim-Bot":) Java-Eclipse -> Package Explorer -> ct-Bot -> Debug-Linux -> [right click] ct-Bot -> Run As -> 1 Local C/C++
(in default config ct-Sim will start a first "Sim-Bot" automatically which can be modified in config/ct-Sim.xml)[/list]
Please post any problems in this thread, thx!