[Scons-users] Problem with variant_dir on cygwin
Gary Oberbrunner
garyo at oberbrunner.com
Mon Sep 23 08:36:19 EDT 2013
Hi Bogdan; how are you including test.hpp in test.cpp? Angle brackets or
quotes? You might need to set env['CPPPATH']=['.'].
On Mon, Sep 23, 2013 at 6:42 AM, Bogdan Tenea <btenea at ixiacom.com> wrote:
> Hello,****
>
> ** **
>
> I have a problem with a hierarchical build when using variant_dir – on
> latest Cygwin version of Scons (2.3.0-4) it does not copy the header files
> in the build dir and compilation fails.****
>
> I tried running with duplicate=0 and it works out fine because it looks
> for the header in the original src_dir… Any clues what could be the
> problem? Tried both on Win7 64 and XP 32.****
>
> ** **
>
> *SConscript*: Import('env')****
>
> env.SharedLibrary(target = 'test', source = ['test.cpp'])****
>
> ** **
>
> *SConstruct: **SConscript('src/SConscript', exports = 'env', variant_dir
> = 'build')*
>
> vmwareuser at vmware-xpspih /cygdrive/c/test****
>
> $ scons****
>
> scons: Reading SConscript files ...****
>
> scons: done reading SConscript files.****
>
> scons: Building targets ...****
>
> g++ -o build/test.os -c -fPIC build/test.cpp****
>
> build/test.cpp:1:0: warning: -fPIC ignored for target (all code is
> position independent) [enabled by default]****
>
> *build/test.cpp:1:20: fatal error: test.hpp: No such file or directory*
>
> compilation terminated.****
>
> scons: *** [build/test.os] Error 1****
>
> scons: building terminated because of errors.****
>
> ** **
>
> *SConstruct: **SConscript('src/SConscript', exports = 'env', variant_dir
> = 'build'**, duplicate=0**)*
>
> vmwareuser at vmware-xpspih /cygdrive/c/test****
>
> $ scons****
>
> scons: Reading SConscript files ...****
>
> scons: done reading SConscript files.****
>
> scons: Building targets ...****
>
> g++ -o build/test.os -c -fPIC src/test.cpp****
>
> src/test.cpp:1:0: warning: -fPIC ignored for target (all code is position
> independent) [enabled by default]****
>
> g++ -o build/libtest.so -shared build/test.os****
>
> scons: done building targets.****
>
> ** **
>
> ** **
>
> Regards,****
>
> ** **
>
> Bogdan Tenea****
>
> Senior Software Engineer II****
>
> Ixia RO Stack Manager Developer****
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> http://four.pairlist.net/mailman/listinfo/scons-users
>
>
--
Gary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20130923/d5271f87/attachment.html
More information about the Scons-users
mailing list