Search code examples
c++windowsqtdllcom

Qt Widget Application "Library not registered" error


I've just recently started out with Qt and created a simple Qt Widgets application. When I build and run the application (even if I make a fresh project with no new code in it) I get the following error messages:

mincore\com\oleaut32\dispatch\ups.cpp(2128)\OLEAUT32.dll!74445072: (caller: 7444FE4F) ReturnHr(1) tid(188) 8002801D Library not registered. mincore\com\oleaut32\dispatch\ups.cpp(2128)\OLEAUT32.dll!74445072: (caller: 7444FE4F) ReturnHr(2) tid(188) 8002801D Library not registered.

My Qt install and Windows are both up to date. I've been searching for a solution for a couple hours now and I can't find anything even remotely relevant to the problem online... Has anyone else anywhere had a similar issue?

Update:

I just completely removed Qt from my PC and did a fresh install and I am still getting the same messages.


Solution

  • Ugh. This problem wrecked my sunday.

    I'm on QT 5.9.1, Windows 10, Surface Book.

    I tried reinstalling windows, didn't work. I tried reinstalling Microsoft Runtime, didn't work. Reinstalled QT in a million different ways, didn't work.

    So I was on the latest updates, and checked my oleaut32.dll version - 1.1.15063.0. According to an old forum post I found around, this error can be caused by the application requesting a newer version of oleaut32.dll than you have. So I jumped onto the insider preview versions (picking the slow ring) and was upgraded to release 10.0.16251 which also upgraded my oleaut32.dll. Fixed it, no error anymore. QT creator finally works.

    I guess QT requires you to be on beta windows now?