OpenCVをmruby経由で使う場合、ダミーのC++をコールする処理を別ファイルで作成して、 これをプラグインに取り込まないとめんどくさそう。
if [ -e $IOSSDKROOT/usr/include/crt_externs.h ]; then
:;
else
echo "[INFO] need to copy crt_externals.h for compilation, please enter sudo password"
sudo ln -s "$SIMSDKROOT/usr/include/crt_externs.h" "$IOSSDKROOT/usr/include/crt_externs.h"
fi