Qt creator not populating issues tab - qt-creator

The issues tab is never populated,
the 'compile output' tab is working fine, I can see all warnings and errors.
I have tried cmake and qmake projects,
compiling with gcc and clang.
Full working projects and just "main" empty projects.
I'm using Qt Creator 4.0.2

I had the same problem on Ubuntu 14.04, Qt Creator 4.0.x. I solved it by using the latest cmake version (currently 3.6.1).
You don't need to install latest cmake in the system, if you don't want to / don't have permissions. It also worked by downloading latest cmake binary tar, extracting it somewhere, and referencing it in qtcreator (Tools - Options - Build&Run - CMake - Add...) and setting it as default in the used kit (Tools - Options - Build&Run - Kits - CMake-Tool).

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 Creator on MacOS: pkg-config dependencies can't be found

I already tried all the solutions here, but I continue to get the following error when I issue the command "Run qmake" on my project from Qt Creator on Qt 5.6.1:
Project ERROR: grpc++ development package not found
... Yet, on the console, qmake && make clean && make successfully builds the project with no errors.
which qmake returns /usr/local/bin/qmake and qmake --version returns
QMake version 3.0
Using Qt version 5.6.1 in /usr/local/Cellar/qt5/5.6.1-1/lib
Here is my environment:
macOS Sierra
Qt SDK 5.7 (to get the latest version of Qt Creator)
Homebrew installed Qt 5.6.1 (I need 5.6.x specifically for ABI compatibility)
Dependencies grpc++, libsndfile, protobuf all installed via Homebrew in /usr/local and the .pc files are in /usr/local/lib/pkgconfig
When I open up a new terminal and type pkg-config --cflags --libs grpc++, I get the correct result back with no error message.
I'm trying to build this software, of which I am the primary author/maintainer: https://github.com/allquixotic/kynnaugh-cc
See the .pro file for details of how I'm telling it to use pkg-config.
I've tried the launchd.conf hack from here (and rebooted the Mac after updating it).
I've tried the /etc/paths.d/local hack from the same question, to no avail.
My .pro file has QT_CONFIG -= no-pkg-config.
I tried setting the env var PKG_CONFIG_PATH=/usr/local/lib/pkgconfig explicitly in the "Manage Kits" GUI of Qt Creator for the Qt 5.6.1 toolchain that I'm using, but it didn't change the errant behaviour.
Are there any other ways I can attempt to diagnose the problem, or can you spot an error in my .pro file, or is there a better solution to this problem than what I've attempted thus far?
I'm asking this as a new question because the solutions in that other question don't work, so I may very well be having a completely different problem despite extremely similar symptoms.
Turns out the PATH variable in Qt Creator wasn't picking up /usr/local/bin. Adding it manually to the project config fixed my issue.

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 setup debugging Qt apps on OSX Mountain Lion with Qt-Creator?

Ok guys, I've got both Qt-Creator and Xcode and the usual suite of OSX development tools. I've followed every set of instructions I can find on the web, with a bunch of variations, and cannot get breakpoints to work either inside Xcode or in Qt-Creator.
What's the secret recipe? I'm running OSX 10.8.4, Qt Creator 2.7.0 (Qt 5.0.2), Xcode 4.6.3 (4H1503) and I'm trying to debug a complex open source Qt-based app.
I've tried configuring the project inside Qt Creator to use either Qt5 or Qt4 with the same results. As far as I can tell Qt Creator is building my app with debugging turned on. However, when I run in debug mode, my breakpoints are not hit.
I've tried generating an Xcode project file with qmake -spec macx-xcode but this results in a project file that the current version of Xcode cannot read.
Really appreciate any help getting past this roadblock.
How can you tell that Qt Creator is compiling in debug mode? Have you got -g flag in the Makefile?
If you create the project in Qt Creator, it should be enough to choose the Debug option as in this image:

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

Resources