Qmake-exit-codes: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
m (Moved Page to QMake Exit Codes)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
h1. qmake exit codes
#REDIRECT [[QMake Exit Codes]]
 
I have not found anything about qmake exit codes in the official documentation. However, there '''are''' cases where the user is faced with such an exit code. Origin of this short list is "here":http://initek.net.au/mediawiki/index.php/Inside_Qmake/Exit_Codes
 
<code><br />0 Success<br />1 Command line error<br />2 Failed to find project file.<br />3 Error processing a project file, creating meta generator.<br />5 Error generating makefile<br />101 Failed to execute property action.<br /></code>
 
All of the above codes are generated in function '''runQMake()''' in the file '''main.cpp'''. The above list is exhaustive, i.e. there are no other codes that the user may be faced with.
 
The list below was created during my review of the qmake source code (the version in the source of Qt 5.1.1), so it is based on my current understanding. If you come to other results, please yell. (comment, send a mail, or correct it directly)
 
== Code 0 ==
 
Success. We want to see this all the time. Does it need further explanation?
 
== Code 1 ==
 
The parsing of the commandline arguments has failed. Most probably a typo in the commandline. Look up &quot;Running qmake&amp;quot; in the &quot;manual&amp;quot;:http://doc.qt.io/qt-5.0/qtdoc/qmake-running.html This should actually never happen when using Qt Creator.
 
== Code 2 ==
 
One of the project files cannot be found based on a call to QFile::exists(). The path in question is printed to stderr.
 
== Code 3 ==
 
The project file could not be evalutated correctly, or the meta file generator failed. (i.e. the meta files could not be created)
 
== Code 5 ==
 
Either the project or the make file could not be written (depending on qmake-mode). The filename of the makefile is printed to stderr.
 
== Code 101 ==
 
Property action '''QMAKE_QUERY_PROPERTY''': property not found in list<br />Property action '''QMAKE_SET_PROPERTY''': internal error<br />cannot happen on property action '''QMAKE_UNSET_PROPERTY'''

Latest revision as of 10:03, 30 June 2015

Redirect to: