Linux: Setting up Eclipse for Linux Source Code: Difference between revisions

From BS Wiki
Jump to navigation Jump to search
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Setting up Eclipse in Ubuntu (Hirsute) ==
== Setting up Eclipse in Ubuntu (Hirsute) or in Mint 20.1 Cinnamon ==
# Download the installer from the [https://www.eclipse.org/downloads/ official website], untar it, and run it.
# Download the installer from the [https://www.eclipse.org/downloads/ official website], untar it, and run it.
# Launch Eclipse, select a work space location
# Select the File -> Import menu option
# In the new dialog window expand the <b>C/C++</b> tree, select <b>Existing Code as Makefile Project</b>, click the Next button
# Name the project, select the source code root directory, and select the desired compiler, click the Finish button
# Open up the terminal and navigate to the source root directory and configure the project
#:::<code>sudo ./configure</code>
# In the Project Explorer window, right-click on the project root and click on Build Project


asdf
#:::<code>sudo gedit /etc/apt/sources.list</code>
#::An example line might look like this:
#:::<code>deb-src <nowiki>http://us.archive.ubuntu.com/ubuntu/</nowiki> hirsute main restricted</code>
# Update the new package information that was added in step 1
#:::<code>sudo apt-get update</code>
# Navigate to the directory that the source code will reside in, and download it.
#::Example for downloading the source code for the grep utility
#:::<code>sudo apt-get source grep</code>
#::Example for downloading the source code for bash
#:::<code>sudo apt-get source bash</code>
# There should be a directory with the source code along with some other files. Move to the new directory to view the downloaded source code.


See [[Linux: Acquiring Source Code]] for downloading the source code for a specific package.


See [[Linux: Compiling and Installing Source Code]] for compiling and installing.
See [[Linux: Compiling and Installing Source Code from the Terminal]] for compiling and installing.
----
----

Latest revision as of 21:12, 29 May 2021

Setting up Eclipse in Ubuntu (Hirsute) or in Mint 20.1 Cinnamon

  1. Download the installer from the official website, untar it, and run it.
  2. Launch Eclipse, select a work space location
  3. Select the File -> Import menu option
  4. In the new dialog window expand the C/C++ tree, select Existing Code as Makefile Project, click the Next button
  5. Name the project, select the source code root directory, and select the desired compiler, click the Finish button
  6. Open up the terminal and navigate to the source root directory and configure the project
    sudo ./configure
  7. In the Project Explorer window, right-click on the project root and click on Build Project


See Linux: Acquiring Source Code for downloading the source code for a specific package.

See Linux: Compiling and Installing Source Code from the Terminal for compiling and installing.