在Maya 2013中加载插件时出现QCocoaColorPanelDelegate错误

时间:2013-07-10 21:07:12

标签: qt plugins maya

我正在为使用Qt的Maya 2013构建一个插件。我用gcc-4.8和Qt v4.7.1编译和构建它,当我将插件加载到Maya时,Maya崩溃并且我收到以下错误:

objc[24831]: Class QCocoaColorPanelDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QMacSoundDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaPanel is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaView is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaWindow is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaWindowDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaMenuLoader is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QNSApplication is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaApplicationDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaWindowCustomThemeFrame is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaToolBarDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaMenu is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QNSOpenSavePanelDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaFontPanelDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QNSWindowProxy is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QNSPanelProxy is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaPageLayoutDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QCocoaPrintPanelDelegate is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QNSMenu is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QNSStatusItem is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.
objc[24831]: Class QNSImageView is implemented in both /Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/QtGui and /Library/Frameworks/QtGui.framework/Versions/4/QtGui. One of the two will be used. Which one is undefined.

经过大量的谷歌搜索后,我意识到问题是由于我的路径中有Qt并且我首先加载了那个导致Windows Qt模块和Maya Qt模块加载的问题,我应该尝试确保Maya的路径是第一个,所以它选择了正确的Qt。

有什么方法可以解决这个问题吗?

1 个答案:

答案 0 :(得分:1)

我开始使用插件调试。我开始删除我的CMake脚本中的QT_LIBRARIES链接,并将其替换为位于Maya中的链接(它们位于/Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/中)。这解决了这个问题。

更新:这是特定于Mac OS的。请记住在其他操作系统中检查相同内容。