QT- Installation in Windows 7 - windows

I have a c++ project that requires me to install QT when i build that project a dialog box that wants me to type in the qmake command.
I found somewhere that one needs to use
MinGW_QT
In the tools options but since i have downloaded QT libraries 4.8.4 i am not able to find the
.
C:\QT\4.8.4\MinGW\bin
Which library i must install to get this also i had tried to install
Qt libraries 4.8.4 for Windows (minGW 4.4, 317 MB) from the QT webportal
when i try to run it prompted that
There is a problem with your MinQW instalation
w32api not found in c:\MinGW\bin\
Do you still want to continue? Yes

If you are using Qt libraries compiled with MinGW, you will need a MinGW installation to compile and link against Qt libs. Just download and extract MinGW somewhere and add its path to your environment variable PATH. Then you will need to introduce that compiler to your Qt Creator installation. Go to "Tools -> Options -> Build & Run" and in toolchainn tab add your new MinGW installation.
I will suggest MinGW-builds from
https://sourceforge.net/projects/mingwbuilds

Related

Is vcpkg installing debug or release version of the library?

How can I check if vcpkg installed debug/release version of a library?
I'm on macOS Monterey but I guess this applies to other OS also.
I did vcpkg install qt5 and after a few hours it looks like it installed everything (almost).
After adding the kit from vcpkg on QtCreator, I can build/run a simple Qt based project in release mode but in debug mode it fails with:
vcpkg install both versions. Qt IDE integration however works only for release builds unless you are allowed to specify a qt.conf file to use for customized lookup. Typically IDE integrations just look for qmake without any way to customize it... which only allows one build config to work in vcpkg

Qt libraries on Mac

I'm developing a c++ program that uses the qt libraries, specifically the QtCore library. In the makefile I need to refer to the location of the directory that contains the libraries that I use. (I do not use QtCreator). I'm running on OSX 10.10.15.
I installed qt thru brew install qt5, all files are in /usr/local/Cellar/qt5/5.5.0/ but I cannot find neither libQtCore.a nor libQtCore.dyn
I also installed Qt thru the installer on the website http://doc.qt.io/qt-5/linux.html but still couldn't find the libraries.
On OS X Qt installed as set of frameworks by default.

How to minimize install of Qt for using PyQt on MacOS?

I was trying to install PyQt on my MacOS. With SIP installed, an error occurred when python3 PyQt-gpl-5.4/configure.py inputted:
Error: Use the --qmake argument to explicitly specify a working Qt qmake.
It seems that Qt should be installed before PyQt. There're many optional components in the installation of Qt:
-Qt 5.4
--clang 64-bit
--source components
---Add-Ons
---Essentials
--.....
Which components should I choose for installing qmake??
qmake is the executable that is included with any version of the qt libraries; and there is a different version of qmake for each compiler the Qt Libraries are built with/against. On a mac, and for building projects that run on OSX, you will probably want clang x64. And you will find qmake under ~/Qt/5.x/clang_64/bin It will also install qt creator (I don't think you can uncheck it), but you don't need all the extras besides that.
Building with qmake often needs XCode installed and the Command Line Tools (CLT) to use its included compiler. With Python, you probably won't need the compiler, unless you need to build some of its libraries.
Hope that helps.

How to download Qt4.8 on a Mac

I'm new to Qt and was trying to download Qt version 4.8 from their website. I downloaded the Qt libraries 4.8.5 for Mac (185 MB) and debug libraries (480 MB). After installing both of them I found that Qt Creator was not bundled with the installation.
I downloaded the Qt Creator 3.0.1 for Mac (62 MB) in the same downloads page. If I open Qt Creator now, I am not able to create a New Project and it says "No Kits found".
Its been really frustrating. I would appreciate if anyone could elaborate on how to link all the installations together and start-up a new project in Qt 4.8.
Edit:
I am trying to use VTK 6 library and it seems that Qt 5 does not support VTK 6. Hence I had to go for Qt4.8. This is the screen I'm getting when I try to add the Qt version.
Why am I not able to select qmake executable in the above image. I'm trying to select the qmake from /usr/bin/
You can add kits in the options, follow the instruction here:
http://qt-project.org/doc/qtcreator-2.6/creator-targets.html
It seems to be a known bug on OS X, see: https://bugreports.qt-project.org/browse/QTCREATORBUG-6222 for some workarounds.

How to compile a Windows binary in Ubuntu?

I have a Qt application that I can compile in Ubuntu 10.04 64-bit and on Windows. However, I would like to avoid switching to Windows every time I want to compile the Windows version.
Is there a way I can compile a Windows Qt executable in Ubuntu with mingw32 or something?
Further, is there a way to integrate that compiler into Qt Creator?
There is a PPA (Personal Package Archive) for some people who are cross-compiling Qt and related software on Ubuntu for Windows. The PPA contains both the cross-compilers and the dependencies you will need to cross-compile Qt programs. If you look at the source packages there, I think you will be able to figure out how to configure your projects and build them.
If you most of your time spend coding with Qt on Linux (for example, Ubuntu), you may produce some experiment: install Wine, install Qt SDK for Windows with Wine and tried to build some simple project!
And if you don't like crazy things, which I wrote above, just use VirtualBox.

Resources