Error with Qt Static link
-
I wanted to link QT statically using this guide and have followed the steps to do so, however when I run the "qt-windows-static-build.ps1" I always get the error message at the end:
mingw32-make: *** No targets specified and no makefile found. Stop. mingw32-make: *** No rule to make target 'install'. Stop. Out-File : Ein Teil des Pfades "C:\Qt\Static\6.1.3\mkspecs\win32-g++\qmake.conf" konnte nicht gefunden werden. In C:\Qt\qt-windows10-static-build.ps1:167 Zeichen:6 + "@ | Out-File -Append $File -Encoding Ascii + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (:) [Out-File], DirectoryNotFoundException + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.OutFileCommand
Looked but the file exists under the path.
Here are my customized lines:param( $QtSrcUrl = "https://download.qt.io/official_releases/qt/6.1/6.1.3/single/qt-everywhere-src-6.1.3.zip", $QtStaticDir = "C:_QtStatic", # NO TRAILING SLASH $QtVersion = "6.1.3", #If you change this, you'll need to change the URL above to download as well... $MingwDir = "", [switch]$NoPause = $false )
What else could my errors be?
-
Hi and welcome to devnet,
You are mentioning a guide but you did not link to it so it's pretty much impossible to diagnose your issue.
-
Sorry but in the meantime I've made some progress.
I downloaded the source and unpacked it in /src.Using the CMD I executed the command:
configure -release -opensource -confirm-license -prefix C:\Qt\Build
but now I get a new error message:
-- The tool 'Qt6::cmake_automoc_parser' is built from source. -- Using PCRE2 bundled with Qt. -- Using source syncqt found at: C:/Qt/Src/qtbase/libexec/syncqt.pl -- Runs syncqt for the module: 'QtCore'. CMake error at qtbase/cmake/QtModuleHelpers.cmake:206 (message): Error running syncqt, return code: The system cannot find the specified file cannot be found Call stack (last call first): qtbase/src/corelib/CMakeLists.txt:29 (qt_internal_add_module). -- Configuration incomplete, error occurred! See also "C:/Qt/Src/CMakeFiles/CMakeOutput.log". See also "C:/Qt/Src/CMakeFiles/CMakeError.log". CMake error at qtbase/cmake/QtProcessConfigureArgs.cmake:828 (message): CMake was terminated with code 1.
Perl is installed and also the paths are set correctly.
-
So did you actually look into the log files?
I would guess you're missing perl. -
I have looked at the log file, I am not quite clear from it.
I have attached it, maybe someone can take a look at it.Perl is installed, the output:
perl -v
gives this output:
This is perl 5, version 28, subversion 1 (v5.28.1) built for MSWin32-x64-multi-thread (with 1 registered patch, see perl -V for more details). Copyright 1987-2018, Larry Wall Binary build 0000 [25391a6d] provided by ActiveState http://www.ActiveState.com Built Oct 28 2020 18:24:51 Perl may only be copied under the terms of either the Artistic License or the GNU General Public License, which can be found in the Perl 5 source code kit. Full documentation for Perl, including FAQ lists, can be found on this system with "man perl" or "perldoc perl". If you have access to the Internet Internet, point your browser to http://www.perl.org/, the Perl home page. Translated with www.DeepL.com/Translator (free version)
-
I have now installed Python, but now I get the following error message right at the beginning:
C:\Qt\src>configure -release -opensource -confirm-license -prefix C:\Qt\Build + cd qtbase + C:\Qt\src\qtbase\configure.bat -top-level -release -opensource -confirm-license -prefix C:\Qt\Build CMake Error: Parse error in command line argument: -DOUT_FILE Should be: VAR:type=value CMake Error: Problem processing arguments. Aborting.
-
Did you do that from a clean state ?
If you have stale files from a previous build attempt, that might cause issues. -
Neither, I was just talking about the files generated during your build attempts.