2013-07-10 39 views
0

我正在爲使用Qt的Maya 2013構建一個插件。我已經編譯和GCC-4.8和Qt v4.7.1建造它,當我加載的插件瑪雅,瑪雅崩潰,我得到了以下錯誤:在Maya 2013加載插件時出現QCocoaColorPanelDelegate錯誤

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的造成的,我裝的是,這是造成這兩個窗口的Qt模塊和瑪雅Qt的模塊之一首先被加載,我應該努力確保瑪雅的路徑是第一所以它拿起正確的Qt。

有什麼辦法可以解決這個問題嗎?

回答

1

我從插件調試開始。我開始刪除我的CMake腳本中的QT_LIBRARIES鏈接,並將它們替換爲位於Maya中的鏈接(它們位於/Applications/Autodesk/maya2013/Maya.app/Contents/MacOS/)。這解決了問題。

更新:這是Mac OS特有的。請記住檢查在其他操作系統也是如此。

相關問題