OSX Yosemiteでswfmillを動かす
Marvericksの時に動作していたswfmillを、Yosemiteをクリーンインストールした後、動作しなくなった。
状況。
$ swfmill dyld: Library not loaded: /usr/local/lib/libfreetype.6.dylib Referenced from:$HOMEi/bin/swfmill Reason: image not found Trace/BPT trap: 5
/usr/local/lib/libfreetype.6.dylib が無いという
$ sudo ln -s /usr/X11/lib/libfreetype.6.dylib libfreetype.6.dylib
して、もう一度swfmillしてみる
$ swfmill dyld: Library not loaded: /usr/local/lib/libpng12.0.dylib Referenced from: $HOME/bin/swfmill Reason: image not found Trace/BPT trap: 5
/usr/local/lib/libpng12.0.dylibが無いという。
$ sudo ln -s /usr/X11/lib/libpng12.0.dylib libpng12.0.dylib
して、もう一度swfmillしてみる
$ swfmill $ 2015-12-08 17:01:05.103 X11[1151:62138] Failed to connect (primary_text_field_cell) outlet from (AppDelegate) to (NSTextFieldCell): missing setter or instance variable
X11を入れないとだめよ。と、ようやくズバリ指摘される。
https://support.apple.com/ja-jp/HT201341
こちらへ誘導されたので、支持したがってZQuartsパッケージをインストール
$ swfmill
swfmill 0.3.2 XML-based SWF processing tool
usage: swfmill [<options>] <command>
<command> is one of: swf2xml <in> [<out>] convert from SWF to XML. <in> is a single SWF file, or 'stdin' <out> is a single XML file, or (by default) 'stdout'
xml2swf <in> [<out>] convert from XML to SWF. <in> is a single XML file, or 'stdin' <out> is a single SWF file, or (by default) 'stdout'
simple <in> [<out>] convert from a movie definition file to SWF. <in> is a single XML file, or 'stdin' <out> is a single SWF file, or (by default) 'stdout' (for details, see README)
xslt <xsl> <in> [<out>] transform <in> to <out> as described by <xsl>. <xsl> is the XSLT stylesheet, and can use the swft: extension. <in> must be some XML (depends on <xsl>) <out> is either SWF (when it ends in .swf) or XML, by default on 'stdout'
<option>s are: -h print this help and quit --version print the version number and quit -v verbose output -V extra-verbose debugging output -d dump SWF data when loaded (for debugging) -e specify text encoding in SWF (for SWF 5 and earlier only; default: UTF-8). -n deactivate libxml network access
Please report bugs at https://github.com/djcsdy/swfmill/issues
復旧しました。









