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. Newbie needs static compile assistance
Forum Updated to NodeBB v4.3 + New Features

Newbie needs static compile assistance

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 2 Posters 215 Views
  • 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.
  • A Offline
    A Offline
    actor39
    wrote on last edited by
    #1

    I began learning Qt about 3 weeks ago, and I am totally self-taught. I have managed to negotiate Qt Creator, and have developed a fairly (for me) complicated program which works really well! I am using Qt 5.14.1, and the MinGW 64-bit compile kit version 7.3.0, the opensource package. So I am at the point where I want to run this program on another computer, and I understand I need a second version of Qt, compiled for static development. So I found instructions here: https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW, and I followed them. Unfortunately the compile process ended with errors, and I did not document what they were. But now I have lots of stuff in the \Qt\static folder, and I can't seem to use them. So I am hoping for some advice about what to do next. Should I attempt to reinstall the static version? If so, should I remove the existing static residue first? And if so, how do I do that? I am hoping to get a static version I can employ from Qt Creator. I keep thinking that it should not be s...\o hard to do this. But I am a newbie, and I realize there is lots I don't yet understand which probably would make this process seem more simple. I hope someone can help! One of the problems I encountered is that I could not find a Qt installation file named "qt-everywhere-opensource-src-5.14.1.zip", which the instructions seemed to specify. I did find a file named "qt-everywhere-src-5.14.1.zip" which I used. I'm wondering if this was the right install file to use. I see a note in this forum that "Static linking of Qt requires a license." If this is correct, it explains a lot! In case it is correct, do I have any other options for porting the program to another computer? Thanks in advance.

    jsulmJ 1 Reply Last reply
    0
    • A actor39

      I began learning Qt about 3 weeks ago, and I am totally self-taught. I have managed to negotiate Qt Creator, and have developed a fairly (for me) complicated program which works really well! I am using Qt 5.14.1, and the MinGW 64-bit compile kit version 7.3.0, the opensource package. So I am at the point where I want to run this program on another computer, and I understand I need a second version of Qt, compiled for static development. So I found instructions here: https://wiki.qt.io/Building_a_static_Qt_for_Windows_using_MinGW, and I followed them. Unfortunately the compile process ended with errors, and I did not document what they were. But now I have lots of stuff in the \Qt\static folder, and I can't seem to use them. So I am hoping for some advice about what to do next. Should I attempt to reinstall the static version? If so, should I remove the existing static residue first? And if so, how do I do that? I am hoping to get a static version I can employ from Qt Creator. I keep thinking that it should not be s...\o hard to do this. But I am a newbie, and I realize there is lots I don't yet understand which probably would make this process seem more simple. I hope someone can help! One of the problems I encountered is that I could not find a Qt installation file named "qt-everywhere-opensource-src-5.14.1.zip", which the instructions seemed to specify. I did find a file named "qt-everywhere-src-5.14.1.zip" which I used. I'm wondering if this was the right install file to use. I see a note in this forum that "Static linking of Qt requires a license." If this is correct, it explains a lot! In case it is correct, do I have any other options for porting the program to another computer? Thanks in advance.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @actor39 said in Newbie needs static compile assistance:

      and I understand I need a second version of Qt, compiled for static development

      No you don't.
      Use windeployqt tool to create a package containing your application and all needed libraries: https://doc.qt.io/qt-5/windows-deployment.html
      Usually applications are deployed like this. Static builds are not that common.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      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