diff --git a/README.cygwin32 b/README.cygwin32 new file mode 100644 index 000000000..3be72e9ce --- /dev/null +++ b/README.cygwin32 @@ -0,0 +1,82 @@ +Compiling EPICS on cygwin32 (Windows95/NT) +--------------------------------------- + +Right now this port of EPICS to cygwin32 it is possible to + +* compile all of EPICS base except c++ files using Cygnus' beta18 + release of the GNU-win32 tools. + +To build EPICS on Win95 or NT using cygwin32, we need + + EPICS base distribution, R3.12.0.beta9 or later, available + from http://aps.anl.gov/... + Cygnus's latest gnu-win32 distribution, available from + http://www.cygnus.com/misc/gnu-win32/ (release b18 or later) + WindRiver Systems Tornado ( for the vxWorks header files and the + vxWorks and vxWorks.sym files) (version 1.1 or later) + Perl,version 5.003 or later, available from + http://www.perl.org/CPAN/ports/win32/ + +Optional items + CVS, version 1.9 or later, available from + http:/www.cyclic.com + vim ( Vi IMproved), version 4.5 or later, available from + http://www.cygnus.com/misc/gnu-win32/ + + +BUILD INSTRUCTIONS +------------------ + + +1) Install the gnu-win32 binary release +--------------------------------------- + Download the whole release to get the developemnt tools + + Run cdk.exe and follow the install instructions. + Install the release into c:\usr\local instead of the + default directory (:\gnuwin32\b18) + (The following steps assume that the install location is + c:\usr\local) + + Don't forget to create a \tmp dir and setup the \bin dir. + (Create a \temp dir if you install cvs.) + mkdir \tmp + mkdir \temp + mkdir \bin + cd \bin + copy \usr\local\H-i386-cygwin32\bin\bash.exe sh.exe + + +2) Install the perl distribution +-------------------------------- + +3) Install the epics base distribution +-------------------------------------- + + mkdir + chdir + cp \.Tar.gz . + gunzip -d .Tar.gz + tar xvf .Tar + +4) Set environment variables and path +------------------------------------- + cd + cygwin32.bat + +7) Build epics base +------------------- + + cd + make + +8) Create an EPICS application area +----------------------------------- + + mkdir + cd + \bin\cygwin32\makeBaseApp + + + + diff --git a/cygwin32.bat b/cygwin32.bat new file mode 100644 index 000000000..323222c02 --- /dev/null +++ b/cygwin32.bat @@ -0,0 +1,79 @@ +@ECHO OFF +REM ---------------- cygwin32 ------------------ +REM A \tmp directory is needed +REM \bin needed in path before windows dirs +REM . needed in path by bash + +set PATH=c:\bin;c:\usr\local\h-i386-cygwin32\bin;. + +REM -------------- windows ------------------ + +set PATH=%PATH%;C:\WINDOWS;C:\WINDOWS\COMMAND + +REM ---------------CVS------------------- +REM Cvs settings (not needed for base build) +REM rcs needs a c:\temp directory +REM set CVSROOT=/cvsroot +REM set LOGNAME=janet +REM set PATH=%PATH%;C:\cyclic\cvs-1.9\bin; + + +REM -----------------extra path dirs ----------------- +REM Extra path settings (not needed for base build) +REM +REM For 'which' and other unix tools not included in cygwin32 +REM set PATH=%PATH%;C:\unix\VIRTUNIX\32-BIT;C:\VIRTUNIX\16-BIT +REM set PATH=%PATH%;C:\unix\UTEXAS\BIN +REM set PATH=%PATH%;c:\util + +REM ----------------- epics ----------------- + +set HOST_ARCH=cygwin32 + +REM ---------------------------------- +REM Following 3 defs may be needed if cygwin32 not in \usr\local +REM +REM set C_INCLUDE_PATH= +REM set CPLUS_INCLUDE_PATH= +REM set LIBRARY_PATH= +REM ---------------------------------- + + +REM ----------------- cygwin32: gcc ----------------- +REM Trailing slash is important + +set GCC_EXEC_PREFIX=C:\usr\local\H-i386-cygwin32\lib\gcc-lib\ + +REM ----------------- cygwin32: bash ----------------- +REM bash settings (not needed for base build) +REM +REM TERMCAP, HOME, and TERM needed for bash (.bashrc) +REM set TERMCAP=/usr/local/h-i386-cygwin32/etc/termcap +REM set TERM=ansi +REM set HOME=/ + +REM ------------ Channel Access --------------- +REM Channel access settings (not needed for base build) +REM +REM set EPICS_CA_ADDR_LIST="" +REM set EPICS_CA_AUTO_CA_ADDR_LIST=YES +REM set EPICS_CA_CONN_TMO=30.0 +REM set EPICS_CA_BEACON_PERIOD=15.0 +REM set EPICS_CA_REPEATER_PORT=5065 +REM set EPICS_CA_SERVER_PORT=5064 +REM set EPICS_TS_MIN_WEST=420 + +REM --------------- perl ------------------------ + +set PATH=%path%;C:\perl\pw32i304\bin +set PERLLIB=C:\perl\pw32i304\lib + +REM --------------- tcl ------------------------ +REM tcl/tk settings ( not needed for base build) +REM +REM set PATH=%PATH%;C:\usr\local\tcl\bin +REM Forward slashes in following 2 lines are important +REM set TCL_LIBRARY=C:/usr/local/tcl/lib/tcl7.6 +REM set GDBTK_LIBRARY=C:/usr/local/share/gdbtcl + +