Results 1 to 11 of 11

Thread: where should I put qwt plugin on linux?

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

    Default where should I put qwt plugin on linux?

    Hi,

    I am realtively new to qt and would like to install the qwt plugin into qt-creator that I have installed on linux. I'm using qt-creator 2.4 and qt 4.7, with qwt 6 installed.

    According to the website: http://doc.qt.nokia.com/qtcreator-2....g-plugins.html the plugins are looked for in the directory %SDK%\bin\designer but this directory does not exist on my install.
    So where am I supposed to put my libqwt_desinger_plugin.so file ?

    Thanks,

    Mark

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,321
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

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

    I hope you realize "%SDK%" is not meant to be taken literally. It is the path to wherever you have Qt installed. I don't know where the default is on linux, but you can probably figure it out.

    The path you gave is for the "integrated designer", whatever that is. You probably have a standalone designer installation, in which case the directory should be

    %SDK%\qt\plugins\designer

  3. #3
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

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

    On linux I recommend to use the packages offered by the distributor. The package maintainer take care for you, that everything works out of the box.

    But if you really need to install Qwt on your own read the INSTALL file: do a "make install" and configure your environment to load libraries and the plugin from where they have been installed.

    Uwe

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

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

    Thanks d_stranz.

    Yes I am aware that it is not meant to be taken literally. According to the link I gave, that path is for designer integrated into qt-creator. Since I installed qt-creator (with designer integrated), that is the path I should be looking for. But there is no /bin directory in the qtSDK path.

    This is what's available if I search for "plugins" in the QtSDK directory:

    Qt Code:
    1. QtSDK # find -iname plugins*
    2. ./QtCreator/lib/qtcreator/plugins
    3. ./QtCreator/bin/com/nokia/extras.1.1/plugins.qmltypes
    4. ./QtCreator/bin/com/nokia/symbian.1.1/plugins.qmltypes
    5. ./QtCreator/bin/Qt/labs/components.1.1/plugins.qmltypes
    6. ./QtCreator/bin/Qt/labs/components/native/plugins.qmltypes
    7. ./QtCreator/bin/Qt/labs/components/plugins.qmltypes
    8. ./Desktop/Qt/474/gcc/plugins
    9. ./Desktop/Qt/474/gcc/imports/com/nokia/extras.1.1/plugins.qmltypes
    10. ./Desktop/Qt/474/gcc/imports/com/nokia/meego/plugins.qmltypes
    11. ./Desktop/Qt/474/gcc/imports/com/nokia/symbian.1.1/plugins.qmltypes
    12. ./Desktop/Qt/474/gcc/imports/desktopHarmattan/com/nokia/extras.1.1/plugins.qmltypes
    13. ./Desktop/Qt/474/gcc/imports/Qt/labs/components.1.1/plugins.qmltypes
    14. ./Desktop/Qt/474/gcc/imports/Qt/labs/components/native/plugins.qmltypes
    15. ./Desktop/Qt/474/gcc/imports/Qt/labs/components/plugins.qmltypes
    16. ./Desktop/Qt/4.8.0/gcc/plugins
    17. ./Simulator/Application/plugins
    18. ./Simulator/Qt/gcc/plugins
    19. ./Simulator/Qt/gcc/imports/simulatorHarmattan/com/nokia/extras.1.1/plugins.qmltypes
    20. ./Simulator/Qt/gcc/imports/com/nokia/extras.1.1/plugins.qmltypes
    21. ./Simulator/Qt/gcc/imports/com/nokia/meego/plugins.qmltypes
    22. ./Simulator/Qt/gcc/imports/com/nokia/symbian.1.1/plugins.qmltypes
    23. ./Simulator/Qt/gcc/imports/com/nokia/OviNotifications/plugins.qmltypes
    24. ./Simulator/Qt/gcc/imports/Qt/labs/components.1.1/plugins.qmltypes
    25. ./Simulator/Qt/gcc/imports/Qt/labs/components/native/plugins.qmltypes
    26. ./Simulator/Qt/gcc/imports/Qt/labs/components/plugins.qmltypes
    27. ./Demos/4.7/mobile/quickhit/plugins
    28. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/share/perl/5.10.1/CPANPLUS/Shell/Default/Plugins
    29. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/share/pyshared/twisted/plugins
    30. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/obex/plugins
    31. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/python2.6/dist-packages/twisted/plugins
    32. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/bluetooth/plugins
    33. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/csd/plugins
    34. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/qt4/plugins
    35. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/qt4/imports/com/nokia/meego/plugins.qmltypes
    36. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/qt4/imports/com/nokia/extras/plugins.qmltypes
    37. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/qt4/imports/com/meego/plugins.qmltypes
    38. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/qt4/imports/com/meego/extras/plugins.qmltypes
    39. ./Madde/sysroots/harmattan_sysroot_10.2011.34-1_slim/usr/lib/libproxy/0.2.3/plugins
    To copy to clipboard, switch view to plain text mode 

    The standalone path doesn't exist either.

    ------------------------------------------------------------------------------------------

    Hi Uwe,

    Are you just saying to install my distro's qwt package? I already did that...

    Mark
    Last edited by mark77; 11th April 2012 at 17:37.

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

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

    Quote Originally Posted by mark77 View Post
    Are you just saying to install my distro's qwt package? I already did that...
    Of course you also have to use the Qt packages of your distro - instead of installing the SDK manually !

    But when you really need to install Qwt yourself read the INSTALL file. It explains how to configure your environment, so that the plugin is loaded from where it is installed.

    Uwe

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

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

    Thanks Uwe, I have installed qwt by following the instructions in the INSTALL file. However it does not seem to create a plugin for qt-creator/designer, because when I look under Help->About Plugins I find it is not listed. So I want to know the directory where qt-creator/designer expects plugins to appear, so I can check if it is there or not...

  7. #7
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,321
    Thanks
    316
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

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

    ./QtCreator/lib/qtcreator/plugins
    Looks to me as though this would be the most logical place to put it. What else is in that directory? On my Windows installation of Qt 4.8, the Designer plugins are located in /plugins/designer under the Qt root directory. Things like arthurplugin, qwebview, qdeclarativeview, among others.

    I am not using QtCreator however. I use the qt-everywhere-opensource-src-4.8.0 distribution, and rebuild it all using the VC++ compiler.

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

  9. #9
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    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

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

    d_stranz (12th April 2012)

  11. #10
    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.

  12. #11
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    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.