Changes between Version 10 and Version 11 of css/build


Ignore:
Timestamp:
09/11/14 15:15:26 (10 years ago)
Author:
michkawa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • css/build

    v10 v11  
    6969}}} 
    7070 
    71 == build 開始 == 
     71== build方法 == 
    7272 
    7373環境が整ったら、buildを開始するための設定を変更する。[[br]] 
     
    9393{{{cs-studio/applicationsとcs-studio/core}}}を全部と必要に応じて、{{{cs-studio/products}}}の{{{COMMON,CS-STUDIO,Core}}}以外の各研究所固有パッケージを追加していく。今回は全部入れた。 
    9494 
    95 === build === 
     95== eclipse での build == 
    9696 
    9797eclipseでKEK版をbuildする場合には、{{{org.csstudio.kek.product}}}を使用する。[[br]] 
     
    137137[[Image(css_boot.png,600px)]] 
    138138 
    139  
    140  
    141  
    142  
    143  
     139タイトルがなんかおかしいけど、動作することは確認できた。 
     140 
     141== Headless build == 
     142 
     143今回の設定では、eclipse上でlinux x64版のCSSしか生成していないが、他の環境(Windows,Mac OSX,Linux)のbuildをまとめて行うこともできる。[[br]] 
     144eclipse上でもできるらしいが、今回は[http://www-linac.kek.jp/cont/epics/css/int/building_css_kek_internal.pdf ビルド手順書]の方法で行う。[[br]] 
     145 
     146変更するファイルはcs-studio/products/KEK/plugins/org.csstudio.kek.buildにある。 
     147 
     148=== setting.sh === 
     149 
     150setting.sh は主に build するためのディレクトリ設定をする。[[br]] 
     151今回は以下の設定をした。 
     152 
     153{{{ 
     154export VERSION=3.2.16 
     155export BASEDIR=${HOME}/css 
     156export TOP=${BASEDIR}/cs-studio 
     157export CYGDRIVE= 
     158export BUILDDIR=${BASEDIR}/CSSBuild 
     159export ECLIPSE_BASE=${BASEDIR} 
     160export DELTAPACK=${BASEDIR}/delta/eclipse 
     161export JAVA_HOME=${BASEDIR}/jdk1.7.0_67 
     162PDE_VER=* 
     163}}} 
     164 
     165 
     166=== css/build.properties === 
     167 
     168css/build.properties はbuildする環境(OS等)を設定するが、今回は修正しない。 
     169 
     170=== make.sh === 
     171 
     172make.sh は実際にbuildを行うためのスクリプト。[[br]] 
     173今回必要なのは CSS だけなので、それだけを build するように設定を変更。 
     174 
     175{{{ 
     176#for prod in alarmconfig alarmserver archiveengine css engineconfig jms2rdb 
     177for prod in css 
     178}}} 
     179 
     180=== plugins.list === 
     181 
     182build に必要な plug-in を設定するファイル。[[br]] 
     183eclipseでのbuildで変更が必要だった箇所を修正。 
     184 
     185{{{ 
     186org.csstudio.logbook.ui/** 
     187###org.csstudio.sns.startuphelper/** 
     188org.csstudio.startup.helper/** 
     189}}} 
     190 
     191=== build実行 === 
     192 
     193make.shを実行すると、Headless buildが始まる。 
     194 
     195{{{ 
     196[michkawa@localhost org.csstudio.kek.build]$ ./make.sh 
     197Buildfile: /home/michkawa/css/cs-studio/products/KEK/plugins/org.csstudio.kek.build/build.xml 
     198 
     199clean: 
     200   [delete] Deleting directory /home/michkawa/css/CSSBuild 
     201BUILD SUCCESSFUL 
     202 
     203BUILD SUCCESSFUL 
     204Total time: 0 seconds 
     205Fetching sources 
     206Buildfile: /home/michkawa/css/cs-studio/products/KEK/plugins/org.csstudio.kek.build/build.xml 
     207 
     208prepare: 
     209    [mkdir] Created dir: /home/michkawa/css/CSSBuild/plugins 
     210    [mkdir] Created dir: /home/michkawa/css/CSSBuild/features 
     211 
     212get_sources: 
     213     [echo] Core plugins 
     214     [copy] Copying 1624 files to /home/michkawa/css/CSSBuild/plugins 
     215     [echo] Application plugins 
     216     [copy] Copying 7315 files to /home/michkawa/css/CSSBuild/plugins 
     217     [copy] Copied 1289 empty directories to 1 empty directory under /home/michkawa/css/CSSBuild/plugins 
     218     [echo] SNS plugins 
     219     [echo] SNS product 
     220     [echo] KEK plugins 
     221     [copy] Copying 89 files to /home/michkawa/css/CSSBuild/plugins 
     222     [echo] KEK Features 
     223     [copy] Copying 12 files to /home/michkawa/css/CSSBuild/features 
     224     [echo] Core Features 
     225     [copy] Copying 9 files to /home/michkawa/css/CSSBuild/features 
     226BUILD SUCCESSFUL 
     227 
     228BUILD SUCCESSFUL 
     229Total time: 4 seconds 
     230Building css Product 
     231Buildfile: /home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/productBuild/productBuild.xml 
     232 
     233main: 
     234 
     235preBuild: 
     236 
     237preSetup: 
     238 
     239checkLocalMaps: 
     240 
     241getMapFiles: 
     242 
     243postSetup: 
     244 
     245checkLocalBase: 
     246 
     247getBaseComponents: 
     248 
     249processRepos: 
     250 
     251generateFeature: 
     252 
     253fetch: 
     254 
     255generateFeature: 
     256[eclipse.generateFeature] Some inter-plug-in dependencies have not been satisfied. 
     257[eclipse.generateFeature] Bundle org.eclipse.core.filesystem.linux.x86_64: 
     258[eclipse.generateFeature]       Another singleton version selected: org.eclipse.core.filesystem.linux.x86_64_1.2.0.v20110423-0524 
     259[eclipse.generateFeature] Bundle org.eclipse.swt.gtk.linux.x86_64: 
     260[eclipse.generateFeature]       Another singleton version selected: org.eclipse.swt.gtk.linux.x86_64_3.7.2.v3740f 
     261[eclipse.generateFeature] Bundle org.eclipse.core.net.linux.x86_64: 
     262[eclipse.generateFeature]       Another singleton version selected: org.eclipse.core.net.linux.x86_64_1.1.0.I20110331-0827 
     263[eclipse.generateFeature] Bundle org.eclipse.equinox.launcher.gtk.linux.x86_64: 
     264[eclipse.generateFeature]       Another singleton version selected: org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505 
     265[eclipse.generateFeature] Bundle org.csstudio.rap.core: 
     266[eclipse.generateFeature]       Missing required plug-in org.eclipse.rap.ui_1.4.0. 
     267[eclipse.generateFeature] Bundle org.csstudio.rap.ui.util: 
     268[eclipse.generateFeature]       Missing required plug-in org.eclipse.rap.ui_1.4.0. 
     269[eclipse.generateFeature]       Missing required plug-in org.csstudio.rap.core_1.0.0. 
     270 
     271generate: 
     272 
     273preGenerate: 
     274 
     275allElements: 
     276 
     277allElementsDelegator: 
     278 
     279init: 
     280 
     281generateScript: 
     282[eclipse.buildScript] Some inter-plug-in dependencies have not been satisfied. 
     283[eclipse.buildScript] Bundle org.eclipse.core.filesystem.linux.x86_64: 
     284[eclipse.buildScript]   Another singleton version selected: org.eclipse.core.filesystem.linux.x86_64_1.2.0.v20110423-0524 
     285[eclipse.buildScript] Bundle org.eclipse.swt.gtk.linux.x86_64: 
     286[eclipse.buildScript]   Another singleton version selected: org.eclipse.swt.gtk.linux.x86_64_3.7.2.v3740f 
     287[eclipse.buildScript] Bundle org.eclipse.core.net.linux.x86_64: 
     288[eclipse.buildScript]   Another singleton version selected: org.eclipse.core.net.linux.x86_64_1.1.0.I20110331-0827 
     289[eclipse.buildScript] Bundle org.eclipse.equinox.launcher.gtk.linux.x86_64: 
     290[eclipse.buildScript]   Another singleton version selected: org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.100.v20110505 
     291[eclipse.buildScript] Bundle org.csstudio.rap.core: 
     292[eclipse.buildScript]   Missing required plug-in org.eclipse.rap.ui_1.4.0. 
     293[eclipse.buildScript] Bundle org.csstudio.rap.ui.util: 
     294[eclipse.buildScript]   Missing required plug-in org.eclipse.rap.ui_1.4.0. 
     295[eclipse.buildScript]   Missing required plug-in org.csstudio.rap.core_1.0.0. 
     296 
     297BUILD FAILED 
     298/home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/productBuild/productBuild.xml:42: The following error occurred while executing this line: 
     299/home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/build.xml:91: The following error occurred while executing this line: 
     300/home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/templates/headless-build/customTargets.xml:12: The following error occurred while executing this line: 
     301/home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/productBuild/allElements.xml:20: The following error occurred while executing this line: 
     302/home/michkawa/css/eclipse/plugins/org.eclipse.pde.build_3.7.0.v20111116-2009/scripts/genericTargets.xml:111: Processing inclusion from feature org.csstudio.kek.core.feature: Unable to find plug-in: org.csstudio.autocomplete.pvmanager.formula_0.0.0. Please check the error log for more details. 
     303 
     304Total time: 6 seconds 
     305An error has occurred. See the log file 
     306/home/michkawa/workspace/.metadata/.log. 
     307Buildfile: /home/michkawa/css/cs-studio/products/KEK/plugins/org.csstudio.kek.build/build.xml 
     308 
     309check_vars: 
     310 
     311zip_sources: 
     312      [zip] Building zip: /home/michkawa/css/CSSBuild/css_kek_3.2.16-src.zip 
     313 
     314}}} 
     315 
     316エラーの最後で{{{org.csstudio.autocomplete.pvmanager.formula_0.0.0}}}がないとのことなので、関連のパッケージを追加。 
     317 
     318{{{ 
     319org.csstudio.autocomplete.pvmanager.formula/** 
     320org.csstudio.autocomplete.pvmanager.loc/** 
     321org.csstudio.autocomplete.pvmanager.sim/** 
     322org.csstudio.autocomplete.pvmanager.loc/** 
     323org.csstudio.autocomplete.ui/** 
     324org.csstudio.autocomplete.ui.rcp/** 
     325}}} 
     326 
     327再度、make.shを実行。[[br]] 
     328今度は build 成功。[[br]] 
     329 
     330{{{css/CSSBuild/I.css_kek_3.2.16}}} にcss_kek_3.2.16-*.zipという各環境に対応したパッケージが作成された。 
     331 
     332