Unsolved Qt Static Build 'Runtime Mismatch' MSVC
-
@SGaist That's what I tried to do. I followed the tutorial linked above which is suppose to ready Qt to be statically compiled (Multi-Threaded), yet I still receive that error.
-
Do you have any other dependency ?
Did you cleanup everything from your project before starting to use your self-built Qt ?
Did you try to build a default application with Qt Creator using your static Qt ?
-
@SGaist No I am installing Qt Creator right now to test that, but I fresh installed Qt Source so I assume it is cleaned? No other dependencies.
//Edit
I can dynamically compile with my static build, yet when I change from MDd to MTd I get the RuntimeLib error. Is this a bad sign? -
Are you sure you are using your self-built Qt ?
-
@SGaist Yes. I tried to use Qt creator to test, but it was crying about not finding CL (MSVC Compiler) and I couldn't be bothered to fix one error just to test another.
-
I really just need to know what file to change from MD to MT. I believe my build is statically compiled because it throws no (other) errors, but one file somewhere still says MD which prevents it from building.
-
When you build Qt statically, did you do any modification to use the static runtime ?
Otherwise, even if you build Qt statically, it uses the dynamic runtime.
-
@SGaist I believe so. I used configure.bat with static option and compiled with NMAKE. I did everything the tutorial said, but the tutorial was for an older (5.7) Version of Qt does this change anything? Is there an official Qt Static Compilation tutorial?
-
Turns out my Microsoft Visual Studio was using the wrong Qt version (Not my static one) after changing it to the right one I no longer get MT mis matches (in fact if I try to compile with MD I get mismatches :) ), but I now have 159 unresolved externals. Have I done something wrong?
-
What are these externals ?