Android Source reading tool-using source Insight under Ubuntu

Source: Internet
Author: User

Introduction

Under Windows, I believe many friends are accustomed to use source insight to read the analysis of source code, for Linux under the tool, there is really more efficient, configured to be more troublesome, but also more cumbersome, I believe many people will certainly want to be able to use the source under Linux Insight, today I will put my Ubuntu10.04 on the use of the source insight method to share with you! Use of source Insight in Ubuntu

First, Wine Introduction

Wine (Windows environment) is an implementation of Windows 3.x and Windows APIs on top of Linux and UNIX. Note that wine is not a Windows emulator, but instead uses API conversion technology to make Linux correspond to Windows functions to call DLLs to run Windows programs. Wine can work in the vast majority of UNIX versions, including Linux, FreeBSD, and Solaris. In addition, there are wine programs for Mac OS X. Wine does not require Microsoft Windows because it is a completely free code consisting of 100%. It is also free to use the DLLs of the local system if there is a copy available. Wine's release is fully public source code and is free to distribute.

Second, install and configure the use of wine

To use the source insight to install a wine tool, this tool directly sudo apt-get installs wine will be installed automatically under normal network conditions. Then find the executable file that puts the source insight (that is, the installation file under the Windows system), right-click and choose the Wine tool to open, is a red wine glass, the installation process and in the Windows environment installation is the same, are installed by the default options, after the installation is complete , Dot Applications-wine-configure Wine appears as shown in the configuration window

Then select drivers and create a new driver, which is freely assignable. Then click on the disk you assigned the symbol, choose Browse, you can also directly input path, personal comparison tends to get through the browse, after all, the eyes see more easy to believe, right.

I am assigning a D-disk, which is attached to my/home/gavin/folder. If you do not set up here, you will not be able to create under Ubuntu

Introduction

Under Windows, I believe many friends are accustomed to use source insight to read the analysis of source code, for Linux under the tool, there is really more efficient, configured to be more troublesome, but also more cumbersome, I believe many people will certainly want to be able to use the source under Linux Insight, today I will put my Ubuntu10.04 on the use of the source insight method to share with you! Use of source Insight in Ubuntu

First, Wine Introduction

Wine (Windows environment) is an implementation of Windows 3.x and Windows APIs on top of Linux and UNIX. Note that wine is not a Windows emulator, but instead uses API conversion technology to make Linux correspond to Windows functions to call DLLs to run Windows programs. Wine can work in the vast majority of UNIX versions, including Linux, FreeBSD, and Solaris. In addition, there are wine programs for Mac OS X. Wine does not require Microsoft Windows because it is a completely free code consisting of 100%. It is also free to use the DLLs of the local system if there is a copy available. Wine's release is fully public source code and is free to distribute.

Second, install and configure the use of wine

To use the source insight to install a wine tool, this tool directly sudo apt-get installs wine will be installed automatically under normal network conditions. Then find the executable file that puts the source insight (that is, the installation file under the Windows system), right-click and choose the Wine tool to open, is a red wine glass, the installation process and in the Windows environment installation is the same, are installed by the default options, after the installation is complete , Dot Applications-wine-configure Wine appears as shown in the configuration window

Then select drivers and create a new driver, which is freely assignable. Then click on the disk you assigned the symbol, choose Browse, you can also directly input path, personal comparison tends to get through the browse, after all, the eyes see more easy to believe, right.

I am assigning a D-disk, which is attached to my/home/gavin/folder. If you don't set up here, you won't be able to create a new project under Ubuntu.

Third, the use of sourceinsight

The following to the actual operation of a U-boot source code to create a new project to show you the specific operation.
Source Storage path is:/HOME/GAVIN/WORKSPACE/XC2440/BOOTLDR/U-BOOT-2012.04-RC3
Enter the current source directory, 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 here is the permissions of the SI folder is down to the highest, because there is insufficient authority when the project can not be established.
After doing this, open Source Insight Software: Applications->wine->programs->source Insight 3->source Insight 3.5 can start the software, The startup process is the same as under Windows. There are some settings that are just like windows, and this is not the case. Start the new project below. The following dialog box pops up in Project->new progect:

Click the browse button to find our new Si folder under the source directory. Select and OK.

Then click OK to confirm (here is a small negligence, do not re-name the project, generally changed to the same name as the project search, which can be named U-BOOT-2012.04-RC3).
Next need to pay attention to the source path, our new Si folder is just the path of the working file file storage,

So you need to switch to the previous layer of the source path, remove \si

Then confirm, you can begin to add source code to the project. I here for the demonstration of all the projects are added to the source code, if your computer configuration is not very high, this is not recommended, because some of the code behind you need to join, but also can add.

Choose Add Tree is to add all the source code, you will be prompted to add the number of files, choose OK on the line, and then click Colse Close the dialog box,
"Sync" source file, select Project->synchronize files in the Source Insight menu will pop up the following dialog box

Choose as you want. The last point OK will be synchronized, after synchronization can use source insight to consult the source, enjoy the source Insight reading code to bring fun!
You don't have to ask me about shortcut keys. In the menu bar, select Help->create Key list and watch it slowly.
Set * * Font size and display mode, menu options->document Options ...
Select Screen fonts.**

Four, wine slow solution 1, wine between the client and the server is a traditional client communication mode. The iptables does not seem to open the communication channel of the native program.
运行:iptables -I INPUT -s 127.0.0.1 -j ACCEPT
    • 1
    • 2
2, your wine slow is the problem of locale, you use the UTF8 locale bar. Wine starts by looking for fonts, because there is no font that contains UTF8 (which is also related to wine's own font program), so it will look for fonts that match other locales, 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 join alias Wine= ' env Lang=en_us wine ' into your ~/.BASHRC.

3, modify the/USR/SHARE/X11/LOCALE/ZH_CN. Utf-8/xlc_locale, delete all the paragraphs that have GBK in them.

Engineering.

Third, the use of sourceinsight

The following to the actual operation of a U-boot source code to create a new project to show you the specific operation.
Source Storage path is:/HOME/GAVIN/WORKSPACE/XC2440/BOOTLDR/U-BOOT-2012.04-RC3
Enter the current source directory, 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 here is the permissions of the SI folder is down to the highest, because there is insufficient authority when the project can not be established.
After doing this, open Source Insight Software: Applications->wine->programs->source Insight 3->source Insight 3.5 can start the software, The startup process is the same as under Windows. There are some settings that are just like windows, and this is not the case. Start the new project below. The following dialog box pops up in Project->new progect:

Click the browse button to find our new Si folder under the source directory. Select and OK.

Then click OK to confirm (here is a small negligence, do not re-name the project, generally changed to the same name as the project search, which can be named U-BOOT-2012.04-RC3).
Next need to pay attention to the source path, our new Si folder is just the path of the working file file storage,

So you need to switch to the previous layer of the source path, remove \si

Then confirm, you can begin to add source code to the project. I here for the demonstration of all the projects are added to the source code, if your computer configuration is not very high, this is not recommended, because some of the code behind you need to join, but also can add.

Introduction

Under Windows, I believe many friends are accustomed to use source insight to read the analysis of source code, for Linux under the tool, there is really more efficient, configured to be more troublesome, but also more cumbersome, I believe many people will certainly want to be able to use the source under Linux Insight, today I will put my Ubuntu10.04 on the use of the source insight method to share with you! Use of source Insight in Ubuntu

First, Wine Introduction

Wine (Windows environment) is an implementation of Windows 3.x and Windows APIs on top of Linux and UNIX. Note that wine is not a Windows emulator, but instead uses API conversion technology to make Linux correspond to Windows functions to call DLLs to run Windows programs. Wine can work in the vast majority of UNIX versions, including Linux, FreeBSD, and Solaris. In addition, there are wine programs for Mac OS X. Wine does not require Microsoft Windows because it is a completely free code consisting of 100%. It is also free to use the DLLs of the local system if there is a copy available. Wine's release is fully public source code and is free to distribute.

Second, install and configure the use of wine

To use the source insight to install a wine tool, this tool directly sudo apt-get installs wine will be installed automatically under normal network conditions. Then find the executable file that puts the source insight (that is, the installation file under the Windows system), right-click and choose the Wine tool to open, is a red wine glass, the installation process and in the Windows environment installation is the same, are installed by the default options, after the installation is complete , Dot Applications-wine-configure Wine appears as shown in the configuration window

Then select drivers and create a new driver, which is freely assignable. Then click on the disk you assigned the symbol, choose Browse, you can also directly input path, personal comparison tends to get through the browse, after all, the eyes see more easy to believe, right.

I am assigning a D-disk, which is attached to my/home/gavin/folder. If you don't set up here, you won't be able to create a new project under Ubuntu.

Third, the use of sourceinsight

The following to the actual operation of a U-boot source code to create a new project to show you the specific operation.
Source Storage path is:/HOME/GAVIN/WORKSPACE/XC2440/BOOTLDR/U-BOOT-2012.04-RC3
Enter the current source directory, 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 here is the permissions of the SI folder is down to the highest, because there is insufficient authority when the project can not be established.
After doing this, open Source Insight Software: Applications->wine->programs->source Insight 3->source Insight 3.5 can start the software, The startup process is the same as under Windows. There are some settings that are just like windows, and this is not the case. Start the new project below. The following dialog box pops up in Project->new progect:

Click the browse button to find our new Si folder under the source directory. Select and OK.

Then click OK to confirm (here is a small negligence, do not re-name the project, generally changed to the same name as the project search, which can be named U-BOOT-2012.04-RC3).
Next need to pay attention to the source path, our new Si folder is just the path of the working file file storage,

So you need to switch to the previous layer of the source path, remove \si

Then confirm, you can begin to add source code to the project. I here for the demonstration of all the projects are added to the source code, if your computer configuration is not very high, this is not recommended, because some of the code behind you need to join, but also can add.

Choose Add Tree is to add all the source code, you will be prompted to add the number of files, choose OK on the line, and then click Colse Close the dialog box,
"Sync" source file, select Project->synchronize files in the Source Insight menu will pop up the following dialog box

Choose as you want. The last point OK will be synchronized, after synchronization can use source insight to consult the source, enjoy the source Insight reading code to bring fun!
You don't have to ask me about shortcut keys. In the menu bar, select Help->create Key list and watch it slowly.
Set * * Font size and display mode, menu options->document Options ...
Select Screen fonts.**

Four, wine slow solution 1, wine between the client and the server is a traditional client communication mode. The iptables does not seem to open the communication channel of the native program.
运行:iptables -I INPUT -s 127.0.0.1 -j ACCEPT
    • 1
    • 2
2, your wine slow is the problem of locale, you use the UTF8 locale bar. Wine starts by looking for fonts, because there is no font that contains UTF8 (which is also related to wine's own font program), so it will look for fonts that match other locales, 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 join alias Wine= ' env Lang=en_us wine ' into your ~/.BASHRC.

3, modify the/USR/SHARE/X11/LOCALE/ZH_CN. Utf-8/xlc_locale, delete all the paragraphs that have GBK in them.


Choose Add Tree is to add all the source code, you will be prompted to add the number of files, choose OK on the line, and then click Colse Close the dialog box,
"Sync" source file, select Project->synchronize files in the Source Insight menu will pop up the following dialog box

Choose as you want. The last point OK will be synchronized, after synchronization can use source insight to consult the source, enjoy the source Insight reading code to bring fun!
You don't have to ask me about shortcut keys. In the menu bar, select Help->create Key list and watch it slowly.
Set * * Font size and display mode, menu options->document Options ...
Select Screen fonts.**

Four, wine slow solution 1, wine between the client and the server is a traditional client communication mode. The iptables does not seem to open the communication channel of the native program.
运行:iptables -I INPUT -s 127.0.0.1 -j ACCEPT
    • 1
    • 2
2, your wine slow is the problem of locale, you use the UTF8 locale bar. Wine starts by looking for fonts, because there is no font that contains UTF8 (which is also related to wine's own font program), so it will look for fonts that match other locales, 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 join alias Wine= ' env Lang=en_us wine ' into your ~/.BASHRC.

3, modify the/USR/SHARE/X11/LOCALE/ZH_CN. Utf-8/xlc_locale, delete all the paragraphs that have GBK in them.

Android Source reading tool-using source Insight under Ubuntu

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.