Results 1 to 11 of 11

Thread: where should I put qwt plugin on linux?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: where should I put qwt plugin on linux?

    Yeah, that's what I thought. I have:

    /opt/QtSDK/QtCreator/lib/qtcreator/plugins/designer

    In that directory (designer) there was only:

    libqwebview.so

    so I added:

    libqwt_designer_plugin.so

    But still, it doesn't load on starting qt-creator. Am I missing something?

    Cheers.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: where should I put qwt plugin on linux?

    In opposite to David I recommend not to copy the plugin: instead configure your environment to load the plugin from where it is installed by "make install".

    A) This step has to be done for both ways:

    Open a shell and enter the following command ( of course you have to replace the path by where you have installed the plugin ):

    Qt Code:
    1. ldd /usr/local/qwt-6.1.0-svn/plugins/designer/libqwt_designer_plugin.so
    To copy to clipboard, switch view to plain text mode 

    On my box it results to something like this:
    Qt Code:
    1. linux-gate.so.1 => (0xffffe000)
    2. libqwt.so.6 => /home1/uwe/qwt/qwt/lib/libqwt.so.6 (0xb7586000)
    3. libQtXml.so.4 => /usr/local/Trolltech/Qt-4.8.0-debug/lib/libQtXml.so.4 (0xb7537000)
    4. libQtGui.so.4 => /usr/local/Trolltech/Qt-4.8.0-debug/lib/libQtGui.so.4 (0xb68b3000)
    5. libQtCore.so.4 => /usr/local/Trolltech/Qt-4.8.0-debug/lib/libQtCore.so.4 (0xb656a000)
    6. libQtDesigner.so.4 => /usr/local/Trolltech/Qt-4.8.0-debug/lib/libQtDesigner.so.4 (0xb5fbd000)
    7. ...
    To copy to clipboard, switch view to plain text mode 

    When you see something like this:

    Qt Code:
    1. linux-gate.so.1 => (0xffffe000)
    2. libqwt.so.6 => not found
    3. ...
    To copy to clipboard, switch view to plain text mode 

    ... you have to read about ldconfig and LD_LIBRARY_PATH.

    B) Read about QT_PLUGIN_PATH: see http://doc.qt.nokia.com/4.7/deployment-plugins.html

    Of course all environment variables need to be set in the environment, where you start the creator - f.e start the creator from the same shell, where you have set them.

    HTH,
    Uwe

  3. The following user says thank you to Uwe for this useful post:

    d_stranz (12th April 2012)

  4. #3
    Join Date
    Apr 2012
    Posts
    5
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: where should I put qwt plugin on linux?

    Thankyou Uwe.

    I already have my library path pointing to the qwt library, so I do not get any such errors. Following the link you suggest I see one option to resolve this should be:

    Qt Code:
    1. # QT_PLUGIN_PATH="/usr/local/qwt-6.0.2-svn/plugins/designer"
    2. # export QT_PLUGIN_PATH
    3. # echo $QT_PLUGIN_PATH
    4. /usr/local/qwt-6.0.2-svn/plugins/designer
    5. # qt
    To copy to clipboard, switch view to plain text mode 

    The last line is how I run qt-creator. It still doesn't see the plugin. I will look into other ways.

  5. #4
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: where should I put qwt plugin on linux?

    What additional information do you get, when setting:

    Qt Code:
    1. export QT_DEBUG_PLUGINS=1
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 7
    Last Post: 11th April 2013, 10:55
  2. Mysql plugin on Linux problem
    By .:saeed:. in forum Newbie
    Replies: 1
    Last Post: 20th January 2011, 17:03
  3. Replies: 1
    Last Post: 8th October 2010, 11:38
  4. Plugin and shared class between plugin and application
    By wishper in forum Qt Programming
    Replies: 7
    Last Post: 23rd August 2010, 17:00
  5. Linker error (app+plugin) on Linux Qt 4.5.1
    By janus in forum Qt Programming
    Replies: 1
    Last Post: 18th May 2009, 12:43

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.