<SOLVED>reconciling 2 ways of coding
-
@Technologist I think between you and SGaist I have a lot to digest here. Let me know if u have any further revelations abt the link
C:\Qt\qt-5.3.1-x64-mingw482r4-sjlj\mingw64\bin”
How can I set the path variable to the included compiler with Qt without putting the Qt folder in my path (which as discussed is NOT an option)?
This is the one question that keeps dogging me. I'll continue to read...C:\Qt......mingw64/bin
No, I get it now.
-
I understand now thank you all.
-
"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:/
-
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\
orC:\MinGW_4.9.1\
instead ofC:\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.
-
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.
-
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.
-
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. ?
-
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
-
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.
-
@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:
- Install the Qt libraries, Qt Creator IDE, and MinGW compiler
- See Adding Compilers to tell Qt Creator where to find your compiler.
- See Adding Qt Versions to tell Qt Creator where to find the Qt binaries.
- 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.
-
Awesome! I can work with this. Thank you.