Help us understand the problem. What is going on with this article?

MacOS Sierra上でMikuinstallerを使ってVocaloid2を動かしてみた

More than 1 year has passed since last update.

概要

今さらだが、初期のVocaloidである、Windows専用のVocaloid2を使う必要が生じた。
自宅マシンはMacOSとLinuxのみであったため、Mikuinstallerを用いて、DTMに使っているMacOSで動かすことにした。
需要はきっとないと思うが、備忘録として残しておく。

環境

  • MacOS Sierra v10.12.3
  • XQuartz v2.7.11
  • Mikuinstaller v20080803
  • Vocaloid2(巡音ルカ、がくっぽいど)

やったこと

  1. XQuartsをインストール => /opt/X11にインストールされた
  2. Mikuinstallerをインストール
  3. Vocaloid2のインストーラをMikuinstallerから起動 => XQuartzの探索に失敗(起動時のプログラム名がX11とインストールディレクトリが/usr/X11に決め打ちになっている?)
  4. Mikuinstallerに以下のパッチをあててからVocaloid2のインストーラを起動 => 成功

    --- /Applications/MikuInstaller.app/Contents/Resources/Wine.bundle/Contents/MacOS/wine.orig 2008-08-03 21:25:41.000000000 +0900
    +++ /Applications/MikuInstaller.app/Contents/Resources/Wine.bundle/Contents/MacOS/wine  2017-01-30 17:24:58.000000000 +0900
    @@ -89,7 +89,7 @@ esac
    
     osascript <<END || :
     with timeout 3 seconds
    -  tell application "X11" to activate
    +  tell application "XQuartz" to activate
     end timeout
     END
    
    --- /Applications/MikuInstaller.app/Contents/Resources/Wine.bundle/Contents/Resources/script/startwine.sh.orig  2008-08-03 21:25:41.000000000 +0900
    +++ /Applications/MikuInstaller.app/Contents/Resources/Wine.bundle/Contents/Resources/script/startwine.sh 2017-01-30 17:17:50.000000000 +0900
    @@ -53,6 +53,8 @@ if [ -f "/usr/X11/lib/libfreetype.6.dyli
       X11DIR=/usr/X11
     elif [ -f "/usr/X11R6/lib/libfreetype.6.dylib" ]; then
       X11DIR=/usr/X11R6
    +elif [ -f "/opt/X11/lib/libfreetype.6.dylib" ]; then
    +  X11DIR=/opt/X11
     else
       echo "WARNING: libfreetype.6.dylib is not found in the standard place." 1>&2
       if [ -d "/usr/X11" ]; then
    --- /Applications/MikuInstaller.app/Contents/Resources/Wine.bundle/Contents/Resources/script/startx11.sh.orig 2008-08-03 21:25:41.000000000 +0900
    +++ /Applications/MikuInstaller.app/Contents/Resources/Wine.bundle/Contents/Resources/script/startx11.sh  2017-01-30 17:04:27.000000000 +0900
    @@ -37,7 +37,7 @@
     PATH=/usr/bin:/bin:/usr/sbin
    
     if [ -z "$DISPLAY" ]; then
    -  osascript -e 'tell application "X11" to launch' || exit $?
    +  osascript -e 'tell application "XQuartz" to launch' || exit $?
       tmp=`mktemp -d -t tmp` || exit $?
       cat <<END > $tmp/getdisp
     #!/bin/sh
    @@ -46,6 +46,7 @@ END
       chmod +x $tmp/getdisp
       open-x11 $tmp/getdisp || \
       open -a X11 $tmp/getdisp || \
    +  open -a XQuartz $tmp/getdisp || \
       open -a XDarwin $tmp/getdisp
       while [ "$?" == "0" ] && [ ! -f $tmp/disp ]; do sleep 1; done
       DISPLAY=`cat $tmp/disp`
    
  5. Vocaloid2をオンラインアクティベート => 成功

  6. Vocaloid2を起動、使用 => 成功
    スクリーンショット 2017-03-20 13.39.34.png

補足

  • OS X Mountain LionからXWindowが標準で付属しなくなったために、/opt/X11のXQuartzをきちんと探索する必要が生じたのかもしれない
  • もし、上記で上手くいかない場合は、Mac OS X El CapiptanでSIPを無効化する を参考にSIPを無効化して、root権限で

    ln -s /opt/X11 /usr/X11
    

    とか

    ln -s /opt/X11 /usr/X11R6
    

    としておく必要があるかもしれない

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away