Questions tagged [scons]

SCons is a cross platform, open source build tool and an alternative to the classic "Make". It works based on a declarative description of a build, using the Python programming language.

SCONS

SCons is a cross-platform, open source build tool and an alternative to the classic "Make". It works basing on a declarative description of a build, using the Python programming language. This gives SCons a great deal of flexibility and power, for example: its capabilities can be easily extended with custom builders and emitters.

1293 questions
0
votes
2 answers

compiling C++ with the scons compiler

I am using Mac OS X 10.8.2 and I am compiling my code using the scons compiler. I am using the 32 bit xerces-c database version 2.8.0. when I am trying to build I get errors: $scons scons: Reading SConscript files ... scons: done reading…
anibio
  • 1
  • 1
  • 1
0
votes
1 answer

Scons: shared library for each source file

I'm having sconscript that has a line like this: EXT_SHADERS = shader_env.SharedLibrary('scrubs', source_files, LIBPREFIX='') And the source_files is "abbreviated" from: src_base_dir = os.path.join(shader_env['ROOT_DIR'], 'contrib', 'extensions',…
im-i0dum
  • 474
  • 1
  • 5
  • 13
0
votes
2 answers

Raspbain G++ Compiler stopping on --m commands

Blockquote Hello, I am trying to compile the latest source of The Powder Toy but my compiler (G++ with scons) is crashing every time it hits a command with --m in it. Crash log: scons --lin --release --sse2 scons: Reading SConscript files…
Candunc
  • 98
  • 2
  • 9
0
votes
1 answer

How to define environment variable when running a compiled program with scons

I did write my SConstruct file so I build and run the program by doing scons run program = env.Program('build/output', Glob('build/test/*.cpp')) env.Default(program) env.Alias('run', program, program[0].abspath) I can compile my program and run it…
Phong
  • 6,600
  • 4
  • 32
  • 61
0
votes
1 answer

Getting base filename define in scons

I'm trying to generate a per-sourcefile macro that will hold the base file name of the source file. This is described for make here. I tried to override the Object builder, but it didn't work... I tried to do what is described here. def…
BugoK
  • 135
  • 1
  • 10
0
votes
2 answers

SCons - 'rc' is not recognized as an internal or external command, operable program or batch file

I have set-up everything according to instructions on https://github.com/TideSDK/TideSDK/wiki/Windows7-x86-2005 But, scons won't pick up "rc" from PATH: > scons -s debug=1 sdkinstaller run=1 ... runs fine for a while, until: ... cl : Command line…
Motin
  • 4,853
  • 4
  • 44
  • 51
0
votes
0 answers

SCons carshed when option is given value containing a colon

On Windows, when I pass an argument to SCons (added using AddOption) that contains ':', Scons exits with error code 2 and doesn't compile. All steps prior to compilation are executed. scons --test_option="abc:" # Fails scons --test_option="abc" #…
Xyand
  • 4,470
  • 4
  • 36
  • 63
0
votes
1 answer

How to make python script for scons that use scons functions and variables

I want to make "common" script which I will use in all my sconscripts This script must use some scons functions like Object() or SharedObject() Is there any scons file that i can import or maybe another useful hack. Im new to python and scons.
themean
  • 1,313
  • 4
  • 17
  • 33
0
votes
1 answer

undefined reference to `libiconv_close'

I'm trying to build zxing using MinGW, but it fails with error undefined reference to libiconv_close This is the output of the build: scons: Reading SConscript files ... scons: done reading SConscript files. scons: Building targets ... g++ -o…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
0
votes
1 answer

Link error while building with command scons compiler=msvc

I am trying to build a program using the command scons compiler = msvc. During this action a link error appears: LNK1181: cannot open input file 'QtCore4.lib'. I have installed Qt for Windows from http://qt.nokia.com/downloads (the free version) and…
fla
0
votes
2 answers

creating SConscript objects in scons

I have my project targets (binaries and libraries) specified in json files. I can create an environment for the specified target without any problem. Now I'm trying to support a specific build directory. My knowledge about scons is still very basic…
user1192525
  • 657
  • 4
  • 20
0
votes
0 answers

Compile C++ project using python script from visual studio 2005

I've a big project with C and C++ code ,we are using Scons to build it from command line .Is there any plugin for VS 2005 to run python script for comiple ,run and debug from IDE itself.
0
votes
1 answer

How to append timestamp to matching string using SCons' env.Command

I have been trying to do a string replace of .txt filenames within an .properties file using the sed shell command in the SCons' env.Command function. I am currently failing to understand how to append a timestamp to these filenames within this…
Traker
  • 2,147
  • 3
  • 23
  • 38
0
votes
1 answer

SCons is trying to validate arguments when it is not needed

Below is the simple code snippet that illustrates the problem: def external_dependencies(url, destination): # this never gets called print 'whatever!' # if isinstance(url, basestring): # …
user797257
0
votes
1 answer

How do I cache configure settings for static libraries that are built using Ant scripts and SCONS?

Currently, we build a group of static libraries prior to building our app. The issue is that for each library there is some variation of the ./configure, make , test sequence. I would like to be able to cache the results of the configure step to…
fangsout