PC
instructions are given first, followed by instructions for the Mac.
Part 1
- Installing the EAS230 programming environment on a Windows PC (Mac
instructions below)
It is
recommended that you create a RESTORE POINT, in case you have to undo the changes.
Do this under
Control
Panel / System / System Protection / “Create restore point right now for drives
that have system protection turned on”
Step 1: Download and Install JGrasp for editing programs – http://jgrasp.org
Step 2:
Download and Install the JAVA programming environment (needed to run JGrasp). You’ll need the JDK (“Java Development Kit”).
from http://www.oracle.com/technetwork/java/javase/downloads/index.html
Click
“Download” (above) and you’ll see more selections….
You’ll
need the Windows x86 version for 32-bit computers, or
the x64 version for 64-bit computers.
(Note: if you have an
“older” PC, your computer is probably 32-bit. Look for the special ** notes below)
Step 3: Download
and Install the C++ programming environment from the class web
site: mingw-get-setup.exe
(** Note:
if you have an “older” PC, your computer is probably 32-bit. The compiler for
32-bit is here: http://www.cse.buffalo.edu/~mikeb/full.exe
)
This actually installs the installer, which you then run to
install the C++ compiler.
On the next screen, take the defaults and continue
Now, select the basic, gcc-bin, gcc-dev,
g++ bin, and g++ dev installations (see 5 items
below):
Then, APPLY CHANGES (this takes a long time to
finish)
The C++ program is called g++ (or sometimes gcc). After installing g++, you’ll need to locate where the
bin folder was created for the g++ installation. It was created in the
following path:
;C:\MinGW\bin;
(** Note: if you have an “older” PC, your computer is
probably 32-bit, and your path will be: ;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin; )
You
now should add it to the PATH environment
variable. You do that by following:
Start
-> Control Panel -> System -> Advanced -> Environment Variables
At this point you can see the PATH
variable in the System Variables box (the bottom, NOT the User Variables
part).
Add the g++ path into the end of the PATH
variable VALUE (not the name). You add it to the end of the existing
value separated by a semicolon (';').
WARNING: Make sure that you do not lose the original value. You
are just appending more to the end separated by a semicolon.
Part 2 -
Installing the EAS230 Programming Environment on a Mac.
Step 1: Download and Install XCode from Apple. You will need to create an Apple ID (and for older XCode versions, a Developer ID), but those are benign.
Start here: https://developer.apple.com/support/xcode/
Download location: http://itunes.apple.com/us/app/xcode/id497799835?mt=12&v0=WWW-NAUS-ITUHOME-NEWAPPLICATIONS&ign-mpt=uo=2
For Mac, here is an older (but adequate) version of XCode, free and able to run on OS versions prior to Snow
Leopard: XCode 3
In XCode, you must download and
install the command-line tools. Under the XCode pull
down menu, select
XCode - Preferences, and
then the Downloads tab.
Install the Command Line tools
An alternate means of getting a C++ compiler on the Mac,
without XCode:
Step 2 – Download and install JGrasp for the Mac from http://jgrasp.org
Step 3: enjoy