Auburn University http://www.eng.auburn.edu/~xqin COMP 2710 Software Construction xCode Development Environment for C++ Programming in Mac OS Dr. Xiao.

Slides:



Advertisements
Similar presentations
1 CSCI N305 C Language Programming Welcome to CSCI N305! Compiling Your First Program Using Microsoft Visual Studio 2008.
Advertisements

Using XCode © 2013 Surajit A Bose De Anza College.
11-Jun-15 Getting Ready for CIT Registering and labs If you are not yet registered (and want to be), be sure I have your name and student ID We.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Getting Ready for Java. What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made to understand.
13-Jul-15 Getting Ready for Java. 2 What You Need 256 MB of RAM (512 MB or more recommended) 500 MHz Pentium or better Macintosh: must run Mac OS X, preferably.
15-Jul-15 Getting Ready for Java. What is Java? Java is a programming language: a language that you can learn to write, and the computer can be made to.
© 2010 IBM Corporation IBM Experience Modeler - Theme Editor Installing Python Image Library Presenter’s Name - Presenter’s Title DD Month Year.
PYTHON: LESSON 1 Catherine and Annie. WHAT IS PYTHON ANYWAY?  Python is a programming language.  But what’s a programming language?  It’s a language.
Tutorial on Visual Studio express Introduction Visual Studio Express Editions are a new line of Microsoft development Tools. This line of products.
1 ENG236: ENG236: C++ Programming Environment (2) Rocky K. C. Chang THE HONG KONG POLYTECHNIC UNIVERSITY.
TC2-Computer Literacy Mr. Sencer February 8, 2010.
How to Download and Install a Sharp Print Driver on a Mac.
WaveMaker Visual AJAX Studio 4.0 Training Installation.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
WRF Domain Wizard A tool for the WRF Preprocessing System Jeff Smith Paula McCaslin July 17, 2008.
C O M P U T E R G R A P H I C S Jie chen Computer graphic -- OpenGL Howto.
CSC 215 : Procedural Programming with C C Compilers.
Geant4 Installation Supported platforms:  Scientific Linux with gcc 4.1.2/4.6  Mac Os X 10.7 and 10.8 with gcc 4.21  Windows7 with Visual Studio.
Introduction to Systems Programming (CS 0449) PalmOS Tools: Developer Studio & Cygwin.
Develop iphone application Using Xcode and User Interface Design Ruimin Cai 2011.Sept.22.
Run your first C program.  Bring your computers to class  No prior programming experience is needed  Hours spent  Sakai  TAs.
How to Install the JDK (Java Development Kit) Click hereClick here to download the JDK.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
ENDNOTE Installation Guide. E ENDNOTE ON LIBRARY PAGE ( Scroll down to see download instructions.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Web Scraping with Python and Selenium. What is Web Scraping?  Software technique for extracting info from websites Get information programmatically that.
ENDNOTE Installation Guide. E ENDNOTE ON LIBRARY PAGE ( Scroll down to see download instructions.
Downloading a Visual C compilers (try it yourself at home) Visual Studio 2012 can be found at:
 CSC 215 : Procedural Programming with C C Compilers.
VMware Recovery Software RECOVER DATA FROM CORRUPT VMDK FILE.
| © 2007 LenovoLenovo Confidential Use WinDBG Tool to Analyze BSOD —— Lenovo Service Support Training.
ICAICT201A USE COMPUTER OPERATING SYSTEM. USING THE CONTROL PANEL The Control Panel contains many options for configuring your computer, including: adding.
The Visible PC. Computing Parts Hardware – stuff you can touch and would hurt if you dropped it on your foot Operating System – controls the hardware.
COMP 2710 Software Construction Project 2 – Analysis of auDiskTool
Cygwin: getting the setup tool
Dive Into® Visual Basic 2010 Express
CSC 215 : Procedural Programming with C
Building Desktop Apps with Node.js and Electron
COMP 2710 Software Construction Project 2 – Analysis of auDiskTool
Development Environment
How to Install Norton Antivirus in your Computer
CSCI 351 – Mobile Applications Development
Obtaining the Required Tools
System Software EIT, © Author Gay Robertson, 2016.
Appendix A Barb Ericson Georgia Institute of Technology May 2006
Getting Started with R.
COMP 170 – Introduction to Object Oriented Programming
Console and GUI Programs
CSCI 351 – Mobile Applications Development
Creating a Windows 7 Professional SP1 Virtual machine
Getting started in Eclipse
Bomgar Remote support software
How to Fix 1460 Error in Mozilla Thunderbird?. Mozilla Thunderbird is an open-source cross-platform, released in The program works as a center where.
MBOX Converter Convert MBOX to EML, MSG, RTF & HTML
Fix iPhone Error Code
Quick Start Guide for Visual Studio 2010
Installing OpenRefine
Aqua Data Studio.
Social Media And Global Computing Introduction to Visual Studio
CIS16 Application Development Programming with Visual Basic
Compilers, Make and SubVersion
SEEM4570 Tutorial 1 Android SDK + XCode SDK +
Creating Your First C Program Using Visual Studio 2010
Creating Your First C Program Using Visual Studio 2010
Cygwin: getting the setup tool
Carthage ios 8 onwards Dependency manager that streamlines the process of integrating the libraries into the project.
HOW TO DOWNLOAD & INSTALL TomTom Home For Mac & Windows.
C# and ASP.NET Programming
Windows 8 Upgrade Decision Flowchart
Presentation transcript:

Auburn University http://www.eng.auburn.edu/~xqin COMP 2710 Software Construction xCode Development Environment for C++ Programming in Mac OS Dr. Xiao Qin Auburn University http://www.eng.auburn.edu/~xqin xqin@auburn.edu This is an all-in-one version, which include: Lec01b1-Write your first c++ program.ppt Lec01b2-Using the Eclips IDE Note that a warming-up exercise is in a separate file: Lec01b2- Warming-up Exercises.ppt (this one is NOT covered in the lecture) To be continued on page 10.

xCode in Mac OS C or C++ development with XCode XCode for iPhone and iOS Reference: http://www.cprogramming.com/xcode.html

xCode Offers A powerful IDE Command line tools: g++ and gcc 1-3 3

What is xCode? Provide a GUI editor (like Visual Studio) Provide an interface that includes a project into which program files are loaded (like Eclips and jGrasp) Allow you to compile a program and displays any error messages generated Allow you to run a program and provide an output window with results You can either download the full XCode environment including documentation (2.3GB) or download a stripped-down version that that is about 750MB. If you want to download the smaller version of XCode that doesn't include documentation, click on "Developer Downloads". (Much of the documentation will not be relevant to you when you are just starting to learn C++, and the Apple website itself already makes extensive documentation available.) Click on "Developer Tools" under the "Downloads" sidebar Search for the latest version of XCode (you want something like that looks like "XCode X.Y.Z Developer Tools", for example "XCode 3.2.2 Developer Tools") 1-4 4

Downloading xCode Register as an Apple developer http://developer.apple.com/programs/register/ It is free Download at Mac Dev Center: http://developer.apple.com/devcenter/mac/login.action Full version (2.3GB) or stripped-down (750MB) You can either download the full XCode environment including documentation (2.3GB) or download a stripped-down version that that is about 750MB. If you want to download the smaller version of XCode that doesn't include documentation, click on "Developer Downloads". (Much of the documentation will not be relevant to you when you are just starting to learn C++, and the Apple website itself already makes extensive documentation available.) Click on "Developer Tools" under the "Downloads" sidebar Search for the latest version of XCode (you want something like that looks like "XCode X.Y.Z Developer Tools", for example "XCode 3.2.2 Developer Tools") 1-5 5

Downloading xCode http://developer.apple.com/technology/xcode.html Reference: http://www.macworld.com/article/1046286/installxcode.html Double click the Disk Image of xCode 1-6 6

Installing xCode: Follow the usual Apple installer routine Reference: http://www.macworld.com/article/1046286/installxcode.html Double click the Disk Image of xCode Follow the usual Apple installer routine When the process is done, you’ll have a brand-new set of Developer Tools, installed and ready for your use. 1-7 7

Installing xCode from Terminal Reference: http://www.mactricksandtips.com/2010/02/installing-xcode.html 1-8 8

Inside the Terminal window Type: (do not type $) $xcode-select --install 1-9 9

Install the command line tools 1-10 10

How to install the g++ compiler in Mac OS? It comes with the Apple's XCode tools You can either download the full XCode environment including documentation (2.3GB) or download a stripped-down version that that is about 750MB. If you want to download the smaller version of XCode that doesn't include documentation, click on "Developer Downloads". (Much of the documentation will not be relevant to you when you are just starting to learn C++, and the Apple website itself already makes extensive documentation available.) Click on "Developer Tools" under the "Downloads" sidebar Search for the latest version of XCode (you want something like that looks like "XCode X.Y.Z Developer Tools", for example "XCode 3.2.2 Developer Tools") 1-11 11

Type in the Terminal window: (do not type $) Have you installed g++? Type in the Terminal window: (do not type $) $g++ --version 1-12 12

How to create a c++ project in xCode? Open xCode, then: “Tools -> C++ Tool” Reference: https://www.cs.drexel.edu/~mcs171/Wi07/extras/xCode_Instructions/index.html Reference: https://www.cs.drexel.edu/~mcs171/Wi07/extras/xCode_Instructions/index.html 1-13 13

Name and Path of the Project 1-14 14

What items are in myProject? In the "myProject" window, you will see that a program named "main.cpp" has been created and installed in the project by default. (Sometimes these wizards are a little too helpful, if you know what I mean.) This program almost certainly does not do what you want it to do, but it is a fully-functioning C++ program. This means you can compile and run it right now. Go ahead, if you must. We'll wait for you to get it out of your system. 1-15 15

You may change the name of the source code file select File->Save As... In the "myProject" window, you will see that a program named "main.cpp" has been created and installed in the project by default. (Sometimes these wizards are a little too helpful, if you know what I mean.) This program almost certainly does not do what you want it to do, but it is a fully-functioning C++ program. This means you can compile and run it right now. Go ahead, if you must. We'll wait for you to get it out of your system. 1-16 16

Modify your source code file 1-17 17

Compile and run your program 1-18 18

Watch this YouTube Video for more information on xCode https://www.youtube.com/watch?v=FzuDUnoNQo0 Length 8:24 1-19 19