[Scons-users] QT4 tool.

Leandro Moreno leandro.moreno at tallertechnologies.com
Tue Jun 3 10:48:43 EDT 2014


If I add QT4_AUTOSCAN = 0 to my project Sconscript. I can run the last case
(coverage), but I cannot run the compilation.


On Tue, Jun 3, 2014 at 11:47 AM, Leandro Moreno <
leandro.moreno at tallertechnologies.com> wrote:

> Hello SCons list!
>
> I have integrated the SCons tool to my software (fbuild
> https://bitbucket.org/fudepan/fudepan-build). And I have the following
> problem:
>
> My tool search the file to compile as the QT4 tool. So, Scons tell me that
> I have two ways to compile something:
>
> Example:
> scons: warning: Two different environments were specified for target
> build/.../moc_qtStepsPathWidget.cc,
>     but they appear to have the same action: $QT4_MOC $QT4_MOCDEFINES
> $QT4_MOCFROMHFLAGS $QT4_MOCINCFLAGS -o $TARGET $SOURCE
> File "/home/moreno/fudepan-build/site_scons/site_tools/qt4/__init__.py",
> line 203, in __automoc_strategy_simple
>
> scons: warning: Two different environments were specified for target
> build/.../moc_qtStepsPathWidget.o,
>     but they appear to have the same action: $CXX -o $TARGET -c $CXXFLAGS
> $CCFLAGS $_CCCOMCOM $SOURCES
> File "/home/moreno/fudepan-build/site_scons/site_tools/qt4/__init__.py",
> line 215, in __automoc_strategy_simple
>
> So, the tool and fbuild define the same way to compile (or that is what I
> could see). The problem is when through fbuild I add another flag, like
> "--coverage".
>
> scons: warning: Two different environments were specified for target
> build/.../moc_qtMapDrawer.cc,
>     but they appear to have the same action: $QT4_MOC $QT4_MOCDEFINES
> $QT4_MOCFROMHFLAGS $QT4_MOCINCFLAGS -o $TARGET $SOURCE
> File "/home/moreno/fudepan-build/site_scons/site_tools/qt4/__init__.py",
> line 203, in __automoc_strategy_simple
>
> scons: *** Two environments with different actions were specified for the
> same target: build/.../moc_qtMapDrawer.o
> File "/home/moreno/fudepan-build/site_scons/site_tools/qt4/__init__.py",
> line 215, in __automoc_strategy_simple
>
> There, Scons cannot decide which action take. So, It fails.
>
> I cannot understand totally the source code of QT4 tool. So, I couldn't
> modify something.
>
> Would you like to help me with this? Have you got some idea about what I
> can do?
>
> Thanks!!
> --
> <http://www.tallertechnologies.com>
> Leandro Moreno
> Intern Engineer
>
> San Lorenzo 47, 3rd Floor, Office 5
> Córdoba, Argentina
>
> Phone: +54 351 4217888 / +54 351 4218211
> Skype: letossgm
>
>


-- 
<http://www.tallertechnologies.com>
Leandro Moreno
Intern Engineer

San Lorenzo 47, 3rd Floor, Office 5
Córdoba, Argentina

Phone: +54 351 4217888 / +54 351 4218211
Skype: letossgm
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20140603/510d5af1/attachment.html>


More information about the Scons-users mailing list