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
1 answer

dumpbin equivalent in unix

I'm using SCons to compile few programs and then I want to check what type of binary file is it. Is it 64bit or 32bit, in windows I used dumpbin. I tried using nm for unix and that returned the following ~/Documents/scons_unix/SCons_test$ nm…
cyberbemon
  • 3,000
  • 11
  • 37
  • 62
0
votes
0 answers

Linking SFML libraries with scons build

For the life of me, I can't get scons to link these SFML libraries. I believe I followed everything the scons website says to do regarding library linking, so I'm at a loss as to what to do: import fnmatch import os #Setup environment file_match =…
Azmisov
  • 6,493
  • 7
  • 53
  • 70
0
votes
3 answers

Run epydoc and/or pylint builders from scons file

How would I create builders that runs epydoc or/and pylint from a scons built?
Sardathrion - against SE abuse
  • 17,269
  • 27
  • 101
  • 156
0
votes
2 answers

SCons: Link a target to a SConscript

I am a bit confused with the functionnement of targets with SCons. I am currently trying to create a simple target check to launch the Boost.Test suite located in my tests folder. In order to launch all the tests, I have a tests/SConscript file in…
Rippalka
  • 380
  • 6
  • 16
0
votes
1 answer

Scons - How to run a command after Install()

Background Our build script use Install() and InstallAs() to install a number of .dylib and .so files to a "dist" directory. Install(dist_dir, 'libfoo') Install(dist_dir, 'libbar') ... The problem After the library files are copied to dist_dir, we…
Hai Vu
  • 37,849
  • 11
  • 66
  • 93
0
votes
1 answer

Using scons with Keil compiler/linker

I'm trying to use the Keil C51 compiler with scons as a build system. The final problem I have is how to get $SOURCES to be output comma-separated to the linker. The default uses space as separator. The relevant parts of the SConstruct is path =…
FkYkko
  • 1,015
  • 1
  • 12
  • 18
0
votes
1 answer

Fallback builder in SCons

Is it possible to implement something like fallback building method in SCons? For example, I have following code in my SConscript: if check_something(): MyBuilder(a, b) .... if dont_know_how_to_build(a): FallBackBuilder(a, c) I can't…
Igor Chubin
  • 61,765
  • 13
  • 122
  • 144
0
votes
2 answers

regarding VS 2008 compilers and SCONS

I have a 64 bit windows operating system and I use VS2008 to write my programs. I've noticed there are 3 compilers in the bin folder: an amd64 , x86_amd64 and one in the bin directory (at least I think it is !). I use SCONS to Compile my programs…
cyberbemon
  • 3,000
  • 11
  • 37
  • 62
0
votes
1 answer

CentOS 6 producing an odd linking error

our network recently made the switch to CentOS 6 from CentOS 5. Upon compiling with gcc we find that at linking time we find this error. /usr/bin/ld: cannot find -lz collect2: ld returned 1 exit status Now it seemed that in CentOS5 that our…
jwillis0720
  • 4,329
  • 8
  • 41
  • 74
0
votes
1 answer

scons - Recompile only specific portions of an application?

This is my first time with scons and compiling in general. This application had a problem which was fixed by this guy here. Now I want to apply that fix manually but only recompile that specific bit of code. So: followed the instructions and…
Silviu-Marian
  • 10,565
  • 6
  • 50
  • 72
0
votes
1 answer

scons, -u and aliases

Here's the minimal repro steps for the problem I am experimenting. Let's say I have the following SConscripts and SConsctruct: #/SConstruct: SConscript( "SConscript", variant_dir="build" ) #/SConscript: SConscript( "lib1/SConscript" ) SConscript(…
fronsacqc
  • 320
  • 2
  • 12
-1
votes
2 answers

How can python code in a Scons script ascertain that it's being run as part of a clean operation?

Is there a runtime variable that can be checked during tree generation if the scons -c flag has been provided? Additional Context: Suppose you have a Sconscript that generates a target "TARG" which can be built, and it is convenient when building…
-1
votes
1 answer

Why missing parenthesis error in print Python2.7. When python 2.7 support no brackets?

I was running NVMain but got a python error. I'm using python 2.7.18, but ended up on missing parenthesis error and as I read everywhere python 2.7 supports no brackets but why the error is still existing. I am attaching a picture of error.
Learning
  • 29
  • 1
-1
votes
1 answer

SConstruct - SyntaxError : Invalid Syntax

So, i've been trying to compile a program using sconstruct, but i'm facing a problem. I got the following error when trying to compile a program using sconstruct. D:\RN ENGINE - REV #1\neo>scons scons: Reading SConscript files ... File…
-1
votes
1 answer

Error when linking for android. Error: cannot find -lmysqlcppconn & error: undefined reference to 'sql::mysql::get_driver_instance()

I have used a custom MySQL module and I am trying to compile for android. But I will encounter this error whenever trying to compile. Steps: Execute scons platform=android target=release android_arch=armv7 I tried to google this error and from what…