The Cygwin toolkit provides Unix tools on the Windows platform. You need only install the Cygwin toolkit if you are rebuilding from source and intend to develop your own actors using Java.
Note that compile your own actors, you will also need the
javac compiler. The
is part of the JDK, which is available at:
javac compiler is not present in the
Java Runtime Environment (JRE)
The Cygwin home page is at
Complete installation instructions can be found at
Installing Cygwin from the self-extracting executable
Compiling the Ptolemy II Matlab interface and Java Native
Interface (JNI) actor requires that the a C compiler be installed.
The Matlab interface requires that Matlab be installed on the local machine.
The gcc compiler is fairly large, so we provide three separate self-extracting downloads of the cygwin tools for Windows.
cygwin100706basic.exe(19.5 Mb) - The tools necessary to compile and configure Ptolemy II except for the Matlab interface.
cygwin100706devel.exe(65.9 Mb) - The tools necessary to compile and configure Ptolemy II including the Matlab interface and the JNI Actor. This download includes everything in
The sources for the above downloadables can be found in
cygwin100706develsrc.exe (229.6 Mb)
Cygwin Installation instructions
- Most Ptolemy II users will
Download and execute
If you are running under Windows and have Matlab installed on your local machine, then
Download and execute
The files will be extracted to an seemingly arbitrary directory. You may find it easier to change the directory to something short, like
setup.exeshould start up automatically for you.
- Click on
Install from Local Directoryshould already be selected for your. Click on
- Keep the default of
Select Root Install Directory.
Keep the default
Default Text File Typeto
(If you select Unix instead of DOS, then you will likely have Cygwin CR/NL problems with CVS)
and then click on
- Keep the default for
Local Package Directoryand click on
Select packages to installwindow will come up with the default settings, we need to change from
installclick on the word
defaultthat is to the right of
All. The subpages should then change from
Install. In the screen shot below, we have just clicked on
Next, which will install all the packages.
Create Desktop Iconand
Add to Start Menuaccording to your preferences.
- Remove the temporary directory where you extracted the files.
c:/cygwin/etc/passwdis created during the Cygwin installation. If your Windows account is a domain account and not a local account, then you may need to add an entry to
To do this, start up the Cygwin bash shell with Start ->?Cygwin
Then use the
mkpasswdcommand to append a line with your login information, for example, I used:
mkpasswd -l > /etc/passwd mkpasswd -d -u cxh --path-to-home=/cygdrive/c/users >> /etc/passwd
mkpasswd -hwill print out help for the
- Follow the instructions in the
Set the value of the
PTIIenvironment variable section
Installing Cygwin from the WebWe provide prebuilt downloads of the subset of Cygwin tools needed to recompile Ptolemy II. The Cygwin tools are constantly being updated, for the latest versions, see the Cygwin website.
Instructions for installing Cygwin from the Cygwin website can be found on the for Ptolemy II Installation Page
Enabling Copy in Cygwin Bash under XPYou may need to enable copy and paste in the bash shell window.
If copy and paste are working properly, then you should be able to highlight text by left clicking and dragging the mouse over the text and then hitting the Enter key to copy the highlighted text.
The Cygwin faq at
How can I copy and paste into Cygwin console windows?More precisely:
Under Windows NT, open the properties dialog of the console window. The options contain a toggle button, named "Quick edit mode". It must be ON. Save the properties.
Under Windows 9x, open the properties dialog of the console window. Select the Misc tab. Uncheck Fast Pasting. Check QuickEdit.
You can also bind the insert key to paste from the clipboard by adding the following line to your .inputrc file:"\e[2~": paste-from-clipboard
- Start up bash by doing Start -> Programs -> Cygwin -> Cygwin Bash Shell.
- Right click on the icon in the upper left of the title bar and select properties
- Under Options, select 'QuickEdit Mode', hit ok
- Select 'Modify shortcut that started this window', hit ok
Cygwin download contents
The download of basic cygwin tools from April, 2008 includes:
alternatives-1.3.29a-1 ash-20040127-3 required by cvs base-files-3.7-1 base-passwd-2.2-1 bash-220.127.116.11 binutils-20060817-1 bzip2-1.0.5-2 coreutils-6.10.1 crypt-1.1-1 required by cvs cvs-1.11.12-1 cygutils-1.34-1 cygutils-1.3.2-1 cygwin-1.5.25-11 cygwin-doc-1.4.4 diffutils-2.8.7-1 editrights-1.01-2 expat-1.95.8-2 findutils-4.4.0-1 gawk-3.1.6-1 gdbm-1.8.3-8 grep-2.5.1a-4 groff-1.18.1-2 gzip-1.3.12-2 less-381-2 libbz2_1-1.0.5-2 required by tar libcharset1-1.11-1 libdb4.2-4.2.52-1 libdb4.3-4.3.28-1 libexpat0-1.95.8-2 libgdbm-1.8.0-5 libgdbm-devel-1.8.3-7 required by cvs libgdbm3-1.8.3-3 libgdbm4-1.8.3-8 libiconv-1.11.1-2 libiconv2-1.9.2-2 required by sed libintl-0.10.38-3 libintl1-0.12.1-3 libintl2-0.14.5-1 libintl3-0.15-1 libncurses5-5.2-1 libncurses6-5.2-8 libncurses7-5.3-4 libncurses8-5.5-3 libpcre0-7.2.1 Required by less (pcre = Perl Compatible regex) libpopt0-1.6.4-4 libreadline4-4.1-2 libreadline5-4.3-5 libreadline6-5.2.12-10 login-1.9-7 optional make-3.81-2 man-1.6e1 minires-1.00-1 Required by openssh ncurses-5.5.2 openssh-5.0p1-1 Used by cvs openssl-0.9.8g-1 Required by openssh openssl097-0.9.7j-1 readline-5.0-1.tar.bz2 run-1.1.10-1 sed-4.1.5-2 tar-1.19.90-1 termcap-20050421-1 terminfo-5.5_20060323-1 texinfo-4.8a-1 tzcode-2007h-2 which-1.19-1 zlib-1.2.3-1
The download of devel cygwin tools from October 10, 2006, includes all the tools from the basic cygwin download listed above and
autoconf-2.59-2 autoconf-devel-2.59-2 autoconf-stable-2.131 binutils-20041229-1.tar.bz2 gcc-3.4.4-2 gcc-core-3.4.4-1 Matlab interface uses a C++ file gcc-g++-3.4.4-1 gcc-mingw-core-20050522-1 gcc-mingw-g++-20050522-1 m4-1.4.7-1 mingw-runtime-3.10-1 mktemp-1.5-3 perl-5.8.7-5 sadly, autoconf requires perl w32api-3.7.1In addition, we include select tools for Viptos, the Ptolemy/TinyOS interface.
automake-1.5 or later (1.9.6 preferred) bison emacs emacs-el gperf rpm