Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED] Compiling creator against Qt5: unable to load plugins?

[SOLVED] Compiling creator against Qt5: unable to load plugins?

Scheduled Pinned Locked Moved Qt Creator and other tools
11 Posts 2 Posters 5.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    soroush
    wrote on last edited by
    #1

    I compiled QtCreator with MinGW64. When I try to start it, this happens:

    !http://s3.picofile.com/file/7611740642/error.png(error)!

    While specified file exist in the corresponding path.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      soroush
      wrote on last edited by
      #2

      New observation: The release build of QtCreator for 32bit has same problem. There is no problem with debug version of same build. Just works fine for 32 bit. I didn't tested for 64 bit debug build.

      I don't want to use debug version since it's about 1.2 GB. Release build is only 128 MB. I have not changed anything just added "-O3 -mtune=core2" for release compile flag. Is that safe? Should try another compile with no such flag set?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        soroush
        wrote on last edited by
        #3

        New observation: Sometimes after removing C:\Users<My Name>\AppData\Roaming\QtProject works :| Not always, just sometimes

        1 Reply Last reply
        0
        • S Offline
          S Offline
          soroush
          wrote on last edited by
          #4

          Profiling:

          @
          LoadLibraryExW("E:\x64\qt-creator-2.6.1-src\build\lib\qtcreator\plugins\QtProject\Core.dll", 0x0000000000000000, DONT_RESOLVE_DLL_REFERENCES) called from "QT5CORE.DLL" at address 0x0000000068AB4BA3.
          Loaded "CORE.DLL" at address 0x0000000065280000. Successfully hooked module.
          LoadLibraryExW("E:\x64\qt-creator-2.6.1-src\build\lib\qtcreator\plugins\QtProject\Core.dll", 0x0000000000000000, DONT_RESOLVE_DLL_REFERENCES) returned 0x0000000065280000.
          GetProcAddress(0x0000000065280000 [CORE.DLL], "qt_plugin_query_metadata") called from "QT5CORE.DLL" at address 0x0000000068AB4BEA and returned 0x00000000653B7AE0.
          Unloaded "CORE.DLL" at address 0x0000000065280000.
          LoadLibraryW("E:\x64\qt-creator-2.6.1-src\build\lib\qtcreator\plugins\QtProject\Core.dll") called from "QT5CORE.DLL" at address 0x0000000068AB8BD9.
          Loaded "CORE.DLL" at address 0x0000000065280000. Successfully hooked module.
          Unloaded "CORE.DLL" at address 0x0000000065280000.
          LoadLibraryW("E:\x64\qt-creator-2.6.1-src\build\lib\qtcreator\plugins\QtProject\Core.dll") returned NULL. Error: The specified module could not be found (126).

          @

          1 Reply Last reply
          0
          • K Offline
            K Offline
            koahnig
            wrote on last edited by
            #5

            Just a couple of thoughts.
            Do I get this correct assuming that you use qt creator compiled and linked against Qt 5?
            The question is if you really have to do this.
            Are you sure that your Qt libs and the Qt creator have been compiled with the same compiler version?

            Vote the answer(s) that helped you to solve your issue(s)

            1 Reply Last reply
            0
            • S Offline
              S Offline
              soroush
              wrote on last edited by
              #6

              [quote author="koahnig" date="1357587111"]
              Do I get this correct assuming that you use qt creator compiled and linked against Qt 5?
              [/quote]
              Yes

              [quote author="koahnig" date="1357587111"]
              The question is if you really have to do this.
              [/quote]
              Yes, duo to hard disk limitations I would like remove all redundancies. (No more Qt4 DLLs)

              [quote author="koahnig" date="1357587111"]
              Are you sure that your Qt libs and the Qt creator have been compiled with the same compiler version?
              [/quote]
              Yes. To make sure I just moved whole Qt Creator build folder to a new machine with no Qt and MinGW installed on and copied all DLL s beside executable. Same error occurs.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                soroush
                wrote on last edited by
                #7

                Any idea?

                I can remember running Qt Creator successfully just don't remember how! Only thing I did was removing a folder from AppData

                1 Reply Last reply
                0
                • K Offline
                  K Offline
                  koahnig
                  wrote on last edited by
                  #8

                  [quote author="soroush" date="1357590955"]Any idea?

                  I can remember running Qt Creator successfully just don't remember how! Only thing I did was removing a folder from AppData[/quote]
                  Under AppData you might have removed ...\AppData\Roaming\QtProject and ...\AppData\Roaming\QtProject\qtcreator . QtProject holds already the creator ini-file.
                  There are all the settings stored to my understanding "(see also).":http://qt-project.org/forums/viewthread/22989/

                  Hope you have secured a proper backup before you started to mess around with deleting files.

                  AFAIK qt creator is still Qt4 based compilation. It might be a bit premature to start compiling it against Qt5. You might have to dig a bit for more details. This is more a gut feeling on my side. I am still staying away from Qt5 ;-)

                  You might want to change the title of your thread in order to attract some of creator people. They can tell you probably right away if you are sailing in the right direction at all.

                  Maybe the title "Compiling creator against Qt5: Why I'm getting this error?" would help.

                  Vote the answer(s) that helped you to solve your issue(s)

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    soroush
                    wrote on last edited by
                    #9

                    Deleting contents of TEMP folder, QtCreator works fine. Seems there are so many problems with using more that one version of QtCreator on a machine. temp folder contains a lot of qt_plugin_...lock files.

                    1 Reply Last reply
                    0
                    • K Offline
                      K Offline
                      koahnig
                      wrote on last edited by
                      #10

                      Good to know that your problem is solved :-)
                      Also good to know that qt creator may be compiled against Qt5.

                      Vote the answer(s) that helped you to solve your issue(s)

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        soroush
                        wrote on last edited by
                        #11

                        Ah... Sorry! That was not related to temp files. In fact, installing runtime libs solved my issue (not deleting temp). The problem is that Qt Creator loads A LOT OF libraries dynamically. It needs Qt5Script.dll, Qt5Designer.dll, Qt5WebKit.dll, Qt5Help.dll, Qt5V8.dll and Qt5Concurrent.dll.

                        These are not detected by dependency walker unless in profiling mode. Unfortunately profiling is very slow (almost unusable). And Qt Creator won't describe problems properly.

                        Using Qt5 looks stable enough. I tested basic features like + git + QML and some other things. All good :)

                        !http://s2.picofile.com/file/7612946769/qt_creator.png(Qt Creator + Qt5)!

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved