EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Base on windows
From: [email protected]
To: [email protected]
Cc: [email protected]
Date: Wed, 28 Jul 2004 10:26:33 +1000



I've copied some instructions written by Eugene Tan from our team, who has
had EPICS 3.14.4 running on cygwin for some time.

**************************************************************
1)    You need the following applications installed in the CYGWIN
distribution â
a.    Make
b.    Gcc [or equivalent c compiler]
c.    Perl

2)    The following instructions will assume that the relent ENV variables
for the proper running of CYGWIN has been set and everything is working
fine.

3)    Put the EPICS base folder somewhere you want epics to run from
            bash-2.05b$ cd c:
            bash-2.05b$ mkdir epics
            bash-2.05b$      #â[copy the base tar file into âepicsâ dir] â
            bash-2.05b$ tar xf baseR3.14.4.tar
            bash-2.05b$ ls
            base-3.14.4
            bash-2.05b$ cd base-3.14.4
            bash-2.05b$ ls
            LICENSE  Makefile  README  config  configure  documentation
            src  startup
            bash-2.05b$

4)    NOTE: the installation directory path must not have white spaces in
them else you will encounter problems while compiling.
            Eg. C:\epics control\   youâll have problems with this
            Instead use C:\epics_control\

5)    Set the following environment variable EPICS_HOST_ARCH to
win32-x86-cygwin.  Done via [ControlPanel]->[Performanceâ]->[System];
Select the Advanced tab; go to the bottom button, EnvironmentVariables. OR
Right click on MyComputer; select properties; select the Advande tab; go to
the bottom button, EnvironmentVariables]

6)    Then type âmakeâ.
            bash-2.05b$ ls
            LICENSE  Makefile  README  config  configure  documentation
            src  startup
            bash-2.05b$ make
            make[1]: Entering directory
            `/cygdrive/c/et_home/install_files/epics_3_14_4/base
            -3.14.4/config'
            make -C O.win32-x86-cygwin -f ../Makefile TOP=../..
            T_A=win32-x86-cygwin install

            make[2]: Entering directory
            `/cygdrive/c/et_home/install_files/epics_3_14_4/base
            -3.14.4/config/O.win32-x86-cygwin'
            â.etcâ

            bash-2.05b$ ls
            LICENSE   README  config     dbd            html     lib
            startup
            Makefile  bin     configure  documentation  include  src
            templates
            bash-2.05b$ cd bin
            bash-2.05b$ ls
            win32-x86-cygwin
            bash-2.05b$ cd win32-x86-cygwin
            bash-2.05b$ pwd
            /cygdrive/c/epics/base-3.14.4/bin/win32-x86-cygwin
            bash-2.05b$

7)    You will get some warnings from the compiler about c++ comments and
some NULL string somewhere in the program. As far as I can tell its not a
problem.

8)    Then set the âbin/win32-x86-cygwinâ directory into the PATH
environment variable. I.e.
            C:\epics\base-3.14.4\bin\win32-x86-cygwin

9)    Then youâre all set. So far Iâve only run this as a stand-alone
system, without network connections to other systems. To do this youâll
have to set two other environment variables.
            EPICS_CA_AUTO_ADDR_LIST  NO
            EPICS_CA_ADDR_LIST  127.0.0.1 For more info look at some
            documentation found in C:\epics\base-3.14.4\html
      The first environment variable tells EPICS not to automatically
      detect a CA server and the second is to tell EPICS exactly which
      address to connect to.

10)   To test the system,
            bash-2.05b$ makeBaseApp.pl -l
            Valid application types are:
                    caClient
                    caServer
                    example
                    ioc
                    support
            Valid iocBoot types are:
                    example
                    ioc
            bash-2.05b$ makeBaseApp.pl ât example test
            bash-2.05b$ ls
            Makefile  configure  testApp
            bash-2.05b$ makeBaseApp.pl âi ât example test
            Using target architecture win32-x86-cygwin (only one available)
            bash-2.05b$ ls
            Makefile  configure  iocBoot  testApp
            bash-2.05b$ make
            make -C configure install
            make[1]: Entering directory `/cygdrive/c/epics/work1/configure'
            perl /cygdrive/c/epics/base-3.14.4
            /configure/tools/convertRelease.pl -h win32-x8
            6-cygwin checkRelease
            perl /cygdrive/c/epics/base-3.14.4
            /configure/tools/makeMakefile.pl O.win32-x86-c
            ygwin ../..
            mkdir O.Common
            make -C O.win32-x86-cygwin -f ../Makefile TOP=../..
            T_A=win32-x86-cygwin install
            âetcâ

            bash-2.05b$ ls
            Makefile  bin  configure  db  dbd  include  iocBoot  lib
            testApp
            bash-2.05b$ cd iocBoot/ioctest/
            bash-2.05b$ ls
            Makefile  README  envPaths  st.cmd
            bash-2.05b$ ../../bin/win32-x86-cygwin/test st.cmd Should be
            able to make st.cmd an executable using âchmodâ, however in the
            bash shell that I was using it didnât work. This method is an
            alternative. âtestâ is a shell executable created with the make
            command.
            < envPaths
            epicsEnvSet(ARCH,"win32-x86-cygwin")
            epicsEnvSet(IOC,"ioctest")
            epicsEnvSet(TOP,"c:/epics/work1")
            epicsEnvSet(EPICS_BASE,"/cygdrive/c/epics/base-3.14.4")
            cd c:/epics/work1
            dbLoadDatabase("dbd/test.dbd")
            test_registerRecordDeviceDriver(pdbbase)
            dbLoadRecords("db/dbExample1.db","user=Eugene TanHost")
            dbLoadRecords("db/dbExample2.db","user=Eugene
            TanHost,no=1,scan=1 second")
            dbLoadRecords("db/dbExample2.db","user=Eugene
            TanHost,no=2,scan=2 second")
            dbLoadRecords("db/dbExample2.db","user=Eugene
            TanHost,no=3,scan=5 second")
            dbLoadRecords("db/dbSubExample.db","user=Eugene TanHost")
            cd c:/epics/work1/iocBoot/ioctest
            iocInit()
            Starting iocInit
            ############################################################################
            ###  EPICS IOC CORE built on Nov 18 2003
            ###  EPICS R3.14.4 $R3-14-4$ $2003/09/23 21:35:11$
            ############################################################################
            iocInit: All initialization complete
            epics> dbl
            Eugene TanHost:aiExample
            Eugene TanHost:aiExample1
            Eugene TanHost:aiExample2
            Eugene TanHost:aiExample3
            Eugene TanHost:calcExample
            Eugene TanHost:calcExample1
            Eugene TanHost:calcExample2
            Eugene TanHost:calcExample3
            Eugene TanHost:compressExample
            Eugene TanHost:subExample
            Eugene TanHost:xxxExample
            epics>

11)   You now have EPICS running on CYGWIN!
**************************************************************

Steve Banks
Australian Synchrotron Project
Department of Infrastructure
Level 17, 80 Collins Street
Melbourne   VIC   3000
tel:  +613 9655 6303
fax:  +613 9655 8666
web: www.synchrotron.vic.gov.au



**********************************************************************
Any personal or sensitive information contained in this email and
attachments must be handled in accordance with the Victorian Information
Privacy Act 2000, the Health Records Act 2001 or the Privacy Act 1988
(Commonwealth), as applicable.

This email, including all attachments, is confidential.  If you are not the
intended recipient, you must not disclose, distribute, copy or use the
information contained in this email or attachments.  Any confidentiality or
privilege is not waived or lost because this email has been sent to you in
error.  If you have received it in error, please let us know by reply
email, delete it from your system and destroy any copies.
**********************************************************************


Navigate by Date:
Prev: RE: RTEMSfor MVME5500 Siddons, David
Next: Re: Base on windows guobao shen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Base on windows Mark Rivers
Next: R3.14.x & cmlog? Laznovsky, Michael
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·