[SOLVED] Compiling creator against Qt5: unable to load plugins?
-
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.
-
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?
-
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).@
-
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? -
[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. -
[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.
-
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)!