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. Qt Static Build Configuration

Qt Static Build Configuration

Scheduled Pinned Locked Moved Solved General and Desktop
5.10.1static buildnmakemsvc2015static
4 Posts 2 Posters 1.2k 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.
  • E Offline
    E Offline
    ed-wright
    wrote on 5 Jul 2018, 09:49 last edited by
    #1

    Hi Qt Forum,

    I have recently built the static version of Qt 5.10.1 using the qt-everywhere-src. During the build process I use the following command.

    configure -release -nomake examples -nomake tests -skip qtwebengine -opensource -static -prefix C:\QT\qt-everywhere-src-5.10.1 -redo -recheck-all
    

    I wish to understand all of the options and the documentation about the available options seems to be lacking, or i can't find it. My question is what does the -opensource option do? I have a Qt commercial licence so do I need to remove it or should I use another flag?

    Furthermore, if i want to build Qt for a 64 bit application what changes do I make to this process?

    Thanks in Advance

    K 1 Reply Last reply 5 Jul 2018, 10:12
    0
    • E ed-wright
      5 Jul 2018, 09:49

      Hi Qt Forum,

      I have recently built the static version of Qt 5.10.1 using the qt-everywhere-src. During the build process I use the following command.

      configure -release -nomake examples -nomake tests -skip qtwebengine -opensource -static -prefix C:\QT\qt-everywhere-src-5.10.1 -redo -recheck-all
      

      I wish to understand all of the options and the documentation about the available options seems to be lacking, or i can't find it. My question is what does the -opensource option do? I have a Qt commercial licence so do I need to remove it or should I use another flag?

      Furthermore, if i want to build Qt for a 64 bit application what changes do I make to this process?

      Thanks in Advance

      K Offline
      K Offline
      koahnig
      wrote on 5 Jul 2018, 10:12 last edited by koahnig 7 May 2018, 10:15
      #2

      @ed-wright

      With opensource you are basically stating that you are planning to use the opensource licenses as descrbied on the Qt download page. I guess the other option is commercial and you have to give the license number. Presumably the information is somehow compiled into the libraries. When you are not using the opensource flag there shold a question pop up during the configuration process.

      You did not state which compiler and OS you are using?

      Basically the compilation 64 vs 32 bit depends on the tool chain you are using for compilation. For MinGW 64 bit compilation you can find this wiki entry.

      [koahnig added] Sorry, just saw your MSVC2015 tag. There is only an old entry for VS

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • E Offline
        E Offline
        ed-wright
        wrote on 5 Jul 2018, 10:19 last edited by
        #3

        Thanks for the reply.

        I am using MSVC2015 as the compiler on Windows 7. If i remove the -opensource and set it off it just states that:

        This is the Qt Open Source Edition.
        You have already accepted the terms of the Open Source license.
        

        And then it goes on to compile.

        K 1 Reply Last reply 5 Jul 2018, 10:46
        0
        • E ed-wright
          5 Jul 2018, 10:19

          Thanks for the reply.

          I am using MSVC2015 as the compiler on Windows 7. If i remove the -opensource and set it off it just states that:

          This is the Qt Open Source Edition.
          You have already accepted the terms of the Open Source license.
          

          And then it goes on to compile.

          K Offline
          K Offline
          koahnig
          wrote on 5 Jul 2018, 10:46 last edited by
          #4

          @ed-wright

          Not sure, but probably you have to do a "nmake distclean" in between or it finds your license information. However, this is the opensource forum. You would need to approach the commercial, they have to able to give the proper answer.

          Vote the answer(s) that helped you to solve your issue(s)

          1 Reply Last reply
          1

          3/4

          5 Jul 2018, 10:19

          • Login

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