Unsolved Building my own Qt and using it in Qt Creator
-
I've built my own Qt (for 32bit Windows QWebEngine) and I'm having problems running my app that uses it via Qt Creator. I can build it okay when I add the Qt Version & a Kit based on it, but when I try to run it under Qt Creator, it says it is having a problem finding the "platforms" folder. If I add a qt.conf file in the same folder as my app executable that points to my Qt 5.12.3 installation, it works. But I don't really want to do that, as I share this with other people and I don't want them to have to create a qt.conf, because where they put the Qt might not be the same place.
I don't need the qt.conf file if I am using a Qt installed by the Qt Maintenance Tool. So I am thinking there must be something else when I create the Kit or the Qt Version for my own Qt build, to tell Qt Creator where to find it when it runs my app. Or does that only work for "Auto-detected" kits?
-
Hi,
Did you call
nmake install
after you build of Qt ended ? -
Yes, I called install. Then I add my qt.conf file:
[Paths] Documentation=../../Docs Examples=../../Examples Prefix=..
to the bin folder and zip that up. Now I can move that zip anywhere and use that in Qt Creator as a Qt Version and create a Kit from it. So I can build just fine.
But if I try to run from Qt Creator, it complains about not finding the 'platforms' folder. If I add a qt.conf file to the build folder where my app ends up, pointing to my Qt installation, it works fine. But I don't want to do that step and it certainly isn't done when I use the Qt installed via the Maintenance tool. So what else do I need to do so that I can run my app via Qt Creator without having to carry around a qt.conf?
-
What options did you use to build Qt ?
-
@SGaist Here's my configure line:
%_ROOT%\configure -prefix %_ROOT%\..\5.12.1-32-release -nomake examples -nomake tests -skip qtandroidextras -skip qtgamepad -skip qtmacextras -skip qtquickcontrols -skip qt3d -skip qtcanvas3d -skip qtx11extras -skip qtactiveqt -skip qtcharts -skip qtdatavis3d -skip qtpurchasing -skip qtquickcontrols2 -skip qtvirtualkeyboard -skip qtwayland -opensource -opengl dynamic -confirm-license -I %_OPENSSL%\include -L %_OPENSSL%\lib\windows\lib32\release
I can build with it just fine. I just have to use a qt.conf to run with it via Qt Creator and was wondering why it is different than the Qt versions installed by the maintenance tool.
-
Did you change Qt version in between ? You mention 5.12.3 before but now it's 5.12.1. Which is it ?
-
Sorry, it is 5.12.3. That's just the readme I used to jot down config notes from the first time I built it with 5.12.1