[Scons-users] Trouble building a qt based project.

Dirk Bächle tshortik at gmx.de
Fri Oct 18 12:40:42 EDT 2013


On 16.10.2013 00:30, Matias Iturburu wrote:

>

>

>

> 2013/10/7 Dirk Bächle <tshortik at gmx.de <mailto:tshortik at gmx.de>>

>

> On 07.10.2013 22:43, Matias Iturburu wrote:

>>

>> These are the remaining issues:

>>

>> - RCC still can't solve the image paths

>> /usr/bin/rcc -root

>> /home/matias/Proyectos/fudepan-build/build/PrecisionFarm/farming-guidance-system-src/uiDirector

>> -name images

>> build/PrecisionFarm/farming-guidance-system-src/uiDirector/images.qrc

>> -o

>> build/PrecisionFarm/farming-guidance-system-src/uiDirector/qrc_images.cc

>> RCC: Error in

>> 'build/PrecisionFarm/farming-guidance-system-src/uiDirector/images.qrc':

>> *Cannot find file 'res/images/red_arrow.png'*

>> scons: ***

>> [build/PrecisionFarm/farming-guidance-system-src/uiDirector/qrc_images.cc]

>> Error 1

>> scons: building terminated because of errors.

>>

>

> Looks like your argument to "root" is the wrong path. It points

> into your build directory, but shouldn't it refer to your source

> folder, where "res/images/red_arrow.png" can actually be found?

>

>

> Why isn't SCons copying those files as it does with every other build

> artifact?

> Shouldn't the tool handle this?

> How could I tell SCons how to treat those resources?


Hi Matias,

please use the explicit call of the Qrc4 Builder like this:

qrc = env.Qrc4('qrc_images.cc','images.qrc')
env.Program(..., your_sources + [qrc])

Then the proper QRC scanner gets called and will resolve the
dependencies and copy the required files.

Best regards,

Dirk

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20131018/3e9e747a/attachment.htm


More information about the Scons-users mailing list