Using qrc files as sources doesn't work with variant_dir
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SCons Qt4 Tool |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The following setup
SConstruct:
env = Environment()
envDebug = env.Clone()
envDebug.
envRelease = env.Clone()
envRelease.
envDebug.
envRelease.
SConscript:
Import("env")
env['QTDIR'
env.Tool('qt4')
env.Uic4(
env.Append(
env.Append(
env.Program(
results in the following error message:
scons: warning: Two different environments were specified for target /pokercalculato
but they appear to have the same action: $QT4_RCC $QT4_QRCFLAGS -name cards $SOURCE -o $TARGET
File "/pokercalculat
scons: *** Multiple ways to build the same target were specified for: /pokercalculato
File "/pokercalculat
Hi,
the problem here is that you specify "duplicate=0", such that generated files are created in the source directory. SCons then gets confused when you do this twice from different environments.
You need to set duplicate=1, this should fix your problem.
Best regards,
Dirk