Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Source Insight in Ubuntu

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail how to use Source Insight in Ubuntu. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

This is my system information: Linux gavin-laptop 2.6.32-40-generic # 87-Ubuntu SMP Tue Mar 6 00:56:56 UTC 2012 x86x64 GNU/Linux

To use Source Insight, you also need to install a wine tool, which directly sudo apt-get install wine will automatically install when the network is normal. Then find the Source Insight execution file (that is, the installation file under the windows system), right-click and choose to open it with the wine tool, which is a small red wine glass. The installation process is the same as that installed in the Windows environment, all installed according to the default options. After the installation is complete, click Applications-Wine-Configure wine to display the configuration window shown below.

Then select Drivers, and create a new Driver, and the drive letter can be assigned freely. Then click the disk symbol you assigned, select Browse, or you can enter Path directly. Individuals tend to get it through Browse. After all, what the eyes see is easier for people to believe, right?

I am assigning a D disk and mounting my / home/gavin/ folder. If you don't set it here, you won't be able to create a new project under ubuntu.

The following part of the actual operation of a u-boot source code to create a new project to demonstrate the specific operation.

The path to the source code is: / home/gavin/workspace/xc2440/bootldr/u-boot-2012.04-rc3

Enter the current source directory and execute mkdri SI / / create a new SI folder under the source directory to store the Source Insight project.

Chmod 777 SI / / this step is very important, I am here to maximize the permissions of the SI folder, because if you do not have enough permissions, you will not be able to create a project.

After doing this, open the Source Insight software: Applications- > Wine- > Programs- > Source Insight 3-> Source Insight 3.5 to start the software, the startup process is the same as under Windows. There are also some settings that are the same as under windows, so I won't talk about it here. Let's start a new project. Project-> New progect will pop up the following dialog box:

Click the Browse button to find the SI folder we created under the source directory. Select and determine.

Then click OK to confirm (there is a small oversight here, did not rename the project, generally changed to the same name as the project aspect search, here you can name it u-boot-2012.04-rc3).

Next, we need to pay attention to the time source code path. The SI folder we created before is only the path where the working files are stored.

So you need to switch to the source path of the previous layer and remove\ SI.

Then confirm, and you can start to add source code to the project. I have added all the projects to the source code for the demonstration of the aspect. If your computer configuration is not very high, this is not recommended, because some code you need to add later can also be added.

Select Add Tree is to add all the source code, will prompt you to add how many files, select OK, and then click colse to close the dialog box

To "synchronize" source files, selecting Project- > Synchronize Files from the Source Insight menu will bring up the following dialog box

Just choose according to your needs. Finally, OK will synchronize, and after synchronization, you can use Source Insight to consult the source code, and enjoy the fun of reading the code with Source Insight.

The shortcut keys are in the menu bar, select Help- > Create Key List.

This is the end of the article on "how to use Source Insight in Ubuntu". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report