qmake

Conditionally disable warnings with qmake/gcc?

无人久伴 提交于 2020-01-10 19:42:08
问题 I am involved with a software project written in Qt and built with qmake and gcc on Linux. We have to link to a third-party library that is of fairly low quality and spews tons of warnings. I would like to use -W -Wall on our source code, but pass -w to the nasty third-party library to keep the console free of noise and clutter so we can focus on our code quality. In qmake, is there a way to conditionally add CFLAGS/CXXFLAGS to certain files and libraries? 回答1: Jonathan, I think the problem

Qt Error : Procedure Entry Not Found

戏子无情 提交于 2020-01-07 04:11:32
问题 I am making a project in Qt 5.6.1. When I run it inside Qt Creator, it runs perfectly. But when I run it inside the folder, it shows: The procedure entry point ??0QVariant@@QAE@ABVQString@@@Z could not be located in the dll Qt5Core.dll. How can I fix it? 回答1: If you have multiple versions of Qt installed everything might work well inside QtCreator where the Kits are set properly. When you run from the build directory directly it might happen that you have another version of Qt in paths which

GLM on compile breeds a ton of errors

半腔热情 提交于 2020-01-06 19:46:12
问题 I include some GLM files into my code, and I receive a ton of errors (at least 90 of them). Why this is happening, I have no idea. I am using the latest GLM (0.9.3.3 at the time of this writing). I am also using Qt Creator on Windows, with a QMake file you'll see. I should also note that I ended up copying the glm folder to my include directory reciding in my mingw folder. What can I do to fix this? QMake CONFIG += console HEADERS += \ util.hpp \ ShaderComparable.hpp \ SearchTree.hpp \

C++/QT/ARM Processors Cross-compiling/Programming [closed]

删除回忆录丶 提交于 2020-01-04 18:08:01
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 6 years ago . dear all {C++|QT|ARM Processors} developers Hello Recently, I'm involved in a QT/ARM Processor software development project. The general components of the project is: Processor: Mini440 FriendlyARM (400 MHz Samsung S3C2440 ARM926T), www.friendlyarm.net www.arm9.net OS: Linux

The process qmake.exe exited with code 2 - first time with Qt and Qt Creator

二次信任 提交于 2020-01-04 07:10:50
问题 Downloaded Qt and Qt Creator. In Qt Creator I can run example programs. Created new project - Qt empty project. Added new cpp-file with code example from Qt site - first one. When I press "Run", "Build" or "Rebuild" I've got this output 01:41:24: Running steps for project First... 01:41:24: Starting: "C:\Qt\4.8.4\bin\qmake.exe" "C:\Documents and Settings\Олексій\Qt Projects\First\First.pro" -r -spec win32-msvc2008 "CONFIG+=declarative_debug" Cannot find file: c:\Documents and Settings\Олексій

How solve “Qt: Untested Windows version 10.0 detected!”

痴心易碎 提交于 2020-01-04 05:32:14
问题 I'm trying to use cmake for a project that has a lot of dependencies . I updated to Windows 10 some week ago, starting from Windows 7, and now I get this error. How can I solve this problem considering I won't downgrade to Windows 7? Thanks to all 回答1: I think you use Qt version that was released before Windows 8 release. It might be Qt 4.8.x. To suspend the warning you need to update your Qt version or simply ignore that warning. UPDATE If the warning message makes real trouble, you can try

How solve “Qt: Untested Windows version 10.0 detected!”

青春壹個敷衍的年華 提交于 2020-01-04 05:32:05
问题 I'm trying to use cmake for a project that has a lot of dependencies . I updated to Windows 10 some week ago, starting from Windows 7, and now I get this error. How can I solve this problem considering I won't downgrade to Windows 7? Thanks to all 回答1: I think you use Qt version that was released before Windows 8 release. It might be Qt 4.8.x. To suspend the warning you need to update your Qt version or simply ignore that warning. UPDATE If the warning message makes real trouble, you can try

qt Qmake generating pkgconfig for a project

纵饮孤独 提交于 2020-01-04 03:17:40
问题 I have been told that it is possible to generate a pkg-config file through qmake, but I have no idea how to do it. I have been looking online for a while, and it seems as though it is something you just have to know how to do. Can someone give me an example, or point me to some sort of guide/tutorial? 回答1: Is this what you are looking for? To generate pkg-config using qmake you have to add to (modify) your project file (*.pro file): unix { CONFIG += link_pkgconfig PKGCONFIG += <pc_file

qt Qmake generating pkgconfig for a project

☆樱花仙子☆ 提交于 2020-01-04 03:17:09
问题 I have been told that it is possible to generate a pkg-config file through qmake, but I have no idea how to do it. I have been looking online for a while, and it seems as though it is something you just have to know how to do. Can someone give me an example, or point me to some sort of guide/tutorial? 回答1: Is this what you are looking for? To generate pkg-config using qmake you have to add to (modify) your project file (*.pro file): unix { CONFIG += link_pkgconfig PKGCONFIG += <pc_file

How do I stop Qt Creator placing my executable in a “debug” subdirectory?

孤人 提交于 2020-01-03 17:34:06
问题 I'm building a project in Qt Creator, and while I don't care where the intermediate .obj files go it's important that the final executable be put in (and run from) a particular directory where the many dependency DLLs etc. are to be found. So, in Qt Creator, I select the 'Shadow Build' option and specify the path to this directory. What I always find, however, is that instead of being put into this directory, the final executable is always placed into the_Directory_I_Actually_Want/debug ...