Csound Csound-dev Csound-tekno Search About

[Csnd] building csound 5.19 on OSX

Date2013-04-28 17:16
FromMatti Koskinen
Subject[Csnd] building csound 5.19 on OSX
I have csound 5.19 installed from dmg. atsa gives write error when analysing a sound file. So I tried to build csound, but get these

Linking C shared library libcsound64.dylib
Undefined symbols for architecture x86_64:
  "_csp_dag_is_finished", referenced from:
      _nodePerf in csound.c.o
      _csp_dag_calculate_max_roots in cs_par_dispatch.c.o
  "_csp_locks_lock", referenced from:
      _globallock in cs_par_dispatch.c.o
  "_csp_locks_unlock", referenced from:
      _globalunlock in cs_par_dispatch.c.o
  "_csp_set_count", referenced from:
      _csp_set_union in cs_par_base.c.o
      _csp_set_intersection in cs_par_base.c.o
      _csp_dag_build_edges in cs_par_dispatch.c.o
  "_csp_set_get_num", referenced from:
      _csp_set_union in cs_par_base.c.o
      _csp_set_intersection in cs_par_base.c.o
      _csp_locks_insert in cs_par_dispatch.c.o
ld: symbol(s) not found for architecture x86_64

they are in the code, but nm too shows them as undefined. 

I'm building with cmake, and no errors are given. Are there a flag or missing something? This on osx 10.8.2.

-matti

"Grep less", sed tee uniq tail cat




Date2013-04-28 17:27
FromSteven Yi
SubjectRe: [Csnd] building csound 5.19 on OSX
Hi Matti,

For Csound 5, the official build tool is Scons. I would recommend
using that to build.

On the other hand, for CMakeI I imagine the issue you came across
might be due to a .c file that is not added to the CMakeLists.txt.
However, I used the latest from GIT and was able to compile here (OSX
10.8.3).  Are you building from GIT or from a source archive?

For Scons, you can look at
csound5/installer/macosx/release-build-10.7.sh for flags used to build
Csound.

Hope that helps!
steven

On Sun, Apr 28, 2013 at 5:16 PM, Matti Koskinen  wrote:
> I have csound 5.19 installed from dmg. atsa gives write error when analysing
> a sound file. So I tried to build csound, but get these
>
> Linking C shared library libcsound64.dylib
> Undefined symbols for architecture x86_64:
>   "_csp_dag_is_finished", referenced from:
>       _nodePerf in csound.c.o
>       _csp_dag_calculate_max_roots in cs_par_dispatch.c.o
>   "_csp_locks_lock", referenced from:
>       _globallock in cs_par_dispatch.c.o
>   "_csp_locks_unlock", referenced from:
>       _globalunlock in cs_par_dispatch.c.o
>   "_csp_set_count", referenced from:
>       _csp_set_union in cs_par_base.c.o
>       _csp_set_intersection in cs_par_base.c.o
>       _csp_dag_build_edges in cs_par_dispatch.c.o
>   "_csp_set_get_num", referenced from:
>       _csp_set_union in cs_par_base.c.o
>       _csp_set_intersection in cs_par_base.c.o
>       _csp_locks_insert in cs_par_dispatch.c.o
> ld: symbol(s) not found for architecture x86_64
>
> they are in the code, but nm too shows them as undefined.
>
> I'm building with cmake, and no errors are given. Are there a flag or
> missing something? This on osx 10.8.2.
>
> -matti
>
> "Grep less", sed tee uniq tail cat
>
>
>

Date2013-04-28 19:48
FromMatti Koskinen
SubjectRe: [Csnd] building csound 5.19 on OSX
On Apr 28, 2013, at 7:27 PM, Steven Yi  wrote:

> Hi Matti,
> 
> For Csound 5, the official build tool is Scons. I would recommend
> using that to build.
> 
> On the other hand, for CMakeI I imagine the issue you came across
> might be due to a .c file that is not added to the CMakeLists.txt.
> However, I used the latest from GIT and was able to compile here (OSX
> 10.8.3).  Are you building from GIT or from a source archive?
> 
> For Scons, you can look at
> csound5/installer/macosx/release-build-10.7.sh for flags used to build
> Csound.
> 
> Hope that helps!
> steven
> 
Thanks Steven. After trying hard, and then finally going to stackoverflow, Apple's clang doesn't support openmp, I disabled it, but trying to build lua, the code has still some references to omp. Disabling lua & others, finally built csound. I used a fresh pull from git.
Scons failed. I've so used to use cmake, so I tried cmake. Anyhow changing  c++ to g++ causes configuration to go into infinite loop.

But now csound works, will try atsa. atsa created a file, but why the write errors? Made me think of crashing hd :-(

thanks

-matti




Date2013-04-30 13:42
FromSteven Yi
SubjectRe: [Csnd] building csound 5.19 on OSX
Hi Matti,

I am unsure about atsa write errors, as I don't use the tool myself.
If you could describe the problem and steps you took, maybe someone
here can help.

steven

On Sun, Apr 28, 2013 at 7:48 PM, Matti Koskinen  wrote:
>
> On Apr 28, 2013, at 7:27 PM, Steven Yi  wrote:
>
>> Hi Matti,
>>
>> For Csound 5, the official build tool is Scons. I would recommend
>> using that to build.
>>
>> On the other hand, for CMakeI I imagine the issue you came across
>> might be due to a .c file that is not added to the CMakeLists.txt.
>> However, I used the latest from GIT and was able to compile here (OSX
>> 10.8.3).  Are you building from GIT or from a source archive?
>>
>> For Scons, you can look at
>> csound5/installer/macosx/release-build-10.7.sh for flags used to build
>> Csound.
>>
>> Hope that helps!
>> steven
>>
> Thanks Steven. After trying hard, and then finally going to stackoverflow, Apple's clang doesn't support openmp, I disabled it, but trying to build lua, the code has still some references to omp. Disabling lua & others, finally built csound. I used a fresh pull from git.
> Scons failed. I've so used to use cmake, so I tried cmake. Anyhow changing  c++ to g++ causes configuration to go into infinite loop.
>
> But now csound works, will try atsa. atsa created a file, but why the write errors? Made me think of crashing hd :-(
>
> thanks
>
> -matti
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>             https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>