| 51 | | 後で書く |
| | 60 | これで configure ディレクトリが出来るので、いつものように configure/RELEASEを編集 |
| | 61 | {{{ |
| | 62 | pi@raspberrypi:/opt/epics/R315.5/modules/soft/stream/2-7-7 $ vi configure/RELEASE |
| | 63 | |
| | 64 | SNCSEQ = $(EPICS_BASE)/../modules/soft/seq/2.2.4 |
| | 65 | ASYN = $(EPICS_BASE)/../modules/soft/asyn/4-31 |
| | 66 | }}} |
| | 67 | |
| | 68 | StreamDevice を github からダウンロード |
| | 69 | {{{ |
| | 70 | git clone https://github.com/paulscherrerinstitute/StreamDevice.git |
| | 71 | }}} |
| | 72 | |
| | 73 | あるいは https://github.com/paulscherrerinstitute/StreamDevice からzipでダウンロードした場合は適当なディレクトリに unzip し、 |
| | 74 | 先ほどの modules/soft/stream/2-7-7 へファイルを展開する |
| | 75 | {{{ |
| | 76 | pi@raspberrypi:/opt/epics/arc $ unzip StreamDevice-master.zip |
| | 77 | pi@raspberrypi:/opt/epics/arc/StreamDevice-master $ ls |
| | 78 | doc GNUmakefile Makefile src srcSynApps streamApp |
| | 79 | pi@raspberrypi:/opt/epics/arc/StreamDevice-master $ mv * /opt/epics/R315.5/modules/soft/stream/2-7-7/ |
| | 80 | }}} |
| | 81 | |
| | 82 | stream top にある GNUmakefile ファイルを削除 |
| | 83 | {{{ |
| | 84 | pi@raspberrypi:/opt/epics/R315.5/modules/soft/stream/2-7-7 $ rm GNUmakefile |
| | 85 | }}} |
| | 86 | |
| | 87 | stream topディレクトリの Makefile を編集する。 |
| | 88 | {{{ |
| | 89 | pi@raspberrypi:/opt/epics/R315.5/modules/soft/stream/2-7-7 $ vi Makefile |
| | 90 | |
| | 91 | TOP = .. |
| | 92 | ↓ |
| | 93 | TOP = . |
| | 94 | }}} |
| | 95 | 同様に、stream src ディレクトリ及び streamApp ディレクトリの Makefile も編集して TOP の定義を変更する。 |
| | 96 | {{{ |
| | 97 | pi@raspberrypi:/opt/epics/R315.5/modules/soft/stream/2-7-7 $ vi src/Makefile |
| | 98 | pi@raspberrypi:/opt/epics/R315.5/modules/soft/stream/2-7-7 $ vi streamApp/Makefile |
| | 99 | |
| | 100 | TOP=../.. |
| | 101 | ↓ |
| | 102 | TOP=.. |
| | 103 | |
| | 104 | }}} |
| | 105 | あとは make するのみ。 |
| | 106 | |
| | 107 | |
| | 108 | == devgpio, devi2c == |
| | 109 | wiki:epics/raspberrypi/setup_epics_i2c に記述予定。 |
| | 110 | |
| | 111 | |
| | 112 | == Application から stream, asyn を使うとき == |
| | 113 | application の configure/RELEASE ディレクトリで |
| | 114 | {{{ |
| | 115 | SNCSEQ = $(EPICS_BASE)/../modules/soft/seq/2.2.4 |
| | 116 | ASYN = $(EPICS_BASE)/../modules/soft/asyn/4-31 |
| | 117 | STREAM = $(EPICS_BASE)/../modules/soft/stream/2-7-7 |
| | 118 | DEVGPIO = $(EPICS_BASE)/../modules/soft/gpio/20160308 |
| | 119 | DRVASYNI2C = $(EPICS_BASE)/../modules/soft/i2c/20170603 |
| | 120 | }}} |
| | 121 | のように指定する。 |