Results 1 to 20 of 25

Thread: Qwt plugins in Qt Creator

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jul 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qwt plugins in Qt Creator

    Hello,

    I'm using Windows 7 and would like to use Qwt designer plugin in Qt Creator.

    I do see qwt designer plugins in Qt Designer, but I can't figure out how to use the plugins in Qt Creator.

    I saw somewhere that I have to compile Qwt with vc++ using nmake so I tried but this gave me some errors.


    Does anyone uses Qwt designer plugin in Qt Creator? If so could you please tell me how did u install it?

    Thanks in advance!

    Jordan

  2. #2
    Join Date
    Mar 2010
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plugins in Qt Creator

    Hi Jordan,

    Well, to be honest I did install Qwt plugin on QtCreator, but using MinGW. I'm gonna tell how I did and maybe can help you.

    1. Download http://get.qt.nokia.com/misc/MinGW-gcc440_1.zip and extract it to C:\MinGW.
    2. Download http://get.qt.nokia.com/qt/source/qt....6.3-mingw.exe and install on your machine using MinGW that you downloaded before.
    3. Download http://get.qt.nokia.com/qtcreator/qt...-1.3.1-src.zip and extract it to C:\.
    4. Open Qt 4.6.3 Command Prompt as administrator if your using Win7 or Vista, go to C:\ and create a dir as "qt-creator-1.3.1-build",enter the folder and type as follow:
      Qt Code:
      1. qmake.exe C:\qt-creator-1.3.1-src\qtcreator.pro -spec win32-g++ -r CONFIG+=release
      To copy to clipboard, switch view to plain text mode 
      Qt Code:
      1. mingw32-make release
      To copy to clipboard, switch view to plain text mode 
    5. While you wait for it to finish compiling this new version of QtCreator, you can compile Qwt as well. ( don't forget one detail: you need to compile all as "release". )
    6. After all done, just install Qwt plugin in Qt folder ( usually as C:\Qt\4.6.3\plugins\designer ) as well the binaries and libraries needed for it.


    If everything goes well, that I hope so, the new build of qtcreator will work with Qwt just fine.

    Any questions, just post them here and I'll take a look.

    Best Regards,
    Carlos

  3. #3
    Join Date
    Jul 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plugins in Qt Creator

    Thanks for a reply, Carlos.

    I tried to follow your way, and I thought I got it working, but I get different errors now.
    Maybe I compiled it wrong or something so I want to give it a few more try, but my supervisor really wants me to ask on the forum about this.
    So here it goes.

    I installed Qt and Qt Creator, and compiled qwt too. But I still can't find qwt designer plugins and when I check the list of the plugins, I see qwt designer plugins under Failed Plugins.
    It says it "Cannot load library C:/Qt/4.6.3/plugins/designer/qwt_designer_plugin5.dll: The specified module could not be found."
    Also, when I try to run the qwt examples, it builds okay but I get "C:\qwt-5.2.1\examples\bin\simple.exe exited with code -1073741515" this and it just exits.
    So I'm assuming I did something wrong when I installed qwt..

    I'm going to keep working on this but I also want to hear from you too.
    Thank you very much!

  4. #4
    Join Date
    Jul 2010
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plugins in Qt Creator

    I got it working! Finaly!

    I forgot to compile qwt as release. I recompiled it, and all works fine!

    Thank you!

  5. #5
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt plugins in Qt Creator

    hii,
    I am also getting the same message "qt exited with code -1073741515". I don't know how to compile qwt as release. Can you please help me out. In the Set build configuration, it is not giving the option of release.

    Thanks!!
    Ashish

  6. #6
    Join Date
    Mar 2010
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plugins in Qt Creator

    Hi Ashish,

    To build qwt as release, all you have to do is enter the folder where you extract qwt sources and type:
    Qt Code:
    1. qmake.exe qwt.pro -spec win32-g++ -r CONFIG+=release
    To copy to clipboard, switch view to plain text mode 
    Qt Code:
    1. mingw32-make release
    To copy to clipboard, switch view to plain text mode 

    and wait.

    after that copy the libs and dlls again to the qt folders and thats it.

  7. The following user says thank you to iuha for this useful post:

    itsmekrazzy4 (13th July 2010)

  8. #7
    Join Date
    Jul 2010
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qwt plugins in Qt Creator

    Hey thnx, the thing works well now!!

  9. #8
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plugins in Qt Creator

    OK, So I've been scratching my head over this for a while now (roughly a week 8-10hour/day). Basically I have tried every guide I have found and read every thread that I've come across on the subject but still no Qwt plugin in Qt Designer/Creator.

    If we focus on the method described above:
    I follow the first post by juha exactly with the exception that I use the Qt 4.7.0 instead of 4.6.3 and that I use the source for QtCreator 2.0.1 instead of 1.3.1.
    I do the qmake/mingw make exactly as he describes and then I do the same for qwt as juha describes in his second post.
    Everything goes well and I get no errors or anything like that.

    I copy the two files in C:\Qt\qwt-5.2.1\designer\plugins\designer (one *.dll and one *.a) to the folder C:\Qt\4.7.0\plugins\designer.
    I copy the two files in C:\Qt\qwt-5.2.1\lib (one *.dll and one *.a) to the folder C:\Qt\4.7.0\lib.

    But still. When I run designer from the start-menu I don't get the qwt-widgets available from the "toolbox" and under Help->About Plugins, sure enough, qwt is listed in the bottom as a failed plugin:
    "Cannot load library C:/Qt/4.7.0//plugins/designer/qwt_designer_plugin5.dll: 'Can't find the module' " Where 'Can't find the designated module' is a rough translation from Swedish.
    There are also two other failed plugins listed here:
    containerextensiond.dll and taskmenuextensiond.dll with the reason "uses incompatible Qt library......" if that could be of any help.

    This is actually not a real problem since I don't normally use the standalone Qt Designer. I prefer Qt Creator with its built in designer.
    However, when I try to run my freshly release-compiled qtcreator.exe (in C:\qt-creator-2.0.1-build\bin) I get an error saying that the program cannot be started since the file mingwm10.dll is missing on my computer, I also tried launching the .exe from Qt command prompt in hope that it would consider looking in the MinGW-folder but no difference. The .dll-file in question can be located in the C:/MinGW/bin-folder so I copied it and pasted it into the qtcreator.exe-folder and then it complains about some other dll so I do this with a couple of dlls from MinGW and then finally it says that there is an error in QtCore4.dll.
    'Can't find the procedure-start-address _Z17qt_message_output9QtMsgTypePKc in the DLL-file QtCore4.dll.'

    So what to do here?
    As you may understand I'm starting to get really frustrated over this and any help that might be given would be very much appreciated.

    Thank You!
    /Tottish

  10. #9
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plugins in Qt Creator

    OK, so now I have tried it all over again but with the exact files (versions) that juha is linking to in his first post. The result have the exact same behavior as in my post above so I guess this is not a version-issue.

    I realize that this is not an actual problem with the building of qwt (since I don't get Creator up and running with or without qwt) but since everything else has failed I need help getting Creator to run this way so that I might see if I can use the qwt widgets there.

    Thank you.
    /Tottish

  11. #10
    Join Date
    Mar 2010
    Posts
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plugins in Qt Creator

    Hi Tottish,

    Have you tried that with qwt 6.0?
    I had the same problems with qt 4.7.0, qtcreator 2.0.1 and qith qwt 5.2.1. However, when i tried the qwt 6.0 from svn in qwt website, the problem was solved.
    I honestly don't know exactly the issue there, but i think it can be a possible incompatibility.
    Try that and see if it works.

    Best Regards,

    iuha

  12. #11
    Join Date
    Mar 2010
    Posts
    77
    Thanks
    17
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qwt plugins in Qt Creator

    Hello juha!

    Well no, I haven't. However as my last post indicate I did try with the exact same files you used with the exact same errors as I got when using 4.7.0 and 2.0.1. Since I can't launch the qtcreator.exe we need to solve that problem first and then maybe (if I'm lucky) the qwt plugin will work in the Creators built in designer.
    Any ideas on why my Creator won't launch? I feel as if it's only then I can know for sure that I messed something up with the qwt build since only creator is made explicitly in release mode. I'm guessing that qt-win-opensource-4.6.3-mingw.exe also builds in release mode but I don't know that sort of stuff. =)
    How can I get it to find the dll's it needs? I tried to copy them into the folder but there must be a better way?

    Thank you for your response!
    /Tottish

    EDIT:
    Oh!... and I'm on win7 home premium 64-bit if that might have to do with it.

Similar Threads

  1. Mac OS, plugins that user designer plugins
    By Royceybaby in forum Qt Programming
    Replies: 0
    Last Post: 9th May 2010, 01:40
  2. Why can Qt Creator use QPluginLoader to load plugins?
    By MorrisLiang in forum Qt Programming
    Replies: 4
    Last Post: 25th April 2010, 16:00
  3. Designer plugins in Qt Creator
    By stefan in forum Qt Tools
    Replies: 9
    Last Post: 8th March 2010, 05:51
  4. Replies: 0
    Last Post: 30th August 2009, 22:44
  5. Plugins
    By Michiel in forum General Programming
    Replies: 3
    Last Post: 25th March 2006, 12:37

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.