Results 1 to 10 of 10

Thread: Cannot load Qt Plugin in Visual Studio!

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2010
    Location
    Algeria
    Posts
    23
    Thanks
    5
    Thanked 1 Time in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Exclamation Cannot load Qt Plugin in Visual Studio!

    Hi;
    I have a QtCreator project content Qt Plugin projects and Qt Application (Plugin Manager), be able to charge this plugin with Mingw (it worked);
    I use VS addin-Qt in VS 2008 (VC++), and open my project, I build;
    The Manager cannot be able to load this plugins (.dll)!!
    Help me?

    Thanks?

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: Cannot load Qt Plugin in Visual Studio!

    Please explain that again. The only thing I think I get is that you are trying to create a Qt Creator plugin in Visual Studio and it doesn't work?

    So, here's a tip:
    Explain in great detail what you did and what didn't work.

  3. #3
    Join Date
    Sep 2010
    Location
    CA
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot load Qt Plugin in Visual Studio!

    I am running into a problem while trying to use the Qt Plugin for Visual Studio 2010. As the problem is somewhat related to the title, I preferred to write in this post instead of opening a new one.

    I am trying to integrate Qt with VS2010, to do so I have installed the last Visual Studio add-in, which I correctly installed for VS2010 (Qt menu appears in VS).

    I also installed Qt SDK C++ 4.7, which is supposed to be the last version. It also works fine.

    The problem comes when I try to set the Qt version in the Qt Options menu. When I select the path of the current installation, it isn't accepted because:

    Qt in the given path was built using MinGW

    Do I have to rebuild the source code or am I missing something?

    Thanks for your help!

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    2,447
    Thanks
    6
    Thanked 348 Times in 333 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot load Qt Plugin in Visual Studio!

    You have to rebuild Qt using Visual Studio. See the deployment guide: http://doc.qt.nokia.com/4.7/deployment.html

  5. The following user says thank you to squidge for this useful post:

    Sergi (24th September 2010)

  6. #5
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot load Qt Plugin in Visual Studio!

    Yes, You must rebuild Qt with Visual Studio. I think that it will be better to download and install not Qt SDK but Qt for Visual Studio.

  7. #6
    Join Date
    Sep 2010
    Location
    CA
    Posts
    2
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Cannot load Qt Plugin in Visual Studio!

    Thanks! After I rebuild it (it took a long time), it is working fine.
    Last edited by Sergi; 24th September 2010 at 17:31. Reason: updated contents

  8. #7
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot load Qt Plugin in Visual Studio!

    Hi all, this is my first post. An unhappy post...

    I'm new to QT and I'm experiencing a lot of troubles installing it.
    Fisrt, I installed QT4.7 on a XP SP3 32bit + VS2010 system. It wasn't flawless at all. Two errors occured.
    1. qmake stopped with fatal error U1077... (configure -platform win32-msvc2010 -no-webkit) It turned out that deleting some *.tmp files solves the problem but hey, why are those files there anyway?!? (this helped : http://www.qtforum.org/article/31561...libraries.html)
    2. after all compiled, another error popped out: the qt version setting in VS add-in 1.1.7 failed. It just couldn't be set. The error message was the same as the one at Sergi. When I typed in the path C:\Qt\2010.05\qt\ :
    Qt in the given path was built using MinGW

    ehh... what MinGW?! :S I've built qt using MSVC command prompt as the install instructions said.
    I tried fixing it many ways, none was successful. After having rebooted my machine, it still didn't work. Then after a while I wanted to show this error to someone and the setting was just done. I don't know, how. Before, I haven't got any valid qt version set, now I have.
    Finally it was working but... it was NOT easy and I still don't know the trick. I cannot imagine a reason why should a plain qt installation be full of tricks... :/


    Second:
    I wanted to repeat the above process on another machine (win7 64bit + VS2010 32 bit)
    The compilation process wasn't clean here too. After the same configure command I got a different error. Funny, but simply entering qmake again solved the "problem". WHY?? How can it be?
    I'm not used to building systems with non-deterministic behavior. Not working? Let's try the same again and pray.

    And the real question: in the add-in I experienced the same uninterpretable error message as before: Qt in the given path was built using MinGW
    Last time some random actions resulted in setting the qt version properly. Now I just don't get the same result.


    What to do now?

  9. #8
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot load Qt Plugin in Visual Studio!

    not qmake
    nmake instead...

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

    Default Re: Cannot load Qt Plugin in Visual Studio!

    Quote Originally Posted by xropi View Post
    I'm not used to building systems with non-deterministic behavior.
    Format your disk and install Linux, you'll have deterministic behaviour.

    And the real question: in the add-in I experienced the same uninterpretable error message as before: Qt in the given path was built using MinGW
    Oh, I can easily interpret that even without you using really large font as if you wanted us to ignore your post. You didn't download Qt sources like you should have but instead you downloaded the binary Qt SDK containing a MinGW installation and pointed Creator to the version of Qt contained in the SDK so I'm really not suprised the tool determined you were using a MinGW built Qt.

    If you want trouble, you'll get trouble, no matter how straightforward the things really are. <sarcasm>I suggest you take your Windows installation CD/DVD and try rebuilding Windows with MinGW. Then complain to Microsoft that you can't and it's probably the fault of Microsoft not supporting MinGW with their system.</sarcasm>
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  11. #10
    Join Date
    Oct 2010
    Posts
    3
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Cannot load Qt Plugin in Visual Studio!


Similar Threads

  1. Qt Visual Studio Add-in for Visual Studio 2010??
    By jiapei100 in forum Installation and Deployment
    Replies: 3
    Last Post: 5th July 2010, 13:14
  2. Create plugin in Visual Studio
    By estel in forum Installation and Deployment
    Replies: 2
    Last Post: 9th March 2010, 23:40
  3. Cannot load SQL driver in Visual C++ (but works in QtCreator)
    By Tomis in forum Installation and Deployment
    Replies: 2
    Last Post: 5th November 2009, 15:32
  4. Visual Studio Add-in
    By dima in forum Installation and Deployment
    Replies: 3
    Last Post: 5th August 2009, 06:36
  5. Replies: 5
    Last Post: 30th March 2007, 18:46

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.