<SOLVED>reconciling 2 ways of coding
-
wrote on 24 Apr 2015, 03:24 last edited by
I understand now thank you all.
-
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.
wrote on 24 Apr 2015, 15:29 last edited by Technologist"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.
-
wrote on 24 Apr 2015, 17:33 last edited by Technologist
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.
-
wrote on 24 Apr 2015, 17:36 last edited by Technologist
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
-
wrote on 25 Apr 2015, 03:14 last edited by
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.
-
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.
-
wrote on 25 Apr 2015, 20:27 last edited by Technologist
Awesome! I can work with this. Thank you.
18/18