Qt and QMake build dir
I would like to build qt and qt application out of the source tree. Do you know how to set from the command line the .obj directory both with configure and qmake? ...
I would like to build qt and qt application out of the source tree. Do you know how to set from the command line the .obj directory both with configure and qmake? ...
I would like to detect whether qmake is currently building using MingW (win32-gcc) or Visual Studio (win32-msvc200X). At the moment I am using the following construct: windows{ contains(QMAKE_CC, gcc){ # MingW } contains(QMAKE_CC, cl){ # Visual Studio } } This does not seem particularly robust. Is ther...
I have a large project with one qmake project file defining all project components using a 'subdirs' template. Currently I define translation files in the qmake files of each sub-project. This results in separate translation files for each sub-project, which quickly becomes too cumbersome to maintain. How do I get lupdate to produce a s...
I am trying to add a unit test to a group of other tests. All the tests are in their own subdirectories, each with it's own .pro file and the .cpp file which contains the tests themselves. Running qmake in one of the subdirectories creates a Makefile, and then running make runs the compiler to make the TARGET. The tests are actually run ...
I realized my earlier question was a little confused about the rules and dependencies. The following .pro file generates a makefile which works correctly IF the source files in the directory 'generated' exist at the time qmake runs. idl.target = generated/qmtest.h idl.commands = code_generator idl.config = no_link idl.depends = $...
Hello I'm using qmake for building a project of mine. I have been trying to set the DESTIR variable of qmake with a value that depend of the compiler used. Actually, I want that the binary of my project, after builded, be placed in a directory that has the name of the compiler used to build it. Something like this... My current directo...
How could I specify multiple targets with different configurations in Qt? Is there a way to do it in one .pro file? For example, I would want to build the following 2 .pro files (without having to manually change the .pro file each time): targetA: QT += network TEMPLATE = app SOURCES += main.cpp \ mainwindow.cpp HEADERS += mainwin...
I have a project that links to a number of shared libraries. Lets say project A depends on projects B and C Ideally, I want to impose the following dependencies in my project file: Rebuild project A if either B or C has been rebuilt since last time project A was built Use the output for the relevant configuration (i.e. if building pr...
Im using Qmake to build a shared library on Ubuntu 9.10 This shared library (A) has a dependency on another shared library (B). project B has been successfully built. in the .pro file for project A, my LIBS variable looks like this: LIBS += -L../datelib/bin -llibdatelib_release.so.1.0.0 (I used the full shlib name because the libra...
I have a shared library (with no QT dependency) [library B] that links to another shared library (with no QT dependence as well) [library A]. I am using Qmake and QT Creator 1.3. The problem is that when I build library B and run ldd on the executable, it is being linked to QtCore and QtGui, both of which are pulling in lots of unrequir...
I have a qmake build of a few libraries and an app which depends on them. Using the subdirs template I'm able to get qmake to output a .sln file which works almost to my liking in VC2008. Though I've specified the dependencies between the targets in every way I've seen described, I end up with no "project dependencies" in the .sln file...
Hi! I have main.cpp in c:\test folder and do the following: qmake -project qmake -tp vc test.pro The answer is: WARNING: Unable to generate output for: C:/test//Makefile.Debug [TEMPLATE vcapp] WARNING: Unable to generate output for: C:/test//Makefile.Release [TEMPLATE vcapp] But, I don't need make files. I need .vcproj! Environme...
Hi, I have a pure C++/Qt project on a Mac, but I now find that I need to call a few methods only available in the Cocoa API. Following instructions listed here: http://el-tramo.be/blog/mixing-cocoa-and-qt I have a C++ class implementation in a ".m" file. As a test, my "foo.m" file contains the following code (relevant #include methods...
I have a Qt project and I would like to output compilation files outside the source tree. I currently have the following directory structure: / |_/build |_/mylib |_/include |_/src |_/resources Depending on the configuration (debug/release), I will like to output the resulting files inside the build directory under build/debug o...
Hey everyone, I am trying to use SWIG to wrap some C++ code for the use with Python. As described here it seems to be necessary to link my C++ code against an .so file, not a .dylib file. The thread suggests to use libtool in combination with the -module flag to link, but I am using qmake and need more precise instructions on how I do t...
Hello all, I just got help in how to compile this script a few mintues ago on SO but I have managed to get errors. I am only a beginner in C++ and have no idea what the below erros means or how to fix it. This is the script in question. I have read the comments from some users suggesting they changed the #include parts but it seems to ...
Hello. qmake allows to supply a variables via a command-line interface like this: qmake "CONFIG += release" "MY_VAR = hello" So i can use $$MY_VAR inside a .pro file. But is it possible to suply more than one variable such way? I have tried qmake "CONFIG += release" "MY_VAR = hello" "MY_ANOTHER_VAR = hi" But it did not work (raise...
I've upgraded to Qt 4.6 on my Mac (OS 10.5). When I go to a project directory and run: qmake -project Qt returns this warning (although it doesn't say it's a warning, I assume it is since the .pro file gets created anyway): QFileInfo::absolutePath: Constructed with empty filename I did a completely new install thinking that the "up...
I have multiple qmake .pro files which are called from a root .pro file with a subdirs template. What is the best way to change a setting for the whole build system (eg. release to debug). Currently I can only do this by changing each sub .pro file, or using an external script to change each .pro file. I was hoping there was a way to ...
I've the following definition in my .pro file: RC_FILE = app.rc This RC file contains a global include at the top: #include "version_info.h" The version_info.h header is on a common header files directory. Since RC.EXE takes INCLUDE environment variable in consideration, according to MS documentation, my build process batch sets u...