Csound Csound-dev Csound-tekno Search About

[Cs-dev] Notes on SConstruct

Date2007-07-25 10:20
FromSimon Schamijer
Subject[Cs-dev] Notes on SConstruct
Hi,

things i dumped into when trying to build the latest version (5.06) on 
Fedora 7:

1)
System platform is 'linux'.
Using options from 'custom.py.'
KeyError: 'customCPPPATH':
   File "/home/erikos/olpc/Csound5.06.0/SConstruct", line 268:
     customCPPPATH = commonEnvironment['customCPPPATH']
   File "/usr/lib/scons/SCons/Environment.py", line 309:
     return self._dict[key]

You have to rename custom.py.mkg to custom.py. This has been fixed in 
cvs by now just thought i mention it if someone has got the same problem.

2)
Propagating the external PATH to the execution environment for commands 
( env = Environment(ENV = {'PATH' : os.environ['PATH']})does not work ) 
here:

Checking for C header file stdio.h... no
  *** Failed to compile a simple test program. The compiler is
  *** possibly not set up correctly, or is used with invalid flags.
  *** Check config.log to find out more about the error.

Changing this back to
env = Environment()
does make csound build.

3) Building then stops because of:

scons: *** Source `libcsound.so' not found, needed by target 
`libcsnd.so'.  Stop.
scons: building terminated because of errors.

Running the second time it finish the build. This has to do with the 
naming of the library. The version is set into the name
libName2 = libName + '.' + csoundLibraryVersion
scons can not find it because it looks for the shared libraries it has 
built (libcsound.so.5.1 != libcsound). In the second run it seams to 
accept the link. I have not found an easy solution for this problem in 
scons so far but thought i point out the issue.

Best,
    Simon

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net