Results 1 to 11 of 11

Thread: Qt designer plugin errors on OSX Leopard

  1. #1
    Join Date
    Jan 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Qt designer plugin errors on OSX Leopard

    Hi everybody

    I'm new here so please forgive me if I'll do some nonsenses. I have question regarding Qt4 (4.3.3) designer plugins.

    I've compiled and installed Qt4 from source into /usr/qt4 directory successfully. I've tested installation with building an application which I've developed on another machine some time ago. And it worked perfectly, so I figured Qt installation is OK.

    Now when I compile QScintilla plugin or qwt plugin for designer I get in Designer->About plugin next info:
    The file /usr/qt4/plugins/designer/libqscintillaplugin.dylib is not a valid Qt4 plugin
    and for qwt
    The file '/usr/qt4/plugins/designer/libqwt_designer_plugin.dylib' is not a valid Qt plugin.

    Both projects are compiled without any problem.

    Any suggestions?
    Best regards

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt designer plugin errors on OSX Leopard

    What did you do exactly to build those plugins?

  3. #3
    Join Date
    Jan 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Qt designer plugin errors on OSX Leopard

    Well,

    I've compiled sources as described.

    qmake project.pro (for qscintilla = qscintilla.pro and for designer plugin designer.pro)
    make
    sudo make install

    (I have set QMAKESPEC=macx-g++; QTDIR=/usr/qt4 and set PATH accordingly)

    At first I thought it is QScintilla then I downloaded qwt source and tried again. With both I had successful compilation without errors.

    Also I already had successful installation in Tiger. So is it Leopard?

    g++ -v returns:
    Using built-in specs.
    Target: i686-apple-darwin9
    Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
    Thread model: posix
    gcc version 4.0.1 (Apple Inc. build 5465)
    Last edited by jpn; 18th January 2008 at 16:30. Reason: missing [quote] tags

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt designer plugin errors on OSX Leopard

    Do you get different messages for those plugins? Or did you just made a mistake while rewriting the error message?

  5. #5
    Join Date
    Jan 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Qt designer plugin errors on OSX Leopard

    No messages are the same for all NEW plugins. Plugins build during Qt installation (bundeled with Qt) are normally loaded. For example libworldtimeclockplugin.dylib is loaded without any problems...

    It's tricky .... I'll investigate further

    Anyway thanks for your interest and help, I hope together we'll crack this one...

  6. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt designer plugin errors on OSX Leopard

    What does "ldd <pluginfile>" return on your plugins and plugin bundled with Qt?

  7. #7
    Join Date
    Jan 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Qt designer plugin errors on OSX Leopard

    Ok, osx has otool. Now dependices for libqscintillaplugin.dylib

    otool -L /usr/qt4/plugins/designer/libqscintillaplugin.dylib
    /usr/qt4/plugins/designer/libqscintillaplugin.dylib:
    libqscintillaplugin.dylib (compatibility version 0.0.0, current version 0.0.0)
    libqscintilla2.3.dylib (compatibility version 3.0.0, current version 3.0.0)
    /usr/qt4/lib/QtDesigner.framework/Versions/4/QtDesigner (compatibility version 4.3.0, current version 4.3.3)
    /usr/qt4/lib/QtScript.framework/Versions/4/QtScript (compatibility version 4.3.0, current version 4.3.3)
    /usr/qt4/lib/QtXml.framework/Versions/4/QtXml (compatibility version 4.3.0, current version 4.3.3)
    /usr/qt4/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.3.0, current version 4.3.3)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 949.0.0)
    /usr/qt4/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.3.0, current version 4.3.3)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)

    nm displays name list (symbol table):
    /usr/qt4/plugins/designer/libqscintillaplugin.dylib(single module):
    U __Unwind_Resume
    00007418 b __ZGVZ18qt_plugin_instanceE9_instance
    U __ZN11QMetaObject11changeGuardEPP7QObjectS1_
    U __ZN11QMetaObject11removeGuardEPP7QObject
    U __ZN13QsciScintillaC1EP7QWidget
    00005dec T __ZN16QScintillaPlugin10initializeEP28QDesignerFor mEditorInterface
    0000643c T __ZN16QScintillaPlugin11qt_metacallEN11QMetaObject 4CallEiPPv
    00006380 T __ZN16QScintillaPlugin11qt_metacastEPKc
    00005e04 T __ZN16QScintillaPlugin12createWidgetEP7QWidget
    00007404 S __ZN16QScintillaPlugin16staticMetaObjectE
    00005de2 T __ZN16QScintillaPluginC1EP7QObject
    00005d8e T __ZN16QScintillaPluginC2EP7QObject
    00006450 T __ZN16QScintillaPluginD0Ev
    000064d6 T __ZN16QScintillaPluginD1Ev
    0000649a T __ZN16QScintillaPluginD2Ev
    0000616a T __ZN30QDesignerCustomWidgetInterface10initializeEP 28QDesignerFormEditorInterface
    00006142 T __ZN30QDesignerCustomWidgetInterfaceD0Ev
    00006128 T __ZN30QDesignerCustomWidgetInterfaceD1Ev
    U __ZN5QIconC1ERK7QPixmap
    U __ZN7QObject10childEventEP11QChildEvent
    U __ZN7QObject10timerEventEP11QTimerEvent
    U __ZN7QObject11customEventEP6QEvent
    U __ZN7QObject11eventFilterEPS_P6QEvent
    U __ZN7QObject11qt_metacallEN11QMetaObject4CallEiPPv
    U __ZN7QObject11qt_metacastEPKc
    U __ZN7QObject13connectNotifyEPKc
    U __ZN7QObject16disconnectNotifyEPKc
    U __ZN7QObject16staticMetaObjectE
    U __ZN7QObject5eventEP6QEvent
    U __ZN7QObjectC2EPS_
    U __ZN7QObjectD2Ev
    U __ZN7QPixmapC1EPKPKc
    U __ZN7QPixmapD1Ev
    U __ZN7QString11shared_nullE
    U __ZN7QString16fromAscii_helperEPKci
    U __ZN7QString4freeEPNS_4DataE
    U __ZN7QString8fromUtf8EPKci
    00006108 T __ZN7QStringD2Ev
    0000636e T __ZNK16QScintillaPlugin10metaObjectEv
    00005eb8 T __ZNK16QScintillaPlugin11includeFileEv
    00005eb0 T __ZNK16QScintillaPlugin11isContainerEv
    00005df8 T __ZNK16QScintillaPlugin13isInitializedEv
    00005e4c T __ZNK16QScintillaPlugin4iconEv
    00005f1c T __ZNK16QScintillaPlugin4nameEv
    00005f56 T __ZNK16QScintillaPlugin5groupEv
    00006004 T __ZNK16QScintillaPlugin6domXmlEv
    00005f90 T __ZNK16QScintillaPlugin7toolTipEv
    00005fca T __ZNK16QScintillaPlugin9whatsThisEv
    00006170 T __ZNK30QDesignerCustomWidgetInterface12codeTemplat eEv
    00006162 T __ZNK30QDesignerCustomWidgetInterface13isInitializ edEv
    000061cc T __ZNK30QDesignerCustomWidgetInterface6domXmlEv
    U __ZNK7QString3argERKS_iRK5QChar
    U __ZNK7QString7toLowerEv
    00007340 S __ZTI16QScintillaPlugin
    00007180 S __ZTI30QDesignerCustomWidgetInterface
    U __ZTI7QObject
    00006b84 S __ZTS16QScintillaPlugin
    00006be0 S __ZTS30QDesignerCustomWidgetInterface
    00007360 S __ZTV16QScintillaPlugin
    00007140 S __ZTV30QDesignerCustomWidgetInterface
    U __ZTVN10__cxxabiv117__class_type_infoE
    U __ZTVN10__cxxabiv121__vmi_class_type_infoE
    00006190 T __ZThn8_N16QScintillaPlugin10initializeEP28QDesign erFormEditorInterface
    000061a4 T __ZThn8_N16QScintillaPlugin12createWidgetEP7QWidge t
    00006446 T __ZThn8_N16QScintillaPluginD0Ev
    000064cc T __ZThn8_N16QScintillaPluginD1Ev
    000061c2 T __ZThn8_NK16QScintillaPlugin11includeFileEv
    000061b8 T __ZThn8_NK16QScintillaPlugin11isContainerEv
    0000619a T __ZThn8_NK16QScintillaPlugin13isInitializedEv
    000061ae T __ZThn8_NK16QScintillaPlugin4iconEv
    0000633c T __ZThn8_NK16QScintillaPlugin4nameEv
    00006346 T __ZThn8_NK16QScintillaPlugin5groupEv
    00006364 T __ZThn8_NK16QScintillaPlugin6domXmlEv
    00006350 T __ZThn8_NK16QScintillaPlugin7toolTipEv
    0000635a T __ZThn8_NK16QScintillaPlugin9whatsThisEv
    00007420 b __ZZ18qt_plugin_instanceE9_instance
    U __ZdlPv
    U __Znwm
    U ___cxa_atexit
    U ___cxa_guard_acquire
    U ___cxa_guard_release
    U ___cxa_pure_virtual
    U ___gxx_personality_v0
    00005f04 t ___tcf_0
    00005d80 t __dyld_func_lookup
    00000000 t __mh_dylib_header
    00007040 d _qscintilla_pixmap
    000065c0 s _qt_meta_data_QScintillaPlugin
    000065ec s _qt_meta_stringdata_QScintillaPlugin
    0000603e T _qt_plugin_instance
    00005ef2 T _qt_plugin_query_verification_data
    00007020 d _qt_plugin_verification_data
    U _strcmp
    00007000 d dyld__mach_header
    00005d6c t dyld_stub_binding_helper
    Last edited by jpn; 18th January 2008 at 20:47. Reason: missing [quote] tags

  8. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt designer plugin errors on OSX Leopard

    What about the same (skip nm, only ldd/otool is important) for a working plugin?

  9. #9
    Join Date
    Jan 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Qt designer plugin errors on OSX Leopard

    Ok no problem (during these days I've recompiled Qt ad put it in /Developer/Qt4 ... just for info)

    here is comparison:
    Macintosh:~ mpotocnik$ otool -L /Developer/Qt4/plugins/designer/libarthurplugin.dylib
    /Developer/Qt4/plugins/designer/libarthurplugin.dylib:
    libarthurplugin.dylib (compatibility version 0.0.0, current version 0.0.0)
    /Developer/Qt4/lib/QtOpenGL.framework/Versions/4/QtOpenGL (compatibility version 4.3.0, current version 4.3.3)
    /Developer/Qt4/lib/QtDesigner.framework/Versions/4/QtDesigner (compatibility version 4.3.0, current version 4.3.3)
    /Developer/Qt4/lib/QtScript.framework/Versions/4/QtScript (compatibility version 4.3.0, current version 4.3.3)
    /Developer/Qt4/lib/QtXml.framework/Versions/4/QtXml (compatibility version 4.3.0, current version 4.3.3)
    /Developer/Qt4/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.3.0, current version 4.3.3)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 949.0.0)
    /Developer/Qt4/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.3.0, current version 4.3.3)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (compatibility version 1.0.0, current version 1.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    Macintosh:~ mpotocnik$ otool -L /Developer/Qt4/plugins/designer/libqscintillaplugin.dylib
    /Developer/Qt4/plugins/designer/libqscintillaplugin.dylib:
    libqscintillaplugin.dylib (compatibility version 0.0.0, current version 0.0.0)
    libqscintilla2.3.dylib (compatibility version 3.0.0, current version 3.0.0)
    /Developer/Qt4/lib/QtDesigner.framework/Versions/4/QtDesigner (compatibility version 4.3.0, current version 4.3.3)
    /Developer/Qt4/lib/QtScript.framework/Versions/4/QtScript (compatibility version 4.3.0, current version 4.3.3)
    /Developer/Qt4/lib/QtXml.framework/Versions/4/QtXml (compatibility version 4.3.0, current version 4.3.3)
    /Developer/Qt4/lib/QtGui.framework/Versions/4/QtGui (compatibility version 4.3.0, current version 4.3.3)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 136.0.0)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 949.0.0)
    /Developer/Qt4/lib/QtCore.framework/Versions/4/QtCore (compatibility version 4.3.0, current version 4.3.3)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
    /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    Last edited by jpn; 19th January 2008 at 11:49. Reason: missing [quote] tags

  10. #10
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt designer plugin errors on OSX Leopard

    Honestly I don't see anything that could be wrong. You can take a look at .pro files used to build both plugins and try to find the difference. Maybe something did change in one of the recent versions of the system.

  11. #11
    Join Date
    Jan 2008
    Posts
    8
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: Qt designer plugin errors on OSX Leopard

    Resolved - it was problem in QScintilla / I've got message from developers it will be resolved in last svn update

    Thanks for help .... till next time

Similar Threads

  1. Replies: 4
    Last Post: 9th August 2007, 08:20
  2. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 14:13
  3. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 17:33
  4. Replies: 1
    Last Post: 22nd January 2007, 12:13
  5. Replies: 13
    Last Post: 15th December 2006, 11:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.