Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Error with Qt Static link
Forum Updated to NodeBB v4.3 + New Features

Error with Qt Static link

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
10 Posts 3 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sven123
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • S Offline
        S Offline
        Sven123
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          So did you actually look into the log files?
          I would guess you're missing perl.

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Sven123
            wrote on last edited by Sven123
            #5

            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)
            

            Error.log

            Output.log

            1 Reply Last reply
            0
            • S Offline
              S Offline
              Sven123
              wrote on last edited by
              #6

              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.
              
              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Did you do that from a clean state ?
                If you have stale files from a previous build attempt, that might cause issues.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  Sven123
                  wrote on last edited by
                  #8

                  The problem occurred after I installed Python.

                  However, I completely uninstalled QT again and deleted all folders and files from C:\QT and reinstalled them. However, I get the message again.

                  Or do you mean uninstall Python, Perl, Ruby too?

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    Neither, I was just talking about the files generated during your build attempts.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    0
                    • S Offline
                      S Offline
                      Sven123
                      wrote on last edited by
                      #10

                      As I said, I had deleted the complete QT directory as well.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved