1. dirkbaechle
  2. SCons_Qt4
  3. Issues
Issue #1 new

Uic4 doesn't work with variant_dir

repo owner created an issue

Originally reported by https://launchpad.net/~comaddcor (Corni)

The following setup

SConstruct: env = Environment() env['QTDIR']='/usr/bin' env.Tool('qt4') envDebug = env.Clone() envDebug.Append(CPPFLAGS=['-g','-O0','-D_REENTRANT']) envRelease = env.Clone() envRelease.Append(CPPFLAGS=['-O3','-D_REENTRANT']) envDebug.SConscript('src/SConscript', variant_dir='build/debug', duplicate=0, exports={'env':envDebug}) envRelease.SConscript('src/SConscript', variant_dir='build/release', duplicate=0, exports={'env':envRelease})

SConscript: Import("env") env.Uic4(Glob('.ui')) env.Append(CPPPATH=['/usr/share/qt/mkspecs/linux-g++', '/usr/include/QtCore', '/usr/include/QtGui', '/usr/include']) env.Append(LIBS=['QtGui','QtCore', 'pthread']) env.Program(target='pokercalculator', source=Glob('.cpp'))

does not create the header files from the uic files. Running the same command without the "variant_dir" and "duplicate" parameters works just fine.

Comments (3)

  1. dirkbaechle reporter


    can you please provide a simple testcase, such that I can reproduce the error on my side? It would also be helpful to know how you call the SConstruct...with a simple "scons"? What is the output of "scons -n --tree=derived", or even "scons -n --tree=all"?

    Does the right thing happen when you use "duplicate=1"?



  2. dirkbaechle reporter

    Answer by https://launchpad.net/~comaddcor (Corni):

    Hi Dirk

    Yes I call scons without any parameters and yes setting "duplicate=1" gets it working. As a simple test case I attached my current project which builds right now (even though it doesn't work atm) but if you set "duplicate=0" in the SConstruct file you should be able to observe the error.

    Best regards, Cornelius

  3. Log in to comment