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 system

2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How can Source Insight be used in Ubuntu systems? I believe that many inexperienced people are at a loss about this, so this article summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

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.

Don't ask me about the shortcut keys. Select Help- > Create Key List from the menu bar to see for yourself.

The following solution to wine slowness is seen on the Internet, which I didn't care about, because mine is acceptable.

The solution of slow speed of wine

1. The traditional client communication mode is used between client and server of wine. On the other hand, iptables does not seem to have a communication channel for native programs.

Run: iptables-I INPUT-s 127.0.0.1-j ACCEPT

2. The slow speed of your wine is the problem with locale. You are using utf8's locale. When wine starts, look for fonts first, because there are no fonts containing utf8 (which also has something to do with wine's own font program), so it will look for fonts that match other locale one by one, so it is slow.

The solution is to run "env LANG=en_US wine your_program" or "env LANG=zh_CN wine your_program" instead.

You can also add alias wine='env LANG=en_US wine' to your ~ / .bashrc.

3. Modify / usr/share/X11/locale/zh_CN.UTF-8/XLC_LOCALE

Delete all the paragraphs with the word GBK in it.

Set the font size and display, just opened the font and size to make people want to sleep.

Menu Options- > Document options...

Choose Screen Fonts...

Then set the font and font size according to your preferences. Then click OK to type yes in the pop-up dialog box and then click yes.

After reading the above, have you mastered how Source Insight is used in the Ubuntu system? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

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