Page 1 of 2 12 LastLast
Results 1 to 20 of 22

Thread: Designer doesn't load wwWidgets plugin

  1. #1
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Designer doesn't load wwWidgets plugin

    Hi everyone,

    I need wwWidgets support in my Designer but after compilation and installation Designer doesn't load it.

    Furthermore the header files are not copied into one of the Qt folders.

    I'm using Tiger (Mac OS X 10.4).

  2. #2
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,518 Times in 1,388 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: Designer doesn't load wwWidgets plugin

    What does Help->About Plugins say?
    J-P Nurmi

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

    Default Re: Designer doesn't load wwWidgets plugin

    Did you run make install after compilation with super user privileges? Could you check if the installer tried to copy the header files somewhere? It should be in the installation log on your console.

  4. #4
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    Oh no. I think I did it with no super user privileges.

    I've just installed it as su and the header files are now located in /usr/include/wwWidgets

    Fine so far.

    In Designer the plugin is listed under "Failed Plugins". Designer tells me that it's no valid plugin.
    Last edited by reimer; 23rd June 2008 at 10:59.

  5. #5
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    I can't find anything in my log files except what I did today.

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

    Default Re: Designer doesn't load wwWidgets plugin

    Could you check if the libwwwidgets4.dylib (or similar) file exists in lib subdir of your Qt installation along other Qt libraries?

  7. #7
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    Quote Originally Posted by wysota View Post
    Could you check if the libwwwidgets4.dylib (or similar) file exists in lib subdir of your Qt installation along other Qt libraries?
    It exists => /Developer/Applications/Qt/plugins/designer/libwwwidgetsplugin.dylib

    The problem is not my plugin itself but the header files I suppose. The header files were copied to /usr/include/wwWidgets/ because there were no rules for Mac OS. But I should create a framework too for wwWidgets. I have to check how I can do this.

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

    Default Re: Designer doesn't load wwWidgets plugin

    Not that file. I meant libwwwidgets4.dylib not the plugin. The plugin depends on the widget library. The header files have nothing to do with loading the plugin into Designer. The only two files that matter are the plugin and the widget library. I've seen the plugin work on Mac, so it should work for you as well.

  9. #9
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    There is such a file in /Library/Frameworks . Maybe it's in the wrong directory?

    There are two possibilities to install Qt, as framework or as like under Unix/Linux.
    Last edited by reimer; 23rd June 2008 at 14:00.

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

    Default Re: Designer doesn't load wwWidgets plugin

    Call ldd on the plugin and see if the widget library is found or not.

    It should contain output similar to:

    libwwwidgets4.so.0 => /usr/local/Qt4/qt-4.4/lib/libwwwidgets4.so.0 (0xb7e7e000)

  11. #11
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    otool can't find it.
    Last edited by reimer; 23rd June 2008 at 21:05.

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

    Default Re: Designer doesn't load wwWidgets plugin

    Try placing it (widget library) alongside other Qt libs. Make sure otool has the same environment set as all Qt stuff.

  13. #13
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    Qt Code:
    1. otool -L /Developer/Applications/Qt/Designer.app/Contents/MacOS/Designer
    2. /Developer/Applications/Qt/Designer.app/Contents/MacOS/Designer:
    3. QtDesignerComponents.framework/Versions/4/QtDesignerComponents (compatibility version 4.3.0, current version 4.3.4)
    4. QtDesigner.framework/Versions/4/QtDesigner (compatibility version 4.3.0, current version 4.3.4)
    5. QtAssistant.framework/Versions/4/QtAssistant (compatibility version 4.3.0, current version 4.3.4)
    6. QtScript.framework/Versions/4/QtScript (compatibility version 4.3.0, current version 4.3.4)
    7. QtXml.framework/Versions/4/QtXml (compatibility version 4.3.0, current version 4.3.4)
    8. QtGui.framework/Versions/4/QtGui (compatibility version 4.3.0, current version 4.3.4)
    9. /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (compatibility version 2.0.0, current version 128.0.0)
    10. /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 824.34.0)
    11. QtNetwork.framework/Versions/4/QtNetwork (compatibility version 4.3.0, current version 4.3.4)
    12. QtCore.framework/Versions/4/QtCore (compatibility version 4.3.0, current version 4.3.4)
    13. /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.3)
    14. /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.1.3)
    15. /usr/lib/libiconv.2.dylib (compatibility version 5.0.0, current version 5.0.0)
    16. /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 22.0.0)
    17. /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
    18. /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
    To copy to clipboard, switch view to plain text mode 
    I didn't use otool correctly yesterday. But Designer can't find it anyway. I found out that there's no standard location I can put my dynamic libraries into. I'm not so familiar with that stuff so I'm learning many new things. Maybe it's possible to add the location manually in Designer.app.

    Interesting link: http://www.cocoadev.com/index.pl?ApplicationLinking

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

    Default Re: Designer doesn't load wwWidgets plugin

    Unfortunately I'm not familiar with Mac framework design, so I'm not able to help you much... I can suggest putting the widget library into /usr/lib and it should work there, but that's a dirty solution...

  15. #15
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    As I said there's no standard location. It didn't work.
    Last edited by reimer; 25th June 2008 at 11:34.

  16. #16
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    Quote Originally Posted by wysota View Post
    I've seen the plugin work on Mac...
    Do you remember where you've seen it?

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

    Default Re: Designer doesn't load wwWidgets plugin

    Yes, I think so. I'll try to get some info about it, but it won't happen before next week. Unfortunately I don't have access to a Mac, so I can't check it out myself.

  18. #18
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    To create a framework you have to add lib_bundle to CONFIG. Then adjust the path to the lib. For me it didn't worked fine. Should anything else be done?
    widgets.pro
    Qt Code:
    1. mac : CONFIG += lib_bundle
    To copy to clipboard, switch view to plain text mode 

    plugin.pro
    Qt Code:
    1. mac : LIBS += -L../widgets/wwwidgets4.framework -lwwwidgets4
    2. #mac : LIBS += -L../widgets/wwwidgets4.framework/Versions/0 -lwwwidgets4
    To copy to clipboard, switch view to plain text mode 

    Qt Code:
    1. /usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: can't locate file for: -lwwwidgets4
    2. /usr/libexec/gcc/i686-apple-darwin8/4.0.1/libtool: file: -lwwwidgets4 is not an object file (not allowed in a library)
    To copy to clipboard, switch view to plain text mode 

  19. #19
    Join Date
    Jun 2008
    Posts
    19
    Qt products
    Qt4
    Platforms
    MacOS X Windows

    Default Re: Designer doesn't load wwWidgets plugin

    Quote Originally Posted by wysota View Post
    Yes, I think so. I'll try to get some info about it, but it won't happen before next week. Unfortunately I don't have access to a Mac, so I can't check it out myself.
    Any news ?

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

    Default Re: Designer doesn't load wwWidgets plugin

    Blah, sorry, I forgot Give me time until Wednesday, please.

    A side question - does the widget library work? Apart from the non-working plugin, can you use wwWidgets by adding CONFIG+=wwwidgets to your project file?

Similar Threads

  1. Qt designer plugin errors on OSX Leopard
    By mpotocnik in forum Qt Tools
    Replies: 10
    Last Post: 21st January 2008, 10:45
  2. QPluginLoader not recognizing a plugin
    By KShots in forum Qt Programming
    Replies: 3
    Last Post: 29th June 2007, 15:13
  3. Qt Designer plugin on windows
    By big4mil in forum Newbie
    Replies: 4
    Last Post: 30th May 2007, 18:33
  4. Replies: 1
    Last Post: 22nd January 2007, 13:13
  5. Replies: 13
    Last Post: 15th December 2006, 12: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.