[Build Development Environment] participate in open-source projects in Windows XP, build git and cygwin development environments, and gitcygwin

Source: Internet
Author: User

[Build Development Environment] participate in open-source projects in Windows XP, build git and cygwin development environments, and gitcygwin

  • Introduction

There is only one Windows XP Home machine, but I want to participate in development in open-source communities such as Git @ OSC. This article provides an entry-level development environment building guide.

Tools involved: Eclipse, EGit, and Cygwin.

 

  • Git

Git is a version control system similar to svn. There are many git-based online code hosting platforms, such as GitHub and OSC. Thanks to the great GFW, this article only describes how to use the EGit plug-in of Eclipse to interact with Git @ OSC.

1. Install Eclipse Kepler, and click Helper-> Eclipse Marketplace in the menu. Wait a moment to Find the plug-in market, enter EGit in Find, press enter, Find the plug-in, and click Install.

2. Right-click the left blank area of the Eclipse workspace view and choose Import. For example, select Git-> Projects From Git and click Next.

Enter the Project address in URI and find a C/C ++ project in git.oschina.net. In the upper right corner, the Project address that can be copied is as follows.

Then fill in the username and password registered in OSC, and click "Next" to select the local path or something.

3. In the context menu, the local repository is submitted by Commit. The interaction method with the Remote repository is in Team-> Remote.

 

  • Cygwin

Import a C project that provides Makefile. Consider using the UNIX-like simulated environment Cygwin on Windows to compile and run it. Eclipse only needs to look at the code and submit it (although it can also be compiled ).

1. Download The cygwin-1.7.26 for the setup-x86.exe, the following page after installation must select Install from Internet. Even if you have installed the SDK before and want to add it, Do not blindly choose Install from Local Directory. Why?

For example, select one option (do not select multiple options ).

On the following page, select the development kit and click the circle icon to change Default to Install/Reinstall/Uninstall. If you are not familiar with it, do not change it, in All-> Devel, you can check whether make is selected as a cross (only the Bin is installed, and the Src column is not required ).

Sometimes, if you do not select make for various reasons in this step, the make command will not be used (this is unforgivable ). Most of the recommendations on the Internet to download the make-3.81.tar.bz2 source code and then compile make in Cygwin, but if the computer environment chaos (for example, some development environment installed before ), compilation may fail (errors such as lseek definition conflicts ).

2. the download and installation may take a long time. After the installation is complete, Cygwin Terminal is generated on the desktop. The familiar Unix environment is displayed.

Cd/cygdrive/e/git/xxx

Make

Chmod + x a.exe

./A.exe

I encountered a small problem in the compilation process of the first project detected, could not identify the-mno-cygwin in Makefile, a check that the original gcc-4.7.0 has been removed-mno-cygwin, therefore, you can delete all of them in Makefile.

 

  • Conclusion

After a lot of detours, I was able to develop on a home XP that could only play games. I was a little excited.

 

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.