34 | | {{{ |
35 | | root@beaglebone:~# cd /opt/epics |
36 | | root@beaglebone:/opt/epics# mkdir -p R315.5/src |
37 | | root@beaglebone:/opt/epics# cd R315.5/src |
38 | | root@beaglebone:/opt/epics/R315.5/src# wget https://www.aps.anl.gov/epics/download/base/base-3.15.5.tar.gz |
39 | | root@beaglebone:/opt/epics/R315.5/src# cd .. |
40 | | root@beaglebone:/opt/epics/R315.5# tar zxvf base-3.15.5.tar.gz |
41 | | root@beaglebone:/opt/epics/R315.5# mv base-3.15.5 base |
42 | | root@beaglebone:/opt/epics/R315.5# cd base |
43 | | root@beaglebone:/opt/epics/R315.5/base# make |
44 | | }}} |
45 | | |
46 | | == modules/soft == |
47 | | |
48 | | 次によく使うmodulesをインストール。 |
49 | | |
50 | | {{{ |
51 | | root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft |
52 | | }}} |
53 | | |
54 | | === sequencer === |
55 | | |
56 | | インストール前にパッケージをインストール。 |
57 | | |
58 | | {{{ |
59 | | root@beaglebone:/opt/epics/R315.5# apt-get install re2c |
60 | | }}} |
61 | | |
62 | | 展開してmake。 |
63 | | |
64 | | {{{ |
65 | | root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft/seq |
66 | | root@beaglebone:/opt/epics/R315.5# cd src |
67 | | root@beaglebone:/opt/epics/R315.5/src# wget http://www-csr.bessy.de/control/SoftDist/sequencer/releases/seq-2.2.4.tar.gz |
68 | | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/soft/seq |
69 | | root@beaglebone:/opt/epics/R315.5/modules/soft/seq# tar zxvf /opt/epics/R315.5/src/seq-2.2.4.tar.gz |
70 | | root@beaglebone:/opt/epics/R315.5/modules/soft/seq# mv seq-2.2.4 2.2.4 |
71 | | root@beaglebone:/opt/epics/R315.5/modules/soft/seq# cd 2.2.4/ |
72 | | root@beaglebone:/opt/epics/R315.5/modules/soft/seq/2.2.4# emacs -nw configure/RELEASE |
73 | | |
74 | | EPICS_BASE=/opt/epics/R315.5/base |
75 | | |
76 | | root@beaglebone:/opt/epics/R315.5/modules/soft/seq/2.2.4# make |
77 | | }}} |
78 | | |
79 | | === asyn === |
80 | | |
81 | | asynも普通にmakeできる。 |
82 | | |
83 | | {{{ |
84 | | root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft/asyn |
85 | | root@beaglebone:/opt/epics/R315.5# cd src |
86 | | root@beaglebone:/opt/epics/R315.5/src# wget https://www.aps.anl.gov/epics/download/modules/asyn4-31.tar.gz |
87 | | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/soft/asyn |
88 | | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn# tar zxvf /opt/epics/R315.5/src/asyn4-31.tar.gz |
89 | | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn# mv asyn4-31 4-31 |
90 | | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn# cd 4-31/ |
91 | | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn/4-31# emacs -nw configure/RELEASE |
92 | | |
93 | | #RELEASE Location of external products |
94 | | |
95 | | #SUPPORT=/corvette/home/epics/devel |
96 | | #-include $(TOP)/../configure/SUPPORT.$(EPICS_HOST_ARCH) |
97 | | |
98 | | # IPAC is only necessary if support for Greensprings IP488 is required |
99 | | # IPAC release V2-7 or later is required. |
100 | | #IPAC=$(SUPPORT)/ipac-2-14 |
101 | | |
102 | | # SEQ is required for testIPServer |
103 | | #SNCSEQ=$(SUPPORT)/seq-2-2-4 |
104 | | SNCSEQ=$(EPICS_BASE)/../modules/soft/seq/2.2.4/ |
105 | | |
106 | | # EPICS_BASE 3.14.6 or later is required |
107 | | #EPICS_BASE=/corvette/usr/local/epics-devel/base-3.15.5 |
108 | | EPICS_BASE=/opt/epics/R315.5/base |
109 | | -include $(TOP)/../configure/EPICS_BASE.$(EPICS_HOST_ARCH) |
110 | | |
111 | | root@beaglebone:/opt/epics/R315.5/modules/soft/asyn/4-31# make |
112 | | }}} |
113 | | |
114 | | === streamdevice === |
115 | | |
116 | | streamdeviceも同じ。[[br]] |
117 | | 但し、streamdeviceはgitHubに入っているので、masterをダウンロード。 |
118 | | |
119 | | {{{ |
120 | | root@beaglebone:/opt/epics/R315.5# mkdir -p modules/soft/stream |
121 | | root@beaglebone:/opt/epics/R315.5# cd src |
122 | | root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/paulscherrerinstitute/StreamDevice/archive/master.zip |
123 | | root@beaglebone:/opt/epics/R315.5/src# mv master.zip streamdevice.zip |
124 | | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/soft/stream |
125 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# unzip ../../../src/streamdevice.zip |
126 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# mv StreamDevice-master 2.7.7 |
127 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cd 2.7.7/ |
128 | | |
129 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# export PATH=/opt/epics/R315.5/base/bin/linux-arm:$PATH |
130 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# makeBaseApp.pl -t support |
131 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# emacs -nw configure/RELEASE |
132 | | |
133 | | SNCSEQ = $(EPICS_BASE)/../modules/soft/seq/2.2.4/ |
134 | | ASYN = $(EPICS_BASE)/../modules/soft/asyn/4-31 |
135 | | |
136 | | ここで、/opt/epics/R315.5/modules/soft/stream/2.7.7以下の各ディレクトリにあるMakefileのTOPを変更。 |
137 | | |
138 | | TOP=.. -> TOP=. |
139 | | TOP=../.. -> TOP=./.. |
140 | | |
141 | | |
142 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7# make |
143 | | }}} |
144 | | |
145 | | |
146 | | == modules/instruments == |
147 | | |
148 | | BBBのIOを使うために専用(?)のmoduleをmakeする。[[br]] |
149 | | 展開するディレクトリを作成。 |
150 | | |
151 | | {{{ |
152 | | root@beaglebone:/opt/epics/R315.5/modules# mkdir -p instruments/bbb |
153 | | }}} |
154 | | |
155 | | === devgpio === |
156 | | |
157 | | GPIOを使うためのドライバサポート。[[br]] |
158 | | gitHubからダウンロード。 |
159 | | |
160 | | {{{ |
161 | | root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/ffeldbauer/epics-devgpio/archive/master.zip |
162 | | root@beaglebone:/opt/epics/R315.5/src# mv master.zip bbb_devgpio.zip |
163 | | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/instruments/bbb |
164 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# unzip ../../../src/bbb_devgpio.zip |
165 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# mv epics-devgpio-master devgpio |
166 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# cd devgpio |
167 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/devgpio# emacs -nw configure/RELEASE |
168 | | |
169 | | SNCSEQ=$(EPICS_BASE)/../modules/soft/seq/2.2.4 |
170 | | |
171 | | # EPICS_BASE usually appears last so other apps can override stuff: |
172 | | EPICS_BASE=/opt/epics/R315.5/base |
173 | | |
174 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/devgpio# make |
175 | | }}} |
176 | | |
177 | | === drvAsynI2C === |
178 | | |
179 | | 今度はI2Cを使うためのドライバサポート。[[br]] |
180 | | asynとstreamdeviceでI2Cが使えるようになる。[[br]] |
181 | | これもgitHubからダウンロード。[[br]] |
182 | | |
183 | | {{{ |
184 | | root@beaglebone:/opt/epics/R315.5/src# wget https://github.com/ffeldbauer/drvAsynI2C/archive/master.zip |
185 | | root@beaglebone:/opt/epics/R315.5/src# mv master.zip bbb_asyni2c.zip |
186 | | root@beaglebone:/opt/epics/R315.5/src# cd ../modules/instruments/bbb |
187 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# unzip ../../../src/bbb_asyni2c.zip |
188 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# mv drvAsynI2C-master drvAsynI2C |
189 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb# cd drvAsynI2C |
190 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# emacs -nw configure/RELEASE |
191 | | |
192 | | EPICS_BASE=/opt/epics/R315.5/base |
193 | | ASYN=$(EPICS_BASE)/../modules/soft/asyn/4-31 |
194 | | |
195 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# make |
196 | | }}} |
197 | | |
198 | | このままの状態ではstreamdeviceを使った通信ができないので、一緒に入っているパッチをStreamDeviceにあてる必要がある。[[br]] |
199 | | パッチを当てるstreamdeviceは 2.7.7_I2Cとして別にコンパイルしなおす。[[br]] |
200 | | |
201 | | {{{ |
202 | | root@beaglebone:/opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C# cd /opt/epics/R315.5/modules/soft/stream/ |
203 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cp -r 2.7.7 2.7.7_I2C |
204 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream# cd 2.7.7_I2C |
205 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7_I2C# patch -p2 < /opt/epics/R315.5/modules/instruments/bbb/drvAsynI2C/streamDevice/0001-Added-asynI2C-interface.patch |
206 | | patching file src/AsynDriverInterface.cc |
207 | | patching file streamApp/Makefile |
208 | | can't find file to patch at input line 87 |
209 | | Perhaps you used the wrong -p or --strip option? |
210 | | The text leading up to this was: |
211 | | -------------------------- |
212 | | |diff --git a/configure/RELEASE b/configure/RELEASE |
213 | | |index bee74c1..b95de67 100644 |
214 | | |--- a/configure/RELEASE |
215 | | |+++ b/configure/RELEASE |
216 | | -------------------------- |
217 | | File to patch: ^C |
218 | | |
219 | | configure/RELEASEは自分で編集。以下の行を追加。 |
220 | | |
221 | | DRVASYNI2C=$(EPICS_BASE)/../modules/instruments/bbb/drvAsynI2C |
222 | | |
223 | | root@beaglebone:/opt/epics/R315.5/modules/soft/stream/2.7.7_I2C# make clean;make |
224 | | |
225 | | }}} |
226 | | |
227 | | IOCで使うときには、configure/RELEASEに |
228 | | |
229 | | {{{ |
230 | | ASYN = $(EPICS_BASE)/../modules/soft/asyn/4-31 |
231 | | STREAM = $(EPICS_BASE)/../modules/soft/stream/2.7.7_I2C |
232 | | DRVASYNI2C = $(EPICS_BASE)/../modules/instruments/bbb/drvAsynI2C |
233 | | }}} |
234 | | |
235 | | を設定する。 |
236 | | |
237 | | |
238 | | == extensions == |
239 | | |
240 | | extensionsのconfig fileをダウンロードして展開。 |
241 | | |
242 | | {{{ |
243 | | root@beaglebone:/opt/epics/R315.5# cd src/ |
244 | | root@beaglebone:/opt/epics/R315.5/src# wget https://www.aps.anl.gov/epics/download/extensions/extensionsTop_20120904.tar.gz |
245 | | root@beaglebone:/opt/epics/R315.5/src# cd .. |
246 | | root@beaglebone:/opt/epics/R315.5# tar zxvf src/extensionsTop_20120904.tar.gz |
247 | | }}} |
248 | | |
249 | | |
250 | | === procServ === |
251 | | |
252 | | procServはなんか新しくなったみたい。githubに入っていたので、masterのzipを取得。 |
253 | | |
254 | | {{{ |
255 | | root@beaglebone:/opt/epics/R315.5/extensions# cd src/ |
256 | | root@beaglebone:/opt/epics/R315.5/extensions/src# wget https://github.com/ralphlange/procServ/archive/master.zip |
257 | | |
258 | | : |
259 | | 2017-06-21 00:16:04 (337 KB/s) - ‘master.zip’ saved [76417] |
260 | | |
261 | | root@beaglebone:/opt/epics/R315.5/extensions/src# mv master.zip procServ.zip |
262 | | root@beaglebone:/opt/epics/R315.5/extensions/src# unzip procServ.zip |
263 | | }}} |
264 | | |
265 | | 展開したソースをmake。 |
266 | | |
267 | | {{{ |
268 | | |
269 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make |
270 | | Cleaning autotools debris |
271 | | rm -f configure aclocal.m4 Makefile.in Makefile.Automake.in; |
272 | | autoreconf -si |
273 | | configure.ac:32: installing 'build-aux/compile' |
274 | | configure.ac:14: installing 'build-aux/config.guess' |
275 | | configure.ac:14: installing 'build-aux/config.sub' |
276 | | configure.ac:15: installing 'build-aux/install-sh' |
277 | | configure.ac:15: installing 'build-aux/missing' |
278 | | Makefile.am: installing 'build-aux/depcomp' |
279 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ls |
280 | | acceptFactory.cc build-aux connectionItem.cc libtelnet.c Makefile.in procServ.h |
281 | | aclocal.m4 ChangeLog COPYING libtelnet.h NEWS procServ.spec |
282 | | appveyor.yml clientFactory.cc debian makefile processClass.h procServ.txt |
283 | | AUTHORS configure forkpty.c Makefile.am processFactory.cc README.md |
284 | | autom4te.cache configure.ac INSTALL Makefile.Epics.in procServ.cc |
285 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ./configure |
286 | | |
287 | | : |
288 | | |
289 | | configure: error: Documentation not found. Use --disable-doc to skip installing it, or --enable-doc to generate it |
290 | | }}} |
291 | | |
292 | | configureでエラーになる。gitHubのREADMEに、asciidocとlibtelnetに依存関係があるというので、asciidocのパッケージをaptで検索。[[br]] |
293 | | |
294 | | {{{ |
295 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-cache search asciidoc |
296 | | asciidoc - Highly configurable text format for writing documentation |
297 | | asciidoctor - AsciiDoc to HTML rendering for Ruby |
298 | | asciidoctor-doc - AsciiDoc to HTML rendering for Ruby (documentation) |
299 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-get install asciidoc |
300 | | Reading package lists... Done |
301 | | Building dependency tree |
302 | | Reading state information... Done |
303 | | The following extra packages will be installed: |
304 | | dblatex docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lmodern fonts-texgyre jadetex |
305 | | libaudio2 libauthen-sasl-perl libencode-locale-perl libfile-basedir-perl libfile-desktopentry-perl |
306 | | libfile-homedir-perl libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl libfont-afm-perl |
307 | | libfontenc1 libharfbuzz-icu0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl |
308 | | libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl |
309 | | libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libkpathsea6 |
310 | | liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmng1 libnet-dbus-perl |
311 | | libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libopenjpeg5 libosp5 libostyle1c2 |
312 | | libpoppler-qt4-4 libpoppler46 libpotrace0 libptexenc1 libqt4-xml libqtcore4 libqtgui4 libruby2.1 |
313 | | libsgmls-perl libsp1c2 libsynctex1 libtcl8.6 libtie-ixhash-perl libtk8.6 liburi-perl libwww-perl |
314 | | libwww-robotrules-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl |
315 | | libxml2-utils libxslt1.1 libxss1 libyaml-0-2 libyaml-tiny-perl libzzip-0-13 lmodern lynx lynx-cur |
316 | | openjade prerex preview-latex-style prosper ps2eps python-apt python-apt-common qtcore4-l10n ruby |
317 | | ruby2.1 rubygems-integration sgml-base sgml-data sgmlspl sp tcl tcl8.6 tex-common tex-gyre texlive |
318 | | texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils |
319 | | texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base |
320 | | texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended |
321 | | texlive-latex-recommended-doc texlive-math-extra texlive-pictures texlive-pictures-doc texlive-pstricks |
322 | | texlive-pstricks-doc tipa tk tk8.6 vprerex x11-utils xdg-utils xml-core xmlto xsltproc xterm zip |
323 | | Suggested packages: |
324 | | source-highlight vim-addon-manager docbook graphicsmagick-imagemagick-compat imagemagick latex-cjk-all |
325 | | opensp pdf-viewer texlive-lang-all texlive-lang-cyrillic texlive-xetex transfig docbook-dsssl-doc |
326 | | docbook-defguide dbtoepub docbook-xsl-doc-html docbook-xsl-doc-pdf docbook-xsl-doc-text docbook-xsl-doc |
327 | | docbook-xsl-saxon fop libsaxon-java libxalan2-java libxslthl-java xalan nas libdigest-hmac-perl |
328 | | libgssapi-perl libdata-dump-perl libcrypt-ssleay-perl qt4-qtconfig sgmls-doc libauthen-ntlm-perl |
329 | | libunicode-map8-perl libunicode-string-perl xml-twig-tools doc-base python-apt-dbg python-gtk2 |
330 | | python-vte python-apt-doc ri ruby-dev bundler sgml-base-doc perlsgml w3-recs tcl-tclreadline perl-tk |
331 | | latexdiff latexmk dvidvi fragmaster lacheck purifyeps xindy chktex dvipng psutils t1utils |
332 | | python-pygments libtcltk-ruby dot2tex gvfs-bin xmltex xfonts-cyrillic |
333 | | Recommended packages: |
334 | | wish |
335 | | The following NEW packages will be installed: |
336 | | asciidoc dblatex docbook-dsssl docbook-utils docbook-xml docbook-xsl fonts-lmodern fonts-texgyre jadetex |
337 | | libaudio2 libauthen-sasl-perl libencode-locale-perl libfile-basedir-perl libfile-desktopentry-perl |
338 | | libfile-homedir-perl libfile-listing-perl libfile-mimeinfo-perl libfile-which-perl libfont-afm-perl |
339 | | libfontenc1 libharfbuzz-icu0 libhtml-form-perl libhtml-format-perl libhtml-parser-perl |
340 | | libhtml-tagset-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl |
341 | | libhttp-message-perl libhttp-negotiate-perl libio-html-perl libio-socket-ssl-perl libkpathsea6 |
342 | | liblwp-mediatypes-perl liblwp-protocol-https-perl libmailtools-perl libmng1 libnet-dbus-perl |
343 | | libnet-http-perl libnet-smtp-ssl-perl libnet-ssleay-perl libopenjpeg5 libosp5 libostyle1c2 |
344 | | libpoppler-qt4-4 libpoppler46 libpotrace0 libptexenc1 libqt4-xml libqtcore4 libqtgui4 libruby2.1 |
345 | | libsgmls-perl libsp1c2 libsynctex1 libtcl8.6 libtie-ixhash-perl libtk8.6 liburi-perl libwww-perl |
346 | | libwww-robotrules-perl libx11-protocol-perl libxml-parser-perl libxml-twig-perl libxml-xpathengine-perl |
347 | | libxml2-utils libxslt1.1 libxss1 libyaml-0-2 libyaml-tiny-perl libzzip-0-13 lmodern lynx lynx-cur |
348 | | openjade prerex preview-latex-style prosper ps2eps python-apt python-apt-common qtcore4-l10n ruby |
349 | | ruby2.1 rubygems-integration sgml-base sgml-data sgmlspl sp tcl tcl8.6 tex-common tex-gyre texlive |
350 | | texlive-base texlive-bibtex-extra texlive-binaries texlive-extra-utils texlive-font-utils |
351 | | texlive-fonts-recommended texlive-fonts-recommended-doc texlive-generic-recommended texlive-latex-base |
352 | | texlive-latex-base-doc texlive-latex-extra texlive-latex-extra-doc texlive-latex-recommended |
353 | | texlive-latex-recommended-doc texlive-math-extra texlive-pictures texlive-pictures-doc texlive-pstricks |
354 | | texlive-pstricks-doc tipa tk tk8.6 vprerex x11-utils xdg-utils xml-core xmlto xsltproc xterm zip |
355 | | 0 upgraded, 125 newly installed, 0 to remove and 0 not upgraded. |
356 | | Need to get 760 MB of archives. |
357 | | After this operation, 1,251 MB of additional disk space will be used. |
358 | | }}} |
359 | | |
360 | | ディスク容量を食いそうなのでパス。次にlibtelnet。 |
361 | | |
362 | | {{{ |
363 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-cache search libtelnet |
364 | | libtelnet-dev - Small library for parsing the TELNET protocol - development files |
365 | | libtelnet-utils - Small library for parsing the TELNET protocol - utilities |
366 | | libtelnet2 - Small library for parsing the TELNET protocol - shared library |
367 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# apt-get install libtelnet-dev |
368 | | Reading package lists... Done |
369 | | Building dependency tree |
370 | | Reading state information... Done |
371 | | The following extra packages will be installed: |
372 | | libtelnet2 |
373 | | Suggested packages: |
374 | | libtelnet-utils telnet |
375 | | The following NEW packages will be installed: |
376 | | libtelnet-dev libtelnet2 |
377 | | 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. |
378 | | Need to get 44.0 kB of archives. |
379 | | After this operation, 145 kB of additional disk space will be used. |
380 | | Do you want to continue? [Y/n] |
381 | | : |
382 | | }}} |
383 | | |
384 | | libtelnetは問題ないのでインストールした。[[br]] |
385 | | 本体のコンパイル。[[br]] |
386 | | gitHubのREADMEに{{{Building with the EPICS Build System}}}とあるので、{{{--with-epics-top}}}オプションを設定する。[[br]] |
387 | | docは必要ないのでdisable。 |
388 | | |
389 | | {{{ |
390 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ./configure --with-epics-top=../.. --disable-doc |
391 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make |
392 | | |
393 | | : |
394 | | |
395 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# make install |
396 | | |
397 | | : |
398 | | |
399 | | root@beaglebone:/opt/epics/R315.5/extensions/src/procServ-master# ls -la /opt/epics/R315.5/extensions/bin/linux-arm |
400 | | total 248 |
401 | | drwxr-xr-x 2 root root 4096 Jun 21 00:44 . |
402 | | drwxr-xr-x 3 root root 4096 Jun 21 00:44 .. |
403 | | -r-xr-xr-x 1 root root 243604 Jun 21 00:44 procServ |
404 | | }}} |
405 | | |
406 | | |
407 | | == 環境変数 == |
408 | | |
409 | | 最後に、環境変数設定スクリプトを作成。 |
410 | | |
411 | | {{{ |
412 | | root@beaglebone:/opt/epics/R315.5# mkdir etc |
413 | | root@beaglebone:/opt/epics/R315.5# cd etc |
414 | | root@beaglebone:/opt/epics/R315.5# emacs -nw setenv_R315_5.csh |
415 | | |
416 | | setenv EPICS_HOST_ARCH linux-arm |
417 | | setenv EPICS_BASE /opt/epics/R315.5/base |
418 | | setenv EPICS_EXTENSIONS /opt/epics/R315.5/extensions |
419 | | |
420 | | #setenv EPICS_CA_ADDR_LIST |
421 | | |
422 | | setenv EPICS_CA_AUTO_ADDR_LIST NO |
423 | | setenv EPICS_CA_MAX_ARRAY_BYTES 1000000 |
424 | | |
425 | | set path=(${EPICS_BASE}/bin/${EPICS_HOST_ARCH} ${EPICS_EXTENSIONS}/bin/${EPICS_HOST_ARCH} $path) |
426 | | |
427 | | root@beaglebone:/opt/epics/R315.5# emacs -nw setenv_R315_5.sh |
428 | | |
429 | | export EPICS_HOST_ARCH=linux-arm |
430 | | export EPICS_BASE=/opt/epics/R315.5/base |
431 | | export EPICS_EXTENSIONS=/opt/epics/R315.5/extensions |
432 | | |
433 | | #export EPICS_CA_ADDR_LIST= |
434 | | |
435 | | export EPICS_CA_AUTO_ADDR_LIST=NO |
436 | | export EPICS_CA_MAX_ARRAY_BYTES=1000000 |
437 | | |
438 | | export PATH=$EPICS_BASE/bin/$EPICS_HOST_ARCH:$EPICS_EXTENSIONS/bin/$EPICS_HOST_ARCH:$PATH |
439 | | |
440 | | }}} |
| 30 | * [wiki:epics/bbb/debian/files 今回作成したEPICS環境を圧縮したファイル] |