Qt libraries on Mac - macos

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.

Related

Qt Creator - No QML utility installed

I'm trying to install Qt from vcpkg.
On macOS Monterey, while trying to add Qt installation from vcpkg on QtCreator it seems to complain about:
No QML utility installed.
And perhaps QT_SYSROOT is missing?
How should I proceed?
And trying to build a simple Qt project will led to:

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.

QT- Installation in Windows 7

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

How to install openCV library on Mac OS X 10.6.8

I am new to openCV. How do I install this library on Mac OS X 10.6.8 and how do I include it in Xcode?
Start with one thing at a time:
Install OpenCV
Setup an XCode project
The easiest way is to install OpenCV is via MacPorts.
Make sure you've installed XCode's Command Line Tools first!
sudo port install opencv
note that you can also use ports variants (to add extra features e.g. python and QT support)
sudo port install opencv +qt4 +python27
As of very recently there should also be OpenNI support in MacPorts.
The other option is to build from source using Terminal. You'd also need CMake on top of XCode Command Line Tools
Regarding using OpenCV in XCode, it's a matter of making a c++ project and setting up the header and library search paths for the projects. If you use Macports those would be /opt/local/include/ and /opt/local/lib

Resources