Compile and debug WebKit, V8, and nodejs in xcode

Source: Internet
Author: User

It is very difficult for a C/C ++ cainiao to study some excellent frameworks, but if they can be imported into xcode projects, compilation and debugging on xode will make it easier to learn this matter. xcode is indeed a powerful tool for developers. Recently, we have been engaged in WebKit, V8, and nodejs. As a result, we have found a way to turn these three frameworks into xcode projects, which is summarized as follows:

WebKit

WebKit has already said that the source code contains the xcodeproj file, which can be opened directly with xcode, which is very convenient.

V8

  1. SVN checkout http://v8.googlecode.com/svn/trunk/ V8
  2. /V8 Root/Make Dependencies
  3. /V8 Root/Build/gyp_v8
  4. Open/V8 Root/Build/all. xcodeproj
  5. Select scheme as shell (this is a sample to verify whether the compilation is OK)
  6. Run

Nodejs

  1. Git clone https://github.com/joyent/node.git
  2. Export cc =/applications/xcode. APP/contents/developer/toolchains/xcodedefault. xctoolchain/usr/bin/clang
    Export cxx =/applications/xcode. APP/contents/developer/toolchains/xcodedefault. xctoolchain/usr/bin/clang ++
  3. ./Configure
  4. /Nodejs Root/Tools/gyp_node
  5. Open/Nodejs root/Node. xcodeproj
  6. Select scheme as node
  7. Edit Scheme
  8. Add arguments:
    An executable nodejs code path
  9. Run

A few very simple steps can make the research work easy and enjoy it.

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.