Results 1 to 20 of 22

Thread: Designer doesn't load wwWidgets plugin

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    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.

  2. #2
    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 

  3. #3
    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 ?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    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?

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

    Default Re: Designer doesn't load wwWidgets plugin

    Ok, I've done some reading. First of all please run otool on the wwidgets plugin (libwwwidgetsplugin.dylib) and post the result here. Then run otool on the widget library (libwwwidgets4.dylib) and post the result as well. Finally post the absolute path to:
    1. Qt libraries
    2. libwwwidgets4.dylib
    3. libwwwidgetsplugin.dylib

    You'll need all that information to use a tool called install_name_tool. You can enter its name in Qt Assistant to learn about what it does.

  6. #6
    Join Date
    Feb 2009
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Designer doesn't load wwWidgets plugin

    I solved it... the solution by Reimer was very close.

    But you cannot add a reference to a framework like a library. Mac OS X frameworks are little bit different that .dylib libraries, so libtool fails if you handle the framework like a dylib.

    In plugin.pro, the correct declaration is:

    Qt Code:
    1. LIBS += -framework wwwidgets4
    To copy to clipboard, switch view to plain text mode 

    Note that this requires that the framework already exists in /Library/Frameworks!

    So, compile the main plugin, run 'make install' and produce the designer plugin after...

Similar Threads

  1. Qt designer plugin errors on OSX Leopard
    By mpotocnik in forum Qt Tools
    Replies: 10
    Last Post: 21st January 2008, 09:45
  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
  •  
Qt is a trademark of The Qt Company.