Build a development environment to participate in open source projects in Windows XP to build a git and Cygwin development environment

Source: Internet
Author: User
Tags version control system

    • Introduction

There is only one Windows XP home machine, but want to participate in the development of open source community such as [email protected], this article provides an entry-level development environment building guidelines.

Related tools: Eclipse,egit,cygwin.

    • Git

Git is an SVN-like version control system. There are many online code hosting platforms based on git, such as GitHub, OSC, etc. Because of the great GFW, here is only a description of how to use Eclipse's EGit plugin to interact with [email protected].

1. Install eclipse Kepler, then go to the menu Helper, Eclipse Marketplace, wait a moment to brush out the plug-in market, enter the EGit in Find and return to the plugin and click Install.

2. In the left margin of the workspace view of Eclipse, right-click Import, such as choose Git---Projects from Git, click Next.

Then select the Clone URI (some Eclipse versions show only the URI), and click Next. The following dialog box appears.

The URI fills in the project address, in the git.oschina.net to find a C + + project, the upper right corner will have the following can copy the project address.

Then fill in the OSC registered user name password, and then all the way Next, followed by the choice of local path or something.

3. Note that the right-click Commit in the team commits the local warehouse, and the method of interacting with the remote warehouse is in team-I remote.

    • Cygwin

Import a C project that provides Makefile, consider using the UNIX-like emulation environment Cygwin on Windows to compile and run, and Eclipse uses only the code and commit (though it can actually compile).

1. Download cygwin-1.7.26 Setup-x86.exe, after installation, the following page must choose Install from the Internet. Do not blindly choose Install from Local Directory, even if you have previously installed and want to add a development package.

If you choose one (be careful not to select more).

Select the development package on the following page, click the Circle flag to change the Default to Install/reinstall/uninstall, not familiar with the change, you can check in all and Devel to see if make is cross-selected (only install Bin You do not have to fork the SRC column).

Sometimes in this step, make is not selected for a variety of reasons, which can lead to the use of the Do command (which is simply unforgivable). Most of the internet is recommended to download make-3.81.tar.bz2 source code and then compile in the Cygwin build make, but if the computer environment confusion (such as the previous installation of some development environment), it is likely to lead to compilation failure (such as the Lseek definition conflicts and other errors).

2. Download installation time is likely to be long. When the installation is complete, the Cygwin Terminal is generated on the desktop, and you can see the familiar Unix environment by opening.

Cd/cygdrive/e/git/xxx

Make

chmod +x A.exe

./a.exe

I found in the first project in the compilation process encountered a small problem, unable to identify the Makefile in the-mno-cygwin, a check the original gcc-4.7.0 has been removed after-mno-cygwin, so in Makefile they are deleted.

    • Conclusion

Go a lot of detours, finally can only play a game in the home XP to engage in development, think it is really a little excited about it.

Build a development environment to participate in open source projects in Windows XP to build a git and Cygwin 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.