hey all,
i'm trying to to build the worldtimeclockplugin for designer that came w/ qt4 on win xp.
the first problem is that the pro file that came w/ it seems to use 2 variables qmake doesn't recognize. in my normal environment, QTDIR is defined, but the variables QT_BUILD_TREE and QT_INSTALL_PLUGINS are not.
however, the .pro file looks like this:
message ( "QTDIR = " $$[QTDIR])
message ( "Build tree = " $$[QT_BUILD_TREE]/plugins/designer)
message ( "target.path = " $$[QT_INSTALL_PLUGINS]/designer)
CONFIG += designer plugin debug_and_release warn_on
TEMPLATE = lib
DESTDIR = $$QT_BUILD_TREE/plugins/designer
CONFIG(debug, debug|release) {
unix: TARGET = $$join(TARGET,,,_debug)
else: TARGET = $$join(TARGET,,d)
}
HEADERS = worldtimeclock.h \
worldtimeclockplugin.h
SOURCES = worldtimeclock.cpp \
worldtimeclockplugin.cpp
# install
target.path = $$[QT_BUILD_TREE]/designer
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = .
INSTALLS += target sources
message ( "QTDIR = " $$[QTDIR])
message ( "Build tree = " $$[QT_BUILD_TREE]/plugins/designer)
message ( "target.path = " $$[QT_INSTALL_PLUGINS]/designer)
CONFIG += designer plugin debug_and_release warn_on
TEMPLATE = lib
DESTDIR = $$QT_BUILD_TREE/plugins/designer
CONFIG(debug, debug|release) {
unix: TARGET = $$join(TARGET,,,_debug)
else: TARGET = $$join(TARGET,,d)
}
HEADERS = worldtimeclock.h \
worldtimeclockplugin.h
SOURCES = worldtimeclock.cpp \
worldtimeclockplugin.cpp
# install
target.path = $$[QT_BUILD_TREE]/designer
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = .
INSTALLS += target sources
To copy to clipboard, switch view to plain text mode
i added the message lines in the beginning. this is the output:
Project MESSAGE: "QTDIR = "
Project MESSAGE: "Build tree = " /plugins/designer
Project MESSAGE: "target.path = " C:\Qt4\plugins/designer
Project MESSAGE: "QTDIR = "
Project MESSAGE: "Build tree = " /plugins/designer
Project MESSAGE: "target.path = " C:\Qt4\plugins/designer
Project MESSAGE: "QTDIR = "
Project MESSAGE: "Build tree = " /plugins/designer
Project MESSAGE: "target.path = " C:\Qt4\plugins/designer
QTDIR is blank
QT_BUILD_TREE is blank
QT_INSTALL_PLUGINS is properly defined.
qmake doesn't give any warnings or errors, but nmake (i have visual studio 2003) gives
NMAKE : fatal error U1077: 'cl' : return code '0xc0000135'
any ideas where these things are (un)defined and why nmake is choking? i haven't modified the code, just copied the directory and i'm trying to make the plugin.
thanks!
lou
Bookmarks