qmake

Cannot make new project in QT on mac osx

旧城冷巷雨未停 提交于 2019-12-21 04:12:42
问题 I have been stuck on this for the past couple days. I have installed QT 4.8 and I have installed the libraries as well. But when I come to make a new project, I am only given the option of creating a plain C++ project with CMake. I do not have the option of using the automated qmake. And I have no idea why. If someone could please help it out it would be much appreciated. Here is a picture of what I see. When I see the kits in preferences, I see this. But in the QT versions section, If I

Project ERROR: Unknown module(s) in QT: multimedia

泪湿孤枕 提交于 2019-12-21 03:49:09
问题 I am trying to compile qGo, after installing qt5 git clone https://github.com/pzorin/qgo.git cd qgo qmake make sudo make install Right now the latest error is saying it can't find multimedia # make cd src/ && ( test -e Makefile || /usr/lib/x86_64-linux-gnu/qt5/bin/qmake /home/jdm/Downloads/qgo/src/src.pro -o Makefile ) && make -f Makefile Project ERROR: Unknown module(s) in QT: multimedia make: *** [sub-src-make_first] Error 3 I guessed the library libqt5multimedia5 based on this question,

Compile a single file under CMake project?

断了今生、忘了曾经 提交于 2019-12-20 12:20:45
问题 I'm developing a C++ project which is going to be enclosed on a bigger one. I've seen that on the bigger project (is a Qt application and it's being generated from qmake) I am able to compile a single file from the linux command line, just entering the relative path to the specific file as an argument to make. On the other hand, I'm using CMake for my own project. When I modify some code for a compilation unit and I have to modify its header file, I have to wait a long time to compile its

Adding object (.o) files to qtcreator project

心已入冬 提交于 2019-12-20 02:26:13
问题 How does one add third party .o and .h files to a Qt C++ project in QtCreator? I want to add some compiled .o files from John The Ripper to my probject (ignore the non-cross-platformness of that). As a test, a wrote a small C program (outside QtCreator) and linked it against common.o and MD5_std.o and it worked fine; I can just do gcc -o runme common.o MD5_std.o simpleprogram.c , but with QtCreator, nothing seems to work. I keep getting undefined references. I tried adding this to the .pro

QMake: execute script after build

烂漫一生 提交于 2019-12-20 02:16:14
问题 This is for setting up the application bundle of a MacOSX app. I have a script which copies a few files and does some other things. So I want to execute the script after the build (i.e. after the linking step). I want it to be executed just every time because it is not possible to specify its dependencies. I know there is QMAKE_POST_LINK (e.g. described here or here) but it runs only when the target does not exists, i.e. when linking needs to be done. However, I want the script to run every

How to detect Qt Creator's target (debug/release) (Visual Studio)

[亡魂溺海] 提交于 2019-12-19 18:23:21
问题 So I use qmake to create my program, but I'm always having a conflict between my debug and release boost libraries with the message: libboost_system-vc120-mt-s-1_58.lib(error_code.obj):-1: error: LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj I would like to make this automated, in such a way where choosing debug or release from Qt Creator suffices to create the correct version. I saw other solutions like the one here, but that doesn't

How to detect Qt Creator's target (debug/release) (Visual Studio)

£可爱£侵袭症+ 提交于 2019-12-19 18:22:03
问题 So I use qmake to create my program, but I'm always having a conflict between my debug and release boost libraries with the message: libboost_system-vc120-mt-s-1_58.lib(error_code.obj):-1: error: LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in main.obj I would like to make this automated, in such a way where choosing debug or release from Qt Creator suffices to create the correct version. I saw other solutions like the one here, but that doesn't

qmake .pro file not parsed correctly to generate LD_LIBRARY_PATH

谁说我不能喝 提交于 2019-12-19 10:58:08
问题 I have been trying in the last days to understand how qmake works buy I'm stuck. I want a project with the following structure: root bin testjson lib libjson.so src testjson.cpp All i wanted was to test the json library. I have created a new empty project in Qt Creator 2.3.0, and set up all the settings so the executable will run. Tested what I wanted and closed the application. Later, when I opened Qt Creator again, I loaded the .pro file and surprise, when I try to run the project I get

QMake CONFIG() function and 'active configuration'

半腔热情 提交于 2019-12-19 08:17:26
问题 While reading through the documentation for Qt 5.1, and specifically qmake, I was stumped by the explanation given in the documentation for the qmake CONFIG() function. I completely understood the one-argument version of the function, but the two-argument version makes absolutely no sense to me. I think my confusion is coming from the lack of a definition for 'active config' since the Qt 5.1 documentation says the following: This function can be used to test for variables placed into the

QMake CONFIG() function and 'active configuration'

醉酒当歌 提交于 2019-12-19 08:17:06
问题 While reading through the documentation for Qt 5.1, and specifically qmake, I was stumped by the explanation given in the documentation for the qmake CONFIG() function. I completely understood the one-argument version of the function, but the two-argument version makes absolutely no sense to me. I think my confusion is coming from the lack of a definition for 'active config' since the Qt 5.1 documentation says the following: This function can be used to test for variables placed into the