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. Best way to compile and deploy

Best way to compile and deploy

Scheduled Pinned Locked Moved General and Desktop
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.
  • S Offline
    S Offline
    SimenZhor
    wrote on last edited by
    #1

    Hi,

    I am having trouble compiling my program so it can run on another computer. I have been reading some tutorials, but I can't seem to find the correct .dlls (at least thats what I suspect is the problem as I heard that there are many .dlls named the same thing in different folders).

    So, what are your suggestions for deploying my (very small) program with basic Qt GUI features? What compiler should I use? And if I have to install a new compiler, is there a "correct" way to do it? The auto-detect feature doesn't seem to be able to make functioning kits ( I have had to clone them and add compilers and debuggers etc).

    I am sorry to say, but I might need to be told in a very simple step-by-step kind of way. I have very little experience with compiling in every program. The program I am now using is Qt Creator evaluation version, but I also have Visual Studio 2010 and 2012 through school. in my C:/Qt folder it also says 5.1.1 so I guess that's the version I am using.

    1 Reply Last reply
    0
    • raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      there are many beginner tutorials on the web.

      "getting started":http://www.google.at/url?sa=t&rct=j&q=&esrc=s&source=web&cd=2&ved=0CDgQFjAB&url=http://qt-project.org/doc/qt-5.0/qtdoc/gettingstarted.html&ei=4k1AUvOqA8GEtAb_2YDACQ&usg=AFQjCNGzwk5JApT9ChqfIy4XY8kRUPLkQw&sig2=_dLZlfiCAr11leVsAt7yXQ&bvm=bv.52434380,d.Yms

      "deployment":http://qt-project.org/doc/qt-5.0/qtdoc/deployment-windows.html

      But you are good to go by using QtCreator, this keeps thing simple and does most of the work for you automagically. You need to "add a kit":http://qt-project.org/doc/qtcreator-2.8/creator-targets.html to QtCreator to start compiling your program. QtCreator should autodetect your msvc compiler if you have Visual Studio installed.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

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

        Thanks for the links. Ihave seen those before though, and I am confused as to what folders and paths those tutorials are referring to. Cause as it seems Qt has been re-arranging the folder-structure since those tutorials was written, so when they refer to the folder Qt I understand as that would be a lot deeper in the system before. What folders should I look for? Is it still the qt folder (default C://Qt) og for the different compilers (C://Qt/5.1.1/MinGW48_32 etc.)? I even find some of the files mentioned in tutorials around the web in the folders of "C://Qt/Tools/MinGW48_32"

        Edit:
        Also there are parts of the tutorial I don't know what to do. For Example: "cd C:\path\to\Qt
        configure -static <any other options you need> Remember to specify any other options you need, such as data base drivers, as arguments to configure."

        I have no background to know what other options I need or if the folder used is the "C://Qt" folder. Can anybody help me with this? On a step to step basis.

        Say I want to use the MInGW48_32 kit. My folder structure is "C://Qt" and my files are at "C:\Users\TIM\Documents\Qt files\MyProject"

        1 Reply Last reply
        0
        • raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          The Qt folder refers to e.g. "C:\Qt\5.1.1".

          All your other files do not need to be placed in your qt folder, they can be placed anywhere you like. When QtCreator is configured correctly it will link the Qt binaries with your source code and generate an executable.

          [quote author="SimenZhor" date="1380001451"]
          Also there are parts of the tutorial I don't know what to do. For Example: "cd C:\path\to\Qt
          configure -static <any other options you need> Remember to specify any other options you need, such as data base drivers, as arguments to configure."

          I have no background to know what other options I need or if the folder used is the "C://Qt" folder. Can anybody help me with this? On a step to step basis.[/quote]

          Since you are a very beginner to Qt you wont need it any additional configure options for the start IMHO.
          You can create a new package later on when you need additional features.
          But even better would be to "download":https://qt-project.org/downloads a pre-compiled package. Then you don't need to run configure on it and are ready to start.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          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