Problems building Qt 5.9.4 from source on Windows
-
I did the following:
Install Visual Studio 2017
started a 'x86 native tools command prompt for VS 2017' cmd shell
downloaded and unzipped https://download.qt.io/official_releases/qt/5.9/5.9.4/single/qt-everywhere-opensource-src-5.9.4.zip to S:\Qt\5.9.4cd S:\Qt\5.9.4
set QTDIR=S:\Qt\5.9.4\qtbase
set PATH=%QTDIR%\bin;%PATH%
configure -opensource -confirm-license -opengl desktop -skip qtwebengine -nomake tests -nomake examples -no-plugin-manifests -debug-and-release -platform win32-msvc -verbose
nmake
Everything seemed to work ok. But when I try to build my application (which used SVG) I get:
Unknown module(s) in QT:svg
When I look at S:\Qt\5.9.4 I see there are qt5svg.dll files in:
S:\Qt\5.9.4\qtsvg\bin
S:\Qt\5.9.4\qtsvg\libBut they haven't been copied to S:\Qt\5.9.4\qtbase\bin . In fact S:\Qt\5.9.4\qtbase\bin looks rather empty.
I've wasted hours on this. Any ideas would be much appreciated.
-
I did the following:
Install Visual Studio 2017
started a 'x86 native tools command prompt for VS 2017' cmd shell
downloaded and unzipped https://download.qt.io/official_releases/qt/5.9/5.9.4/single/qt-everywhere-opensource-src-5.9.4.zip to S:\Qt\5.9.4cd S:\Qt\5.9.4
set QTDIR=S:\Qt\5.9.4\qtbase
set PATH=%QTDIR%\bin;%PATH%
configure -opensource -confirm-license -opengl desktop -skip qtwebengine -nomake tests -nomake examples -no-plugin-manifests -debug-and-release -platform win32-msvc -verbose
nmake
Everything seemed to work ok. But when I try to build my application (which used SVG) I get:
Unknown module(s) in QT:svg
When I look at S:\Qt\5.9.4 I see there are qt5svg.dll files in:
S:\Qt\5.9.4\qtsvg\bin
S:\Qt\5.9.4\qtsvg\libBut they haven't been copied to S:\Qt\5.9.4\qtbase\bin . In fact S:\Qt\5.9.4\qtbase\bin looks rather empty.
I've wasted hours on this. Any ideas would be much appreciated.
did you run
nmake install
? -
I never managed to get the build from source working on Windows. I had to install from binaries. but even that was a hassle. If anyone is interested there are more details here:
https://successfulsoftware.net/2018/04/08/getting-qt-5-9-working-on-windows-eventually/