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. <SOLVED>reconciling 2 ways of coding

<SOLVED>reconciling 2 ways of coding

Scheduled Pinned Locked Moved General and Desktop
compilers path
18 Posts 5 Posters 5.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.
  • T Offline
    T Offline
    Technologist
    wrote on 24 Apr 2015, 03:24 last edited by
    #9

    I understand now thank you all.

    1 Reply Last reply
    0
    • S SGaist
      23 Apr 2015, 21:30

      Hi,

      Where's that tutorial located ?

      As for the rules:

      • Don't put Qt's folder in your PATH, ever, even more as a developer. You might have other applications on your system that uses custom builds of Qt that will be then using the one you put in your PATH so now their functionality is jeopardized.
      • Use the MinGW version provided with your Qt package. It's been build against it so you don't have to worry about compatibility.

      As for why there's no MinGW 64 package ? The CI system building Qt is already creating package for Linux + OS X + Android + iOS + Windows for MSVC2010, 2012, 2013 and MinGW, There's limit to the power and people available to build and test them so the most used version are currently build. It doesn't mean that there won't be package in the future. Also note that each build also runs all tests for every modules.

      T Offline
      T Offline
      Technologist
      wrote on 24 Apr 2015, 15:29 last edited by Technologist
      #10

      @SGaist

      "Don't put Qt's folder in your PATH, ever, even more as a developer. You might have other applications on your system that uses custom builds of Qt that will be then using the one you put in your PATH so now their functionality is jeopardized.
      Use the MinGW version provided with your Qt package. It's been build against it so you don't have to worry about compatibility."

      Can I install Mingw compiler with same version in another directory because can't put qt folder in path? That is still bothering me. I don't want to guess. I can't install it in Qt folder so where does it go? I guess I will put it in c:/

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on 24 Apr 2015, 16:39 last edited by
        #11

        You can have as many independent compilers simultaneously installed as you want and it doesn't matter where they are.
        When creating a Kit in the Creator you specify that path and Creator takes care of everything else.

        One thing worth noting is that some toolchains don't get along with spaces in paths so try to put them in space free places, for example C:\MinGW4.9.1\ or C:\MinGW_4.9.1\ instead of C:\MinGW 4.9.1\.

        But if you already have a MinGW bundled with Qt then what is the point of installing the same version somewhere else? Just use the one from Qt package.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Technologist
          wrote on 24 Apr 2015, 17:33 last edited by Technologist
          #12

          But if you already have a MinGW bundled with Qt then what is the point of installing the same version somewhere else? Just use the one from Qt package.

          1 Reply Last reply
          0
          • T Offline
            T Offline
            Technologist
            wrote on 24 Apr 2015, 17:36 last edited by Technologist
            #13

            I agree. But how do I use it without using the path var?

            (no qt folder in path-right)

            In other words how do I make a system path to the compiler bundled with qt without using the qt folder in the path itself (which we discourage).

            Unless you don't need to include the compiler in the PATH.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on 24 Apr 2015, 20:10 last edited by
              #14

              I'm not sure what you want to accomplish exactly...

              Are you using an IDE or not? What do you want to do? I'm not talking about the details like what's in the PATH or not, just the high level - do you want to build an app using Qt, do you want to compile a Qt-less app, do you want to use an IDE or not etc. ?

              1 Reply Last reply
              0
              • J Online
                J Online
                JKSH
                Moderators
                wrote on 25 Apr 2015, 02:48 last edited by JKSH
                #15

                By the way, @Technologist, it is currently difficult to tell what you're quoting and what you wrote yourself. Please add > to the start of the paragraphs that you quote. Example:

                > This is a line that someone else wrote

                This is my reply

                ...produces:

                This is a line that someone else wrote

                This is my reply

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  Technologist
                  wrote on 25 Apr 2015, 03:14 last edited by
                  #16

                  Sorry abt the quotation issues.

                  In QtCreator I want to want to write a c++ multithreaded app using OpenCV functions to display photos videos with and without Cv analysis in particular object tracking - with Qt as the GUI. I did this several years ago but with WxWidgets, Qt appears much more professional. So I am trying to setup my environment which is the most difficult aspect for me.

                  J 1 Reply Last reply 25 Apr 2015, 04:09
                  0
                  • T Technologist
                    25 Apr 2015, 03:14

                    Sorry abt the quotation issues.

                    In QtCreator I want to want to write a c++ multithreaded app using OpenCV functions to display photos videos with and without Cv analysis in particular object tracking - with Qt as the GUI. I did this several years ago but with WxWidgets, Qt appears much more professional. So I am trying to setup my environment which is the most difficult aspect for me.

                    J Online
                    J Online
                    JKSH
                    Moderators
                    wrote on 25 Apr 2015, 04:09 last edited by
                    #17

                    @Technologist said:

                    Sorry abt the quotation issues.

                    That's ok :)

                    In QtCreator I want to want to write a c++ multithreaded app using OpenCV functions to display photos videos with and without Cv analysis in particular object tracking - with Qt as the GUI. I did this several years ago but with WxWidgets, Qt appears much more professional. So I am trying to setup my environment which is the most difficult aspect for me.

                    I don't know what your installer provides, but these are the basic steps:

                    1. Install the Qt libraries, Qt Creator IDE, and MinGW compiler
                    2. See Adding Compilers to tell Qt Creator where to find your compiler.
                    3. See Adding Qt Versions to tell Qt Creator where to find the Qt binaries.
                    4. Finally, see Adding Kits to tell Qt Creator how to combine your compiler with the Qt binaries.

                    Done.

                    If you use the official installers, you don't need to do anything to set up your environment. If you started with a clean machine, simply run the Qt 5.4 installer (MinGW version). The installer installs the Qt libraries, the Qt Creator IDE, and the MinGW compiler. Everything is then automatically set up and ready to go.

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    1 Reply Last reply
                    1
                    • T Offline
                      T Offline
                      Technologist
                      wrote on 25 Apr 2015, 20:27 last edited by Technologist
                      #18

                      Awesome! I can work with this. Thank you.

                      1 Reply Last reply
                      0

                      18/18

                      25 Apr 2015, 20:27

                      • Login

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