Mac Pro installs dual system and simple development environment

Source: Internet
Author: User

In the previous period of time for the computer, in the development environment, encountered a few problems, the following simple talk about these small pits.

because the development scenario is special, I do most of the time under Windows development, but sometimes switch to the Mac OS to do some development, at first, try to install the virtual machine under Mac OS, and then install Windows, but the actual experience is not very good, sometimes a bit of a card feeling, After the tangle, or choose to install a dual system, although the system switching is cumbersome, but the independent installation of Windows, the use of more smooth operation, the display effect is better. Using bootcamp to install Windows on Mac OS is very convenient and hassle-free, the general process is: Prepare the system image file (I here is Win 7) and more than 4g USB, then open bootcamp, follow the prompts, first make the system disk, then download the driver, and then reboot to start the installation, Before installation, select the partition size, and then format the bootcamp disk, that is, the installation of the system's disk, and then the formal system installation process, restart several times after installation, in the open U disk, directly into the bootcamp folder, click Setup to start installing the driver, Divide the bell card, video card, network card and so on the driver is completely installed, at this time restart the computer, the display of the screen is also fluent, there is a Windows boot tone, but also can use wireless internet. I used to use the Mac Pro system is mavericks, at that time with Bootcamp installed win7 is no problem, now the system is Yosemite, the system changed, the problem is out. Everything seems pretty good after the installation of Win 7, but surprised to find that in the case of nothing to do, the CPU soared to 30%, a check found that there is a process called "system interruption", has been consuming the CPU. So looked up a lot of information, some said is a network card driver problem, some say is the graphics card driver problem, respectively uninstall and install the latest driver or the old version of the driver, still useless, but toss this one after the discovery is really a graphics card driver problem, because as long as the graphics driver uninstall, the CPU immediately return to normal, then that crazy, Later inadvertently in a forum to see a netizen said, sleep a bit, and then restart the computer on it, with matchless uneasy and helpless mood tried a bit, incredibly can, although is a palliative method, but after the restart, at least the CPU back to normal, can use the computer. The reason, it should be the driver compatibility issues, causing the CPU to constantly query the status of the video card after booting into a dead loop, and after hibernation and restart, the CPU should get the video card status value or at least get a default value, so jump out of the loop, also back to normal working state. System installation, then start to build the development environment, as a developer, the development environment is uncertain, it is too unreasonable, here is not an illustrated writing too detailed, just a few details of the simple write down. (1) There are a large number of articles mentioned after installing JDK, to set the JAVA_HOME environment variable what, in fact, regardless of the Windows environment or Mac OS environment, environment variables are can be set or not set, the key to see you will not use this environment variable. In general, an integrated development environment such as eclipse will automatically find execution, unless you are still using the command line to hit some Java compilation, run commands, this still requires environment variables; (2) if it's Android development, download the integrated development environment or NDK or something, it's too hard to open the website. , you can go to this link: http://www.cnblogs.com/tc310/p/3938353.html, recommended direct download Adt-bundle, which contains ECLIPSE/ADT/ANDROID-SDK, etc., after downloading can be used directly , very convenient; (3) in the Windows environment, using the NDK to compile C + + code, previously read the relevant information, said to be installed Cygwin to use the gcc/g++ compiler, in fact, the new version of the NDK, such as 8/9/10, has come with a compiler, There is no need to install Cygwin, install a Cygwin, but also a time-consuming thing. Show is my project NDK settings, more convenient, in addition, Mac OS, with the above settings, the only difference is that the compiler command setting option will ndk-build.cmd modified to Ndk-build can be;




(4) The JDK is already integrated by default under Mac OS, and you can view the current JDK version information by entering Java-version under terminal. Do not know, and then a solid step on a pit, the process is probably: Download the latest version of the JDK support Mac OS, and then install, click Run Eclipse, prompt version is incompatible, unable to run, directly fainted, finally had to silently uninstall the new version of the JDK, and then restore the system default JDK, Run eclipse again and everything OK.


Mac Pro installs dual system and simple 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.