Application of Vs2012 in Linux development (1): Development environment

Source: Internet
Author: User

        in ide was used during the development of the Linux . code::blocks , eclipse , source insight , there are various ide provided by the embedded manufacturer. such as VISUALDSP and so on, feel is always inferior vs powerful and useful. Although vs does not provide compilation and debugging support for GCC . In the previous development only can act as an editor, but vs provides a powerful sdk , this article explores how to extend the vs . Support the development of linux .

As a matter of fact, tools like Visual Gdb already have a similar function, nothing but a fee, and there's only one reason to do it: Fun ...

1.1Development environment

Host development Environment:

System:WIN7

Development tools:vs2012 + vssdk

Development language:VC + C # + Python-2.7.6.

Virtual machine:Vmware work station-9.0.

To compile the host development environment:

The system of virtual machines is used for the provision of various services in cross-compiling and embedded development.

Operating system:RHEL-6.3, This virtual machine is for development only, regardless of its security configuration.

Development tools:gcc, the tool chain under different platforms.

System services: Enable tftp,samba,ftp,ssh

Target machine: We want to use the platform, such as sea think,TI,ADI and other platforms.

Connection mode:telnet, serial port

Debug mode:gdb/gdbserver

1.2Folder sharing

First, share the Windows folder with VMware 's shared Folders feature to Linux. such as f:\work. The folder you see under Linux is /mnt/hgfs/share/work.

Next, the folders under Linux are shared with the Samba service to Windows, such as /work, mapped to z:\under windows , It is important to note that the accounts of Samba and the accounts we use to SSH in later should be consistent and avoid unnecessary interference due to permissions issues.

When we are developing uboot and the Linux kernel. The code can only be placed on Linux virtual hard disks, not on windows systems, because they need to use symbolic links, but also to distinguish between uppercase and lowercase.

While you are doing common application development. Assuming you don't use symbolic links, you just need to put your code under the Windows folder, which can speed up the code analysis for vs .

1.3InstallationIronPython

Because pythonis required in the project, it is convenient to edit the python file in vs2012 . Need to install the IronPython extension.

1.4SDF File Location

Because VS2012 's browsing information is placed in an SDF file, our project files may be placed in the shared folder of the virtual machine. Therefore, you need to change the path of the SDF file. Doing so will result in slow execution.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvbglnahrzx2pveq==/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/ Dissolve/70/gravity/center ">

Application of Vs2012 in Linux development (1): Development environment

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.