qmake

CMake Qt UIC failed

白昼怎懂夜的黑 提交于 2019-12-11 15:33:21
问题 I'm currently moving my project from QMake to CMake and I'm facing a problem with Qt UIC which try to process an ui file that does not exist instead of the actual file I want him to process. I have the following architecture . |___ CMakeLists.txt |___ MyProject.pro |___ mainwindow.ui |___ resource.qrc |___ source | |___ mainwindow.cpp | |___ *.cpp |___ include | |___ mainwindow.h | |___ *.h And here is my cmake cmake_minimum_required(VERSION 3.2) # Project name project(project) # Tell CMake

Qmake doesn't generate a header file

主宰稳场 提交于 2019-12-11 11:53:48
问题 So here is my problem. I just started studying Qt. I study from a book about Qt. There is shown how to make a simple dialog. The dialog is made with Qt Designer. The book says that when I'm done making the design in the file called gotocelldialog.ui, I need to go to main.cpp and type this: #include <QApplication> #include <QDialog> #include "ui_gotocelldialog.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); Ui::GoToCellDialog ui; QDialog *dialog = new QDialog; ui.setupUi

VS2013 debugger can not find Qt sources

≡放荡痞女 提交于 2019-12-11 11:52:22
问题 I am using Visual Studio 2013 for building Qt5.3.1 projects. I use the express version so I don't use the VS plugin. My .vcxproj files a generated from .pro files using build scripts and qmake. I installed Qt 5.3.1 with the default offline installation package that can be downloaded from the project pages. During installation I enabled sources to be installed (which are not installed by default). When debugging my projects I sometimes try to step into Qt library code. This unfortunately does

How do I specify which Windows SDK version qmake shall target?

谁说胖子不能爱 提交于 2019-12-11 11:06:12
问题 I have Visual Studio 2017 Community edition installed on my PC. Recently I installed Qt5.10.1. I generated a VS project from one of the example .pro files: qmake -tp vc cube.pro However when I open this VS project and build it I get the error: The Windows SDK version 8.1 was not found. Install the required version of Windows SDK or change the SDK version in the project property pages or by right-clicking the solution and selecting "Retarget solution". How do I specify once for all that qmake

Can not call 'make clean' in cmd regarding qmake project

↘锁芯ラ 提交于 2019-12-11 10:55:42
问题 I'm reading Foundations of Qt Development - by Johan Thelin . Here quote from page 450 about Building QMake Project. If you choose to create a Makefile using QMake, you can build your project using a simple make command (or nmake if you’re using Visual Studio). You can clean up your intermediate files using make clean. The slightly more brutal step is to run make distclean, which cleans up all generated files, including the Makefile. You will have to run QMake again to get a Makefile for make

Qt undefined reference to 3rdparty software libraries

北城余情 提交于 2019-12-11 10:26:58
问题 I using 3rd party library functions in my Qt application, but it's reporting errors such as " undefined reference to bp_attach collect2 : error: ld returned 1 exit status ". I have build 3rd party library (ion-dtn) from source code and did make & make install . I am certain that it has installed successfully in my Ubuntu system. I have included its header file "bp.h" and Qt doesn’t complain about that. But when I compile I get the error mentioned above. Here is my .pro file: QT += core gui QT

qmake not finding some existing libraries

点点圈 提交于 2019-12-11 10:17:29
问题 I'm having a problem when including two libraries (not made by me) into my (pure C) project in Qt Creator (using qmake + GCC on Linux Ubuntu). I know that, to include a lib, one uses the LIBS directive as explained in this SO answer; and I have successfully inserted libraries both in Linux as well as in Windows this way. Even more, in this same problematic project I have two successfully inserted libraries. But now I'm having a problem including this two other libs in this same project. One

How to properly configure MSVC's compiler options with QtCreator?

a 夏天 提交于 2019-12-11 10:06:00
问题 I'm trying to migrate from Visual Studio 2008 to QtCreator in a project that uses C++/CLI extensions. This just means that I need to use the -clr compiler option when compiling my files. I've managed to add it by adding the following line to my project.pro file: QMAKE_CXXFLAGS += -clr However, there is a conflicting option in my compiler's call that is conflicting with this one. It is the -EHsc option. But I can't find where these options get included and how to disable it. My default call to

QT: qmake not recognising 3dcore, 3drender

孤街醉人 提交于 2019-12-11 08:46:10
问题 I am using qmake to compile my QT project. In my .pro file I have a line: QT += 3dcore 3drender 3dinput 3dextras When executing qmake myprofile.pro I get the error: Project ERROR: Unknown module(s) in QT: 3dcore 3drender 3dinput 3dextras I am using Ubuntu17 and have QT5 installed. How can I get it to work with qmake ? I am including libraries like <Qt3DCore> in my code so I require these modules as suggested here. 来源: https://stackoverflow.com/questions/49252186/qt-qmake-not-recognising

QMAKE *.pro-file: enable debugging info in release mode

流过昼夜 提交于 2019-12-11 07:53:56
问题 because of compatibility issues, I compile my project in VS2008 in release mode, but I need to access debug information. That is why I manually set up debugging settings in project properties for release mode. In VS2008, I open Properties window and select: Configuration Properties/C/C++/Optimization = Disable /Od Configuration Properties/C/C++/General/Debug Information Format = Program Database (/Zi) Configuration Properties/C/C++/Linker/Generate Debug Info = Yes (/DEBUG) I use a pro-file to