Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. static compile
Qt 6.11 is out! See what's new in the release blog

static compile

Scheduled Pinned Locked Moved Solved General and Desktop
10 Posts 2 Posters 3.2k 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.
  • V Offline
    V Offline
    vicarod
    wrote on last edited by
    #1

    I created a project in Qt 5.3 that dynamically compiles correctly. Now I want to compile static . I have made all necessary settings , but when I want to compile static the same project an error occur : "Unknown module (s ) in QT : script " . If I create a new project and compile static it works well . What can I do. Thanks.

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

      Hi
      It sounds like you have
      QT += script
      in that project?

      and maybe compiled with
      -no-script

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vicarod
        wrote on last edited by
        #3

        Hi,
        No I have not

        QT += script
        in project

        and in compilation I used only
        configure -static -release -opensource -opengl desktop.

        1 Reply Last reply
        0
        • V Offline
          V Offline
          vicarod
          wrote on last edited by
          #4

          sorry
          it is a QT += script in a librarie I use in project. Should I delete that?

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vicarod
            wrote on last edited by
            #5

            I use QtRPT in my project.

            mrjjM 1 Reply Last reply
            0
            • V vicarod

              I use QtRPT in my project.

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @vicarod said:

              Unknown module (s ) in QT : script

              Should not come from QtRPT

              You can try to make new project and compile. if it works then
              add
              QT += script
              and see if that is the reason for error.
              In that case, for some reason your version of Qt dont have this module.

              1 Reply Last reply
              0
              • V Offline
                V Offline
                vicarod
                wrote on last edited by
                #7

                I added and not work. I will try to install script module. Thanks.

                mrjjM 1 Reply Last reply
                0
                • V vicarod

                  I added and not work. I will try to install script module. Thanks.

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @vicarod
                  Ok.
                  https://wiki.qt.io/Building_Qt_Creator_from_Git
                  says you can build with

                  make module-qtscript

                  V 1 Reply Last reply
                  0
                  • mrjjM mrjj

                    @vicarod
                    Ok.
                    https://wiki.qt.io/Building_Qt_Creator_from_Git
                    says you can build with

                    make module-qtscript

                    V Offline
                    V Offline
                    vicarod
                    wrote on last edited by
                    #9

                    @mrjj i run "qmake -r ../qt-creator/qtcreator.pro" from qt-creator-build directory and qt command line for mingw, as in documentation. then i run from the same directory "mingw32-make module-qtscript". error, it says "mingw32-make: *** No rule to make target 'module-qtscript'. Stop.".

                    1 Reply Last reply
                    0
                    • V Offline
                      V Offline
                      vicarod
                      wrote on last edited by
                      #10

                      I solved the problem. I suppose that the error came from the fact that I change the Qt version (from 5.3 to 5.5) when I compiled static. I reset the original Qt version and it works. But after compilation and creation of the exe file, I must add these dll-s from c:\Qt\5.3\mingw482_32\bin\ : ibstdc++-6.dll, libwinpthread-1.dll,
                      libgcc_s_dw2-1.dll. Thanks again.

                      1 Reply Last reply
                      2

                      • Login

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