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

From BS Wiki
Jump to navigation Jump to search
Line 1: Line 1:
== Setting up Eclipse in Ubuntu (Hirsute) ==
== Setting up Eclipse in Ubuntu (Hirsute) ==
# 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
# In the Project Explorer window, right-click on the project root and click on Build Project


asdf
See [[Linux: Acquiring Source Code]] for downloading the source code for a specific package.
#:::<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: Compiling and Installing Source Code]] for compiling and installing.
See [[Linux: Compiling and Installing Source Code]] for compiling and installing.
----
----

Revision as of 18:53, 9 May 2021

Setting up Eclipse in Ubuntu (Hirsute)

  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. 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 for compiling and installing.