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:

Qt Code:
  1. message ( "QTDIR = " $$[QTDIR])
  2. message ( "Build tree = " $$[QT_BUILD_TREE]/plugins/designer)
  3. message ( "target.path = " $$[QT_INSTALL_PLUGINS]/designer)
  4.  
  5. CONFIG += designer plugin debug_and_release warn_on
  6. TEMPLATE = lib
  7. DESTDIR = $$QT_BUILD_TREE/plugins/designer
  8.  
  9. CONFIG(debug, debug|release) {
  10. unix: TARGET = $$join(TARGET,,,_debug)
  11. else: TARGET = $$join(TARGET,,d)
  12. }
  13.  
  14. HEADERS = worldtimeclock.h \
  15. worldtimeclockplugin.h
  16. SOURCES = worldtimeclock.cpp \
  17. worldtimeclockplugin.cpp
  18.  
  19. # install
  20. target.path = $$[QT_BUILD_TREE]/designer
  21. sources.files = $$SOURCES $$HEADERS *.pro
  22. sources.path = .
  23. 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