All works fine. I call mingw32-make distclean on testproject, then i call qmake:
D:\Work\RotatedLabel\examples>D:\Work\_qt-all-opensource-src-4.5.2_gcc440\bin\qmake
D:\Work\RotatedLabel\examples>D:\Work\_qt-all-opensource-src-4.5.2_gcc440\bin\qmake
To copy to clipboard, switch view to plain text mode
next just call mingw32-make release and try run program. Of course she dont run, becouse not found Qt dll's who placed in QTDIR/bin dir, but variable PATH dont have this path.
And as you ask qmake -query:
D:\Work\RotatedLabel\examples>D:\Work\_qt-all-opensource-src-4.5.2_gcc440\bin\qm
ake -query
QT_INSTALL_PREFIX:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QT_INSTALL_DATA:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QT_INSTALL_DOCS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/doc
QT_INSTALL_HEADERS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/include
QT_INSTALL_LIBS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/lib
QT_INSTALL_BINS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/bin
QT_INSTALL_PLUGINS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/plugins
QT_INSTALL_TRANSLATIONS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/translations
QT_INSTALL_CONFIGURATION:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QT_INSTALL_EXAMPLES:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QT_INSTALL_DEMOS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QMAKE_MKSPECS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440\mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.5.2
D:\Work\RotatedLabel\examples>D:\Work\_qt-all-opensource-src-4.5.2_gcc440\bin\qm
ake -query
QT_INSTALL_PREFIX:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QT_INSTALL_DATA:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QT_INSTALL_DOCS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/doc
QT_INSTALL_HEADERS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/include
QT_INSTALL_LIBS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/lib
QT_INSTALL_BINS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/bin
QT_INSTALL_PLUGINS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/plugins
QT_INSTALL_TRANSLATIONS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440/translations
QT_INSTALL_CONFIGURATION:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QT_INSTALL_EXAMPLES:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QT_INSTALL_DEMOS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440
QMAKE_MKSPECS:D:/Work/_qt-all-opensource-src-4.5.2_gcc440\mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.5.2
To copy to clipboard, switch view to plain text mode
But original Qt path D:/Work/qt-all-opensource-src-4.5.2_gcc440
qmake uses QLibraryInfo class. This class found qt.conf on dir where placed program, so when qmake call QLibraryInfo::location() he return new path getting from qt.conf:
if(v == "QT_INSTALL_PREFIX")
if(v == "QT_INSTALL_PREFIX")
return QLibraryInfo::location(QLibraryInfo::PrefixPath);
To copy to clipboard, switch view to plain text mode
Bookmarks