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

Changing access specifiers from private to public in scons?

I use scons to build a large project and finally found a line in the SConstruct file that caused a compilation error that I posted here previously: sstream redeclared with public access compiler error Here is the line in the SConctruct…
miro_x
  • 201
  • 3
  • 8
-1
votes
1 answer

zsim. pin error :$PINPATH environment variable with Pin's path

I want to compile zsim (https://github.com/s5z/zsim) ~/zsim$ scons -j16 then there is an error message scons: Reading SConscript files ... Building opt zsim at build/opt ERROR: You need to define the $PINPATH environment variable with Pin's…
呂宗穎
  • 11
  • 3
-1
votes
1 answer

From GNU Make to Scons

How would a 'SConstruct' file in Scons look like that does what the following code does in GNU Make? target: dependency0 dependency1 shell command 1 # Not java, cc or the like shell command 2 shell command 3
Frank-Rene Schäfer
  • 3,182
  • 27
  • 51
-1
votes
1 answer

cross compile iotivity from x86_64 ubuntu to arm64 linux

i am a new to iotivity and i want to cross compile it for an arm64 linux device.i am working on ubuntu 14.04 LTS (x86_64). i have the toolchain for the arm device and i tried this code: scons TARGET_ARCH=arm TARGET_OS=linux…
Dhibi.H
  • 13
  • 2
-1
votes
1 answer

Scons "Dir" command doesn't work?

I've got a sub directory called "myc" containing 2 ".c" files: $ ls myc 1.c f.c And my current directory has a SConstruct: $ cat SConstruct myc=Dir('myc') print myc Program('test2',myc) Run scons, it prints a bunch of errors: $ scons scons:…
Hind Forsum
  • 9,717
  • 13
  • 63
  • 119
-1
votes
1 answer

SCons StaticLibrary not rebuilt after header change

In this example, foo.c includes foo.h. When foo.h is changed, foo.c is rebuild to foo.o, but libfoobar.a is not. Import('env') penv = env.Clone() penv.Append(CPPPATH=['./']) penv.StaticLibrary('foobar',[ 'foo.c', 'bar.c', …
Felipe Lavratti
  • 2,887
  • 16
  • 34
-1
votes
1 answer

scons: *** [out/linux/x86_64/release/resource/csdk/liboctbstack.so] Error 1 while installing and building iotivity

Scons error while installing and building iotivity on ubuntu 12.04 While trying to install iotivity on docker image ubuntu 12.04 i followed all instruction from iotivity Documentation for linux and when i use to run scons in root directory from…
-1
votes
1 answer

How to make scons append a forward slash '/' in the libpath

I've been struggling with the most minor issue I've ever dealt with while working with SCons, but this trivialness seems to not go away that easily as the issue itself is. So here's the situation. I have a project that compiles perfectly when I just…
Jay Shin
  • 914
  • 1
  • 7
  • 12
-1
votes
1 answer

SCons appears to build the same section multiple times

When building, SCons appears to build a .os, then a .a, and then add the -fPIC to build a .so. Is there some way to trim down this build time? Does SCons run in parallel like "make -j"?
user2569618
  • 517
  • 3
  • 16
  • 42
-1
votes
1 answer

scons build in eclipse

I have converted a static library project and an exe project to Scons project in ECLIPSE. These were building fine by Makefile. But when I am building the static library project it gives an error as below - === Running SCons at 18/11/13 8:55 PM…
Soumyajit Roy
  • 463
  • 2
  • 8
  • 17
-1
votes
1 answer

Installing SCONS without root access

Is there any way to install SCONS without root access?
user2517676
  • 969
  • 6
  • 15
  • 25
-1
votes
2 answers

ValueError: invalid \x escape:

ValueError: invalid \x escape: File "SConstruct", line 49: execfile("hosts.cfg") I'm completely stumped with this one guys... If I print right before line 49, I can see the output. On the very first line of "hosts.cfg" I put a second print…
fIwJlxSzApHEZIl
  • 11,861
  • 6
  • 62
  • 71
-2
votes
1 answer

Using two compiler in one sconscript (nvcc, g++)

How can I use both of the compiler in one sconscript?? Some of the details of the sconscript is shown below: I have a .cu file and with nvcc -c test.cu, I could generate a .o file. How can I import this .o file to the existing sconscript, so that…
-2
votes
1 answer

Unable to create c++ dll using Scons

I am trying to compile a c++ program in Scons. For c++ its giving the following error: o Untitled_game_godot\bin\win64\libgd.dll -shared -Lgodot-cpp\bin -llibgodot-cpp.windows.debug.64 o not recognized as an internal command I've tried to…
-2
votes
1 answer

ModuleNotFoundError: No module named 'SCons' when trying to build a project on Eclipse with scons

I am trying to build a project with scons on Eclipse. When I do, the command line outputs the following: Traceback (most recent call last): File "<<>>/scons", line 5, in from SCons.Script.Main import…
pscarpati
  • 48
  • 1
  • 9
1 2 3
86
87