このPC上に、Linux-IOCを構成、Ethernetをしゃべる機器(位相モニター)を制御するため、(現時点で)最新のEPICS-coreとasyncドライバー、sequencerをのせる手順を紹介します。
# setenv HOST_ARCH linux-x86 # mkdir /local/R314.7 # chown 自分:自分のグループ /local/R314.7このあと、baseを展開、makeします。
~% cd /local/R314.7 ~% zcat ~/download/baseR3.14.7.tar.gz |tar -xvf - ~% mv base-3.14.7 base ~% cd base ~% gmake ~% cd bin/linux-x86 ~% ln -s ../../config/tools/makeMakefile.pl . ~% ln -s ../../config/tools/installEpics.pl .下の2行は、未だに必要なようです。
自分のディレクトリで、開発用のディレクトリを作ります。まず、.cshrcの中に忘れずに
setenv HOST_ARCH linux-x86の記述を入れておきます。また、pathの中に
set path=($path /local/R314.7/base/bin/linux-x86 . )のように、コマンドの所にpathを通しておきます。 次に、開発用のディレクトリを作り、その下に環境を構成します。
~% cd ~% mkdir epicsApp ~% cd epicsApp ~% makeBaseApp.pl -t example fblinux ~% makeBaseApp.pl -i -t example fblinux ~% makeこうすると、episAppの下にfblinuxというsub directoryができ、各種example等が入った環境が出来ます。
~% cd /local/R314.7 ~% mkdir modules/soft ~% cd moduels/soft ~% zcat ~/download/asyn4-2-1.tar.gz |tar -xvf - ~% zcat ~/download/sncseq_cvs.tar.gz |tar -xvf -とそれぞれ展開し、それぞれのconfigureの中にあるRELEASEを編集します。
~% cd /local/R314.7/modules/soft/4-2-1/configure ~% emacs RELEASE & #EPICS_BASE=/usr/local/iocapps/R3.14.6/support/base/3-14-6-asd1 EPICS_BASE=/local/R314.7/base ~% cd /local/R314.7/modules/soft/seq/configure ~% emacs RELEASE & EPICS_BASE=/local/R314.7/baseこれで、それぞれをmakeします。
~% cd /local/R314.7/modules/soft/4-2-1 ~% make |&tee make.log ~% cd /local/R314.7/modules/soft/seq ~% make |&tee make.log次に、開発ディレクトリの設定をします。ここもRELEASEです。
~% cd ~/epicsApp/configure ~% emacs RELEASE & # If you don't want to install into $(TOP) then # define INSTALL_LOCATION_APP here #INSTALL_LOCATION_APP=<fullpathname> ASYN=/local/R314.7/modules/soft/4-2-1 #If using the sequencer, point SNCSEQ at its top directory: SNCSEQ=$(EPICS_BASE)/../modules/soft/seqまた、srcのMakefileも変更が必要です。
#---------------------------------------- # ADD MACRO DEFINITIONS AFTER THIS LINE #============================= ASYN = /local/R314.7/modules/soft/4-2-1/ ASYN_LIB = /local/R314.7/modules/soft/4-2-1/lib/linux-x86 ASYN_BIN = /local/R314.7/modules/soft/4-2-1/bin/linux-x86 fblinux_DBD += fblinuxInclude.dbdと、ライブラリの追加
#================================================== # Build an IOC support library LIBRARY_IOC += FBsupport # xxxRecord.h will be created from xxxRecord.dbd #DBDINC += xxxRecord # install devXxxSoft.dbd into <top>/dbd #DBD += xxxSupport.dbd # The following are compiled and added to the Support library FBsupport_SRCS += devB4phase.c #xxxSupport_SRCS += devXxxSoft.c FBsupport_LIBS += asyn FBsupport_LIBS += $(EPICS_BASE_IOC_LIBS) #=============================のような記述が必要となります。また、defaultで入っているxxxなんとかは不要なので、 Makefileから削除して、make cleanして、もう一度makeしておくと良いと思います。