Csound Csound-dev Csound-tekno Search About

[Cs-dev] build errors

Date2007-01-21 07:01
FromJonathan Murphy
Subject[Cs-dev] build errors
Hi Folks,

I'm unable to build the utilities (this has been the case since August
last year, when changes to the directory structure of the
utilities/analysis section of the sources were made (I think)), or the
Python opcodes (more recent and I'm assuming swig-related), or the
interfaces (post 5.04, and I'm assuming also swig-related).

Today the process went as follows:

1. Manually removed all installed portions of Csound
2. Ran ldconfig
3. Checked out current CVS
4. Attempted to build using:

scons usePortAudio=0 usePortMIDI=0 useOSC=1 buildPythonOpcodes=1
dynamicCsoundLibrary=1 buildPDClass=1 useCoreAudio=0 buildDSSI=0
buildInterfaces=1

The build fails with the following error:

/usr/bin/ld: cannot find -lcsound
collect2: ld returned 1 exit status
scons: *** [atsa] Error 1

5. Fresh checkout. Added buildUtilities=0

The build fails when attempting to generate the wrappers for the
Python interface. Long string of errors.

6. Fresh checkout. Removed buildPythonOpcodes=1

As per 5.

7. Fresh checkout. Removed buildInterfaces=1

Successful build. 

Which version of swig is required for the Python interface (I have
1.3.27, built from source, which was fine until recently), and what do
I need to do to help ld to find -lcsound (which will hopefully allow
me to build the utils again)?

Thanks in advance,
Jonathan.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-01-21 09:00
FromJonathan Murphy
SubjectRe: [Cs-dev] build errors
Further, having built with the following options:

scons usePortAudio=0 usePortMIDI=0 useOSC=1 dynamicCsoundLibrary=1
buildPDClass=1 buildDSSI=0 buildUtilities=0

Attempting to install:

scons usePortAudio=0 usePortMIDI=0 useOSC=1 dynamicCsoundLibrary=1
buildPDClass=1 buildDSSI=0 buildUtilities=0 install

Fails with the error:

scons: *** Source `opcodes.dir' not found, needed by target
`/usr/local/lib/csound/plugins/opcodes.dir'.  Stop.

Obviously this was easily fixed by downloading the Csound5.04 sources
and copying opcodes.dir from there, but it'd be better if the
installation script was changed to reflect its absence.

Thanks,
Jonathan.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-01-21 11:47
FromJonathan Murphy
SubjectRe: [Cs-dev] build errors
Back again, sorry. Swig-1.3.31 has fixed all of the problems. Except
presumably needing opcodes.dir for the install. 

Jonathan. 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-01-21 12:42
FromAndres Cabrera
SubjectRe: [Cs-dev] build errors
Hi,
>
> scons: *** Source `opcodes.dir' not found, needed by target
> `/usr/local/lib/csound/plugins/opcodes.dir'.  Stop.
>   
Victor implied that this file is created automatically by csound. Shall
I remove the copying of "opcode.dir" in SConstruct?

Cheers,
Andrés


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2007-01-21 13:00
From"Steven Yi"
SubjectRe: [Cs-dev] build errors
AttachmentsNone