Find the answer to your Linux question:
Results 1 to 2 of 2
Whenever I downloaded scons-0.97, the readme said to use Code: # python setup.py install to install it. So I did, and everything appeared to go well. Whenever I tried to ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2007
    Posts
    15

    Scons help


    Whenever I downloaded scons-0.97, the readme said to use
    Code:
     # python setup.py install
    to install it. So I did, and everything appeared to go well. Whenever I tried to run it by typing in "scons", I get the following error:
    Code:
     scons: *** No SConstruct file found.
    File "/usr/lib/python2.4/site-packages/SCons/Script/Main.py", line 1128, in _main
    Does anyone know how to fix this so that I can run scons?

  2. #2
    Just Joined!
    Join Date
    Sep 2007
    Posts
    3

    Smile Scons - No SConstruct

    Hi,

    You should have the following files in your VOB directory before using SCons...

    SConstruct
    SConopts
    Sconopts
    Scontargets - Optional

    and you should have Sconopts.user in your home directory which contains the details where your APPSYSTEM, TOOLS have.

    SConstruct: When you execute "scons", it first looks for SConstruct file. Currently there is one SConstruct script per vob. Most of the time users will not have to change default SConstruct script.

    SContargets: SContargets is used to define dependency matrix for your components. For instance if you would like to build dir1 before you build dir2, then you can write following code

    target("myproduct")
    allfiles("dir1")
    allfiles("dir2")

    this way when scons is executed, it will first build dir1 and then dir2.

    SConopts: SConopts file is used to define thirdparty or other variables that would be used by the scons based build system to process the whole vob.

    SConscript: SConscript file is required in each and every directory where you would like to build your source. If a directory does not contain SConscript file then scons will not build that directory and anything under it. More details are provided below on how to change this file for different action requrements like building libraries, and programs.



    Hence, please check with them before proceed.

    Ganesh Kumar

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •