Snow LeopardでSafariのプラグインが動かない
昨日、WebKitPluginWithSimpleGUIはビルドしなおしたら動いたので
自分で作ったプラグインも同じようにしたら動くと思ったがなぜか動かない。
なんかボケてるのか?
アクティブアーキテクチャをx86_64でビルドしてみた
アクティブアーキテクチャをx86_64でビルドすると、CarbonのAPIがリンクでエラーになる。
WebKitPluginWithSimpleGUIは、アクティブアーキテクチャはx86で動いたので
ここは変える必要は無いだろう。
エラーになった関数
"_OpenPicture", referenced from: "_CopyBits", referenced from: "_GetMainDevice", referenced from: "_ClosePicture", referenced from: "_KillPicture", referenced from:
アクティブアーキテクチャをx86でビルド
アクティブアーキテクチャをx86でビルドするとCarbon APIを使っている部分はワーニングになる。
warning: 'GetMainDevice' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:3314) warning: 'OpenPicture' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:1908) warning: 'CopyBits' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:1822) warning: 'ClosePicture' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:1941) warning: 'KillPicture' is deprecated (declared at /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QuickdrawAPI.h:1990)