Scribbler 2
MyroC Installation and Comments for Mac OS X

Materials to Support a C-based Course with Scribbler 2 Robots
Scribbler 2
 
 

Getting Started with MyroC on Mac OS X

Using MyroC in a Mac OS X environment requires initial, one-time only setup. Thereafter, programming follows a traditional edit-compile-run cycle.

The main online site for the MyroC infrastructure, instructions, documentation, and commentary may be found at http://www.cs.grinnell.edu/~walker/MyroC/.

License

All MyroC software is distributed without warranty.

MyroC software is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 International License. According to this license, you are free to share (copy and redistribute) and adapt (modify or expand) the MyroC infrastructure, provided

Additional License details may be found at http://creativecommons.org/licenses/by-nc-sa/4.0/ .

Setting Up a Mac OS X Environment

Use the development MyroC release, MyroC.3.1, when working with Mac OS X.

Set up proceeds in two main steps:

  1. Download and install eSpeak, the eSpeakPackage, libjpeg, and MyroC, following the Installation Commentary and Guide for Macintosh at http://www.cs.grinnell.edu/~walker/MyroC/macintosh/myroc-installation-notes-mac.php?MyroC_release=3.1&MyroC_subrelease=b&eSpeak_release=2.0
  2. Establish a Bluetooth pairing between your Scribbler 2 and your Macintosh computing, following the Bluetooth Setup for Macintosh Workstations/Laptops at http://www.cs.grinnell.edu/~walker/MyroC/macintosh/bluetooth-macintosh-notes.html.

Creating and Running C Programs with MyroC

Working with C programs utilizing MyroC involves a traditional edit-compile-run cycle.

  1. Open a Terminal window: Much work is most conveniently done within a Terminal window. Within the Apple Finder, click on Applications, scroll down to Utilities, and the double-click on Terminal.app.

  2. Create a project directory: Using the Apple Finder, create a directory for your C programs. Then, within a Terminal window, use cd commands to move level-by-level to the project directory.

  3. Establish a Makefile: Copy the Makefile from the test-programs directory created during MyroC installation and testing.

    Be sure the Makefile comes from test-programs, not the directory containing the MyroC code that was compiled and installed!

  4. Creating and Editing a C Program: Use any editor to create and edit a file containing your C program, provided the created file is simple-text only. Do not save the program in .rtf, .pages, or other formatted format!

  5. Compiling the Program: Once creating the program, save in the project directory (the one with the Makefile, and compile with the command

          make yourprogram
        

    When using make, reference the program name, without the ".c" at the end. For example, to compile prog.c, type make prog

  6. Running the Program: Run the program by typing its name (without the .c) in the Terminal window.

Feedback and Difficulties

Contact Henry M. Walker, if/when you encounter difficulties or if you have suggestions.