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
Forum Updated to NodeBB v4.3 + New Features

<SOLVED>reconciling 2 ways of coding

Scheduled Pinned Locked Moved General and Desktop
compilers path
18 Posts 5 Posters 5.2k Views 4 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.
  • TechnologistT Offline
    TechnologistT Offline
    Technologist
    wrote on last edited by
    #9

    I understand now thank you all.

    1 Reply Last reply
    0
    • SGaistS SGaist

      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.

      TechnologistT Offline
      TechnologistT Offline
      Technologist
      wrote on 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
      • Chris KawaC Offline
        Chris KawaC Offline
        Chris Kawa
        Lifetime Qt Champion
        wrote on 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
        • TechnologistT Offline
          TechnologistT Offline
          Technologist
          wrote on 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
          • TechnologistT Offline
            TechnologistT Offline
            Technologist
            wrote on 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
            • Chris KawaC Offline
              Chris KawaC Offline
              Chris Kawa
              Lifetime Qt Champion
              wrote on 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
              • JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on 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
                • TechnologistT Offline
                  TechnologistT Offline
                  Technologist
                  wrote on 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.

                  JKSHJ 1 Reply Last reply
                  0
                  • TechnologistT Technologist

                    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.

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on 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
                    • TechnologistT Offline
                      TechnologistT Offline
                      Technologist
                      wrote on last edited by Technologist
                      #18

                      Awesome! I can work with this. Thank you.

                      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