Uic4 doesn't work with variant_dir

Bug #722835 reported by Corni
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SCons Qt4 Tool
New
Undecided
Unassigned

Bug Description

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.

Revision history for this message
Dirk Baechle (dl9obn) wrote :

Hi,

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"?

Regards,

Dirk

Revision history for this message
Corni (comaddcor) wrote :

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

Revision history for this message
Dirk Baechle (dl9obn) wrote :

Dear SCons Qt4 users and followers of this bug,

due to the general move of the SCons development to Mercurial, I decided to migrate all my SCons Tool projects to BitBucket. This also includes the bugtracking, so please visit

  https://bitbucket.org/dirkbaechle/scons_qt4

and add yourself as follower for issue #1

  "Uic4 doesn't work with variant_dir"

if you like. We will tear down the complete SCons Qt4 project Bazaar/Launchpad account really soon and continue development on BitBucket under Mercurial.

Thanks a lot for your understanding and best regards,

Dirk

Revision history for this message
Russel Winder (russel) wrote : Re: [Bug 722835] Re: Uic4 doesn't work with variant_dir

Dirk,

On Thu, 2011-09-08 at 17:44 +0000, Dirk Baechle wrote:
> Dear SCons Qt4 users and followers of this bug,
>
> due to the general move of the SCons development to Mercurial, I decided
> to migrate all my SCons Tool projects to BitBucket. This also includes
> the bugtracking, so please visit
>
> https://bitbucket.org/dirkbaechle/scons_qt4
>
> and add yourself as follower for issue #1
>
> "Uic4 doesn't work with variant_dir"
>
> if you like. We will tear down the complete SCons Qt4 project
> Bazaar/Launchpad account really soon and continue development on
> BitBucket under Mercurial.

I have found that it is not possible to delete a project on Launchpad
without involving the Launchpad staff. They are all nice people and
would quickly do the needful. However I decided to keep the projects I
had and set up automated mirroring of the Mercurial repositories on
BitBucket to Bazaar branches on Launchpad. Once set up it is zero
effort and retains the "presence" which cannot hurt?

> Thanks a lot for your understanding and best regards,
>
> Dirk
>

--
Russel.
=============================================================================
Dr Russel Winder t: +44 20 7585 2200 voip: sip:<email address hidden>
41 Buckmaster Road m: +44 7770 465 077 xmpp: <email address hidden>
London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.