forked from Tribler/tribler
-
Notifications
You must be signed in to change notification settings - Fork 0
Compiling Tribler from sources under Eclipse
qstokkink edited this page Apr 26, 2013
·
6 revisions
This page will go over the steps of compiling and running Tribler from the source code using the Eclipse IDE with the PyDev IDE package added on.
#Linux This section will take you through running Tribler from scratch under Linux.
##Getting Tribler
First we will be acquiring all the source files needed to run Tribler.
For this you will be needing Git (you can check this by writing git --version in your Terminal).
Now you will have to follow the instructions in README.md.
If you have followed the instructions correctly, executing ./tribler.sh
in the Terminal should launch Tribler.
##Setting up Eclipse
- Download and install Eclipse Classic from eclipse.org, make sure you download the version appropriate for your system (32- or 64-bit). You will need to own Java to run Eclipse.
- Open Eclipse and set your workspace to the Tribler top folder (the folder that contains the
debian/
andTribler/
folders). - Follow the instructions on pydev.org to install PyDev for Eclipse.
##Setting up a project
- In Eclipse create a new "PyDev Project".
- Fill in an arbitrary project name.
- Don't use the default Project Contents location but point toward your
./Tribler/
folder. - Now click the "Click here to configure an interpreter not listed." link.
- In the interpreter configuration click the "New..." button and add "Python2.7" and
/usr/bin/python2.7
as the Interpreter Name and Executable. - Click OK to close this dialog and then click the "New Folder" button.
- Navigate to the Tribler top folder (the folder that contains the
debian/
andTribler/
folders) and click the OK button. - Click OK to close the interpreters dialog (you should be back at your create a PyDev Project wizard screen).
- Finally check the "Don't configure PYTHONPATH (to be done manually later on)" box and hit the "Finish" button.
- In the Project Browser on the left side of your screen a folder with the name you chose in step 2 should pop up.
- Right-click this folder and choose
Run As>Run Configurations...
. - Double click "Python Run" in the list on the left side of the dialog, this should create a new entry with the name "New_configuration".
- (Single) click "New_configuration".
- Change the Name to "RunTribler", the Project to your name from step 2 and the Main Module to
${workspace_loc:Tribler/Main/tribler.py}
. - Now click the "Arguments" tab.
- Change your Working Directory in the "Other" entry to point to your top folder (the folder that contains the
debian/
andTribler/
folders). - Press the "Run" button to save and run Tribler.
#Windows
TODO
#Mac OS/X
TODO