Experimental Physics and Industrial Control System
guobao shen wrote:
Hello, everyone,
I have succeeded in building EPICS 3.14.4 base under Cygwin, windows 2000, but there is a problem when I
built an example. My steps are:
1. perl makeBaseApp.pl -t example example
2. perl makeBaseApp.pl -i -t example example
3. make
You need to give the full path to the perl script. Here's the output I obtained from building the example application on cygwin. No problems with building or running (well, link-edits are slooooow, but that may have more to do with our NFS setup than anything else).
BTW -- I've successfully built and run a cygwin IOC performing I/O to GPIB and serial devices using the soon-to-be-released asynDriver, devGpib and drvGenericSerial support.
--
Eric Norum [email protected]
Advanced Photon Source Phone: (630) 252-4793
Argonne National Laboratory
Norume@CTLPC20 ~/src/chk/epics
$ mkdir wex
Norume@CTLPC20 ~/src/chk/epics
$ cd wex
Norume@CTLPC20 ~/src/chk/epics/wex
$ ~/src/EPICS/base_R3_14_2_branch/bin/win32-x86-cygwin/makeBaseApp.pl -t exampl
e myExample
Norume@CTLPC20 ~/src/chk/epics/wex
$ ~/src/EPICS/base_R3_14_2_branch/bin/win32-x86-cygwin/makeBaseApp.pl -i -t exa
mple myExample
The following target architectures are available in base:
linux-x86
solaris-sparc
darwin-ppc
vxWorks-ppc604
vxWorks-ppc603
vxWorks-68040
win32-x86-cygwin
RTEMS-pc386
What architecture do you want to use? win32-x86-cygwin
Norume@CTLPC20 ~/src/chk/epics/wex
$ make
make -C configure install
make[1]: Entering directory `/cygdrive/p/src/chk/epics/wex/configure'
perl /home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/configure/tools/convertR
elease.pl -h win32-x86-cygwin checkRelease
perl /home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/configure/tools/makeMake
file.pl O.win32-x86-cygwin ../..
mkdir O.Common
make -C O.win32-x86-cygwin -f ../Makefile TOP=../.. T_A=win32-x86-cygwin install
make[2]: Entering directory `/cygdrive/p/src/chk/epics/wex/configure/O.win32-x86
-cygwin'
perl /home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/configure/tools/convertR
elease.pl -h win32-x86-cygwin CONFIG_APP_INCLUDE
perl /home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/configure/tools/convertR
elease.pl -h win32-x86-cygwin RULES_INCLUDE
make[2]: Leaving directory `/cygdrive/p/src/chk/epics/wex/configure/O.win32-x86-
cygwin'
make[1]: Leaving directory `/cygdrive/p/src/chk/epics/wex/configure'
make -C myExampleApp install
make[1]: Entering directory `/cygdrive/p/src/chk/epics/wex/myExampleApp'
make -C src install
make[2]: Entering directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/src'
perl /home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/configure/tools/makeMake
file.pl O.win32-x86-cygwin ../../..
mkdir O.Common
make -C O.win32-x86-cygwin -f ../Makefile TOP=../../.. T_A=win32-x86-cygwin inst
all
make[3]: Entering directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/src/O.wi
n32-x86-cygwin'
make[3]: Leaving directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/src/O.win
32-x86-cygwin'
make[3]: Entering directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/src/O.wi
n32-x86-cygwin'
Expanding dbd
/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/bin/win32-x86-cygwin/dbExpand
.exe -I . -I .. -I ../../../dbd -I /home/phoebus/NORUME/src/EPICS/base_R3_14_2_
branch/dbd -o ../O.Common/myExample.dbd ../myExampleInclude.dbd
Installing dbd file ../../../dbd/xxxSupport.dbd
mkdir ../../../dbd
Installing dbd file ../../../dbd/myExample.dbd
Installing dbd file ../../../dbd/xxxRecord.dbd
/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/bin/win32-x86-cygwin/dbToReco
rdtypeH.exe -I . -I .. -I ../../../dbd -I /home/phoebus/NORUME/src/EPICS/base_R
3_14_2_branch/dbd ../xxxRecord.dbd ../O.Common/xxxRecord.h
Installing generated generic include file ../../../include/xxxRecord.h
mkdir ../../../include
gcc -c -D_POSIX_THREADS -D_POSIX_TIMERS -D_X86_ -DUNIX -DCYGWIN32 -U_
WIN32 -pedantic -O3 -Wall -I. -I.. -I../../../include/os/cygwin32
-I../../../include -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/
os/cygwin32 -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include
../xxxRecord.c
In file included from ../xxxRecord.c:15:
/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/devSup.h:50:3: warnin
g: C++ style comments are not allowed in ISO C89
/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/devSup.h:50:3: warnin
g: (this will be reported only once per input file)
gcc -c -D_POSIX_THREADS -D_POSIX_TIMERS -D_X86_ -DUNIX -DCYGWIN32 -U_
WIN32 -pedantic -O3 -Wall -I. -I.. -I../../../include/os/cygwin32
-I../../../include -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/
os/cygwin32 -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include
../devXxxSoft.c
In file included from ../devXxxSoft.c:15:
/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/devSup.h:50:3: warnin
g: C++ style comments are not allowed in ISO C89
/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/devSup.h:50:3: warnin
g: (this will be reported only once per input file)
ar -rc libxxxSupport.a xxxRecord.o devXxxSoft.o
ranlib libxxxSupport.a
Installing library ../../../lib/win32-x86-cygwin/libxxxSupport.a
mkdir ../../../lib
mkdir ../../../lib/win32-x86-cygwin
ranlib ../../../lib/win32-x86-cygwin/libxxxSupport.a
perl /home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/bin/win32-x86-cygwin/reg
isterRecordDeviceDriver.pl ../O.Common/myExample.dbd myExample_registerRecordDev
iceDriver > myExample_registerRecordDeviceDriver.cpp
g++ -c -D_POSIX_THREADS -D_POSIX_TIMERS -D_X86_ -DUNIX -DCYGWIN32 -U_
WIN32 -pedantic -O3 -Wall -I. -I.. -I../../../include/os/cygwin32
-I../../../include -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/
os/cygwin32 -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include
myExample_registerRecordDeviceDriver.cpp
gcc -c -D_POSIX_THREADS -D_POSIX_TIMERS -D_X86_ -DUNIX -DCYGWIN32 -U_
WIN32 -pedantic -O3 -Wall -I. -I.. -I../../../include/os/cygwin32
-I../../../include -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/
os/cygwin32 -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include
../dbSubExample.c
g++ -c -D_POSIX_THREADS -D_POSIX_TIMERS -D_X86_ -DUNIX -DCYGWIN32 -U_
WIN32 -pedantic -O3 -Wall -I. -I.. -I../../../include/os/cygwin32
-I../../../include -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include/
os/cygwin32 -I/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/include
../myExampleMain.cpp
g++ -o myExample.exe -L/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/lib/w
in32-x86-cygwin/ -Lp:/src/chk/epics/wex/lib/win32-x86-cygwin// m
yExample_registerRecordDeviceDriver.o dbSubExample.o myExampleMain.o -lxxxSup
port -lrecIoc -lsoftDevIoc -ltestDevIoc -liocsh -lmiscIoc -lrsrvIoc -ldbtoolsIoc
-lasIoc -ldbIoc -lregistryIoc -ldbStaticIoc -lca -lCom -lm
Installing binary ../../../bin/win32-x86-cygwin/myExample.exe
mkdir ../../../bin
mkdir ../../../bin/win32-x86-cygwin
make[3]: Leaving directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/src/O.win
32-x86-cygwin'
make[2]: Leaving directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/src'
make -C Db install
make[2]: Entering directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/Db'
perl /home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/configure/tools/makeMake
file.pl O.win32-x86-cygwin ../../..
mkdir O.Common
make -C O.win32-x86-cygwin -f ../Makefile TOP=../../.. T_A=win32-x86-cygwin inst
all
make[3]: Entering directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/Db/O.win
32-x86-cygwin'
Installing db file ../../../db/dbExample1.db
mkdir ../../../db
Installing db file ../../../db/dbExample2.db
Installing db file ../../../db/dbSubExample.db
make[3]: Leaving directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/Db/O.win3
2-x86-cygwin'
make[2]: Leaving directory `/cygdrive/p/src/chk/epics/wex/myExampleApp/Db'
make[1]: Leaving directory `/cygdrive/p/src/chk/epics/wex/myExampleApp'
make -C iocBoot install
make[1]: Entering directory `/cygdrive/p/src/chk/epics/wex/iocBoot'
make -C iocmyExample install
make[2]: Entering directory `/cygdrive/p/src/chk/epics/wex/iocBoot/iocmyExample'
perl /home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch/configure/tools/convertR
elease.pl -a win32-x86-cygwin envPaths
make[2]: Leaving directory `/cygdrive/p/src/chk/epics/wex/iocBoot/iocmyExample'
make[1]: Leaving directory `/cygdrive/p/src/chk/epics/wex/iocBoot'
Norume@CTLPC20 ~/src/chk/epics/wex
$ cd iocBoot/iocmyExample/
Norume@CTLPC20 ~/src/chk/epics/wex/iocBoot/iocmyExample
$ ../../bin/win32-x86-cygwin/myExample.exe st.cmd
< envPaths
epicsEnvSet(ARCH,"win32-x86-cygwin")
epicsEnvSet(IOC,"iocmyExample")
epicsEnvSet(TOP,"p:/src/chk/epics/wex")
epicsEnvSet(EPICS_BASE,"/home/phoebus/NORUME/src/EPICS/base_R3_14_2_branch")
cd p:/src/chk/epics/wex
dbLoadDatabase("dbd/myExample.dbd")
myExample_registerRecordDeviceDriver(pdbbase)
dbLoadRecords("db/dbExample1.db","user=NorumeHost")
dbLoadRecords("db/dbExample2.db","user=NorumeHost,no=1,scan=1 second")
dbLoadRecords("db/dbExample2.db","user=NorumeHost,no=2,scan=2 second")
dbLoadRecords("db/dbExample2.db","user=NorumeHost,no=3,scan=5 second")
dbLoadRecords("db/dbSubExample.db","user=NorumeHost")
cd p:/src/chk/epics/wex/iocBoot/iocmyExample
iocInit()
Starting iocInit
############################################################################
### EPICS IOC CORE built on Nov 12 2003
### EPICS R3.14.4 $$Name: $$ $$Date: 2003/09/23 21:35:11 $$
############################################################################
iocInit: All initialization complete
epics> dbl
NorumeHost:aiExample
NorumeHost:aiExample1
NorumeHost:aiExample2
NorumeHost:aiExample3
NorumeHost:calcExample
NorumeHost:calcExample1
NorumeHost:calcExample2
NorumeHost:calcExample3
NorumeHost:compressExample
NorumeHost:subExample
NorumeHost:xxxExample
epics> dbpr NorumeHost:aiExample
ASG: DESC: Analog input DISA: 0 DISP: 0
DISV: 1 NAME: NorumeHost:aiExample RVAL: 0
SEVR: MINOR STAT: LOW SVAL: 0 TPRO: 0
VAL: 4
epics> exit
Norume@CTLPC20 ~/src/chk/epics/wex/iocBoot/iocmyExample
- References:
- Help about building a example under cygwin guobao shen
- Navigate by Date:
- Prev:
3.13.6/3.13.8 Client/Server compilations with gcc Rosemary Alles
- Next:
Re: Help about building a example under cygwin Andrew Johnson
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
Re: Help about building a example under cygwin Andrew Johnson
- Next:
National Instruments VME-MXI-1 modules vs. modern VME CPU modules Eric Norum
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025