Csound Csound-dev Csound-tekno Search About

[Csnd] Where to find libraries, csound.hpp for cpp examples?

Date2014-09-12 23:21
Fromforrest curo
Subject[Csnd] Where to find libraries, csound.hpp for cpp examples?
The examples I'm trying to compile are in the 'cpp' versions offered as translations to c++ of Steven Yi's csound api python examples.

"##Compilation instruction
In order to compile thee examples you will need to link to the Csound6 library. The following command line can be used to build on Linux:
g++ example1.cpp -o example1 -I/usr/local/include/csound -L/usr/local/lib -lcsound64 -lcsnd6"

This does not work in my Ubuntu 14 system...

If I change the source's reference to "csound.hpp" to "csound.h" , gcc accepts it with " -I/usr/include/csound " but nothing I do with -L enables it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all sure this is kosher; is it?]
-----

I'm having the same sort of difficulty trying to compile example1.c in the 'c' examples.

?

Forrest Curo
San Diego

Date2014-09-13 02:01
FromRory Walsh
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?
Judging by the spelling errors in the text you quoted I can safely
assume it was I who wrote the instructions :) You may not need csnd6
at all. What happens if you leave that out altogether?

On 12 September 2014 23:21, forrest curo  wrote:
> The examples I'm trying to compile are in the 'cpp' versions offered as
> translations to c++ of Steven Yi's csound api python examples.
>
> "##Compilation instruction
> In order to compile thee examples you will need to link to the Csound6
> library. The following command line can be used to build on Linux:
> g++ example1.cpp -o example1 -I/usr/local/include/csound -L/usr/local/lib
> -lcsound64 -lcsnd6"
>
> This does not work in my Ubuntu 14 system...
>
> If I change the source's reference to "csound.hpp" to "csound.h" , gcc
> accepts it with " -I/usr/include/csound " but nothing I do with -L enables
> it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all sure
> this is kosher; is it?]
> -----
>
> I'm having the same sort of difficulty trying to compile example1.c in the
> 'c' examples.
>
> ?
>
> Forrest Curo
> San Diego

Date2014-09-13 04:52
Fromforrest curo
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?


On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
Judging by the spelling errors in the text you quoted I can safely
assume it was I who wrote the instructions :) You may not need csnd6
at all. What happens if you leave that out altogether?

Yes, thank you for providing instructions! [I still haven't caught any spelling errors; I must be human!]

Um, the same thing happens [I downloaded the latest 'csound.hpp' I could find into the same directory]:
----------
g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib -lcsound64
In file included from example1.cpp:12:0:
csound.hpp: In member function ‘virtual int Csound::ReadScore(const char*)’:
csound.hpp:178:35: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
 return csoundReadScore(csound, str);
                                   ^
In file included from csound.hpp:32:0,
                 from example1.cpp:12:
/usr/include/csound/csound.h:1169:16: error:   initializing argument 2 of ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
     PUBLIC int csoundReadScore(CSOUND *csound, char *str);
                ^
In file included from example1.cpp:12:0:
csound.hpp: In member function ‘virtual int Csound::CompileCsd(char*)’:
csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in this scope
 return csoundCompileCsd(csound, csd);
                                    ^
example1.cpp: In function ‘int main(int, char**)’:
example1.cpp:20:28: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
 csound->Compile("test1.csd");
------------------

Forrest Curo
San Diego


On 12 September 2014 23:21, forrest curo <treegestalt@gmail.com> wrote:
> The examples I'm trying to compile are in the 'cpp' versions offered as
> translations to c++ of Steven Yi's csound api python examples.
>
> "##Compilation instruction
> In order to compile thee examples you will need to link to the Csound6
> library. The following command line can be used to build on Linux:
> g++ example1.cpp -o example1 -I/usr/local/include/csound -L/usr/local/lib
> -lcsound64 -lcsnd6"
>
> This does not work in my Ubuntu 14 system...
>
> If I change the source's reference to "csound.hpp" to "csound.h" , gcc
> accepts it with " -I/usr/include/csound " but nothing I do with -L enables
> it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all sure
> this is kosher; is it?]
> -----
>
> I'm having the same sort of difficulty trying to compile example1.c in the
> 'c' examples.
>
> ?
>
> Forrest Curo
> San Diego


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-09-13 12:32
FromRory Walsh
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?
Downloaded the latest csound.hpp? You should be working with the
csound.hpp that is distributed with the version of Csound you are
linking to. What version of Csound are you building against? Those
function prototypes changed some time ago. They used to accept a
char*, they now accepts a const char*. If you don't update to the
latest version of Csound you'll need to modify the code in those
examples.

On 13 September 2014 05:52, forrest curo  wrote:
>
>
> On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh  wrote:
>>
>> Judging by the spelling errors in the text you quoted I can safely
>> assume it was I who wrote the instructions :) You may not need csnd6
>> at all. What happens if you leave that out altogether?
>
>
> Yes, thank you for providing instructions! [I still haven't caught any
> spelling errors; I must be human!]
>
> Um, the same thing happens [I downloaded the latest 'csound.hpp' I could
> find into the same directory]:
> ----------
> g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib -lcsound64
> In file included from example1.cpp:12:0:
> csound.hpp: In member function ‘virtual int Csound::ReadScore(const char*)’:
> csound.hpp:178:35: error: invalid conversion from ‘const char*’ to ‘char*’
> [-fpermissive]
>  return csoundReadScore(csound, str);
>                                    ^
> In file included from csound.hpp:32:0,
>                  from example1.cpp:12:
> /usr/include/csound/csound.h:1169:16: error:   initializing argument 2 of
> ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
>      PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>                 ^
> In file included from example1.cpp:12:0:
> csound.hpp: In member function ‘virtual int Csound::CompileCsd(char*)’:
> csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in this scope
>  return csoundCompileCsd(csound, csd);
>                                     ^
> example1.cpp: In function ‘int main(int, char**)’:
> example1.cpp:20:28: warning: deprecated conversion from string constant to
> ‘char*’ [-Wwrite-strings]
>  csound->Compile("test1.csd");
> ------------------
>
> Forrest Curo
> San Diego
>
>>
>> On 12 September 2014 23:21, forrest curo  wrote:
>> > The examples I'm trying to compile are in the 'cpp' versions offered as
>> > translations to c++ of Steven Yi's csound api python examples.
>> >
>> > "##Compilation instruction
>> > In order to compile thee examples you will need to link to the Csound6
>> > library. The following command line can be used to build on Linux:
>> > g++ example1.cpp -o example1 -I/usr/local/include/csound
>> > -L/usr/local/lib
>> > -lcsound64 -lcsnd6"
>> >
>> > This does not work in my Ubuntu 14 system...
>> >
>> > If I change the source's reference to "csound.hpp" to "csound.h" , gcc
>> > accepts it with " -I/usr/include/csound " but nothing I do with -L
>> > enables
>> > it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all
>> > sure
>> > this is kosher; is it?]
>> > -----
>> >
>> > I'm having the same sort of difficulty trying to compile example1.c in
>> > the
>> > 'c' examples.
>> >
>> > ?
>> >
>> > Forrest Curo
>> > San Diego
>>
>>
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>


Date2014-09-13 17:00
Fromforrest curo
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?
My package-critter says 1:6.02, which it says is the latest available via Ubuntu packages. There _was_ no 'csound.hpp' with their distribution.

I'd once tried installing csound 6 by hand into my debian partition -- went hunting through long chains of dependencies that actually circled back into a loop in one such chain -- and simply clobbered my audio on that partition.

Your pre-compiled example1 binary works just fine; the source both on your c++ and on the c examples runs into inexplicable snags... not just library paths, which I can fix, but invisible libraries directly in those paths... probably wrong versions, oh well!

Thanks, I'll probably go with the python examples & use pygame to add GUI controls.

On Sat, Sep 13, 2014 at 4:32 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
Downloaded the latest csound.hpp? You should be working with the
csound.hpp that is distributed with the version of Csound you are
linking to. What version of Csound are you building against? Those
function prototypes changed some time ago. They used to accept a
char*, they now accepts a const char*. If you don't update to the
latest version of Csound you'll need to modify the code in those
examples.

On 13 September 2014 05:52, forrest curo <treegestalt@gmail.com> wrote:
>
>
> On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> Judging by the spelling errors in the text you quoted I can safely
>> assume it was I who wrote the instructions :) You may not need csnd6
>> at all. What happens if you leave that out altogether?
>
>
> Yes, thank you for providing instructions! [I still haven't caught any
> spelling errors; I must be human!]
>
> Um, the same thing happens [I downloaded the latest 'csound.hpp' I could
> find into the same directory]:
> ----------
> g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib -lcsound64
> In file included from example1.cpp:12:0:
> csound.hpp: In member function ‘virtual int Csound::ReadScore(const char*)’:
> csound.hpp:178:35: error: invalid conversion from ‘const char*’ to ‘char*’
> [-fpermissive]
>  return csoundReadScore(csound, str);
>                                    ^
> In file included from csound.hpp:32:0,
>                  from example1.cpp:12:
> /usr/include/csound/csound.h:1169:16: error:   initializing argument 2 of
> ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
>      PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>                 ^
> In file included from example1.cpp:12:0:
> csound.hpp: In member function ‘virtual int Csound::CompileCsd(char*)’:
> csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in this scope
>  return csoundCompileCsd(csound, csd);
>                                     ^
> example1.cpp: In function ‘int main(int, char**)’:
> example1.cpp:20:28: warning: deprecated conversion from string constant to
> ‘char*’ [-Wwrite-strings]
>  csound->Compile("test1.csd");
> ------------------
>
> Forrest Curo
> San Diego
>
>>
>> On 12 September 2014 23:21, forrest curo <treegestalt@gmail.com> wrote:
>> > The examples I'm trying to compile are in the 'cpp' versions offered as
>> > translations to c++ of Steven Yi's csound api python examples.
>> >
>> > "##Compilation instruction
>> > In order to compile thee examples you will need to link to the Csound6
>> > library. The following command line can be used to build on Linux:
>> > g++ example1.cpp -o example1 -I/usr/local/include/csound
>> > -L/usr/local/lib
>> > -lcsound64 -lcsnd6"
>> >
>> > This does not work in my Ubuntu 14 system...
>> >
>> > If I change the source's reference to "csound.hpp" to "csound.h" , gcc
>> > accepts it with " -I/usr/include/csound " but nothing I do with -L
>> > enables
>> > it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all
>> > sure
>> > this is kosher; is it?]
>> > -----
>> >
>> > I'm having the same sort of difficulty trying to compile example1.c in
>> > the
>> > 'c' examples.
>> >
>> > ?
>> >
>> > Forrest Curo
>> > San Diego
>>
>>
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-09-13 17:03
FromRory Walsh
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?
Well the code works fine here with the latest version of Csound.
Building on any Linux box shouldn't take more than a few minutes:

https://github.com/csound/csound/blob/develop/BUILD.md

The key here is this command:

sudo apt-get build-dep csound

It will automatically install all the libraries necessary to build.

On 13 September 2014 18:00, forrest curo  wrote:
> My package-critter says 1:6.02, which it says is the latest available via
> Ubuntu packages. There _was_ no 'csound.hpp' with their distribution.
>
> I'd once tried installing csound 6 by hand into my debian partition -- went
> hunting through long chains of dependencies that actually circled back into
> a loop in one such chain -- and simply clobbered my audio on that partition.
>
> Your pre-compiled example1 binary works just fine; the source both on your
> c++ and on the c examples runs into inexplicable snags... not just library
> paths, which I can fix, but invisible libraries directly in those paths...
> probably wrong versions, oh well!
>
> Thanks, I'll probably go with the python examples & use pygame to add GUI
> controls.
>
> On Sat, Sep 13, 2014 at 4:32 AM, Rory Walsh  wrote:
>>
>> Downloaded the latest csound.hpp? You should be working with the
>> csound.hpp that is distributed with the version of Csound you are
>> linking to. What version of Csound are you building against? Those
>> function prototypes changed some time ago. They used to accept a
>> char*, they now accepts a const char*. If you don't update to the
>> latest version of Csound you'll need to modify the code in those
>> examples.
>>
>> On 13 September 2014 05:52, forrest curo  wrote:
>> >
>> >
>> > On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh  wrote:
>> >>
>> >> Judging by the spelling errors in the text you quoted I can safely
>> >> assume it was I who wrote the instructions :) You may not need csnd6
>> >> at all. What happens if you leave that out altogether?
>> >
>> >
>> > Yes, thank you for providing instructions! [I still haven't caught any
>> > spelling errors; I must be human!]
>> >
>> > Um, the same thing happens [I downloaded the latest 'csound.hpp' I could
>> > find into the same directory]:
>> > ----------
>> > g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib -lcsound64
>> > In file included from example1.cpp:12:0:
>> > csound.hpp: In member function ‘virtual int Csound::ReadScore(const
>> > char*)’:
>> > csound.hpp:178:35: error: invalid conversion from ‘const char*’ to
>> > ‘char*’
>> > [-fpermissive]
>> >  return csoundReadScore(csound, str);
>> >                                    ^
>> > In file included from csound.hpp:32:0,
>> >                  from example1.cpp:12:
>> > /usr/include/csound/csound.h:1169:16: error:   initializing argument 2
>> > of
>> > ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
>> >      PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>> >                 ^
>> > In file included from example1.cpp:12:0:
>> > csound.hpp: In member function ‘virtual int Csound::CompileCsd(char*)’:
>> > csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in this
>> > scope
>> >  return csoundCompileCsd(csound, csd);
>> >                                     ^
>> > example1.cpp: In function ‘int main(int, char**)’:
>> > example1.cpp:20:28: warning: deprecated conversion from string constant
>> > to
>> > ‘char*’ [-Wwrite-strings]
>> >  csound->Compile("test1.csd");
>> > ------------------
>> >
>> > Forrest Curo
>> > San Diego
>> >
>> >>
>> >> On 12 September 2014 23:21, forrest curo  wrote:
>> >> > The examples I'm trying to compile are in the 'cpp' versions offered
>> >> > as
>> >> > translations to c++ of Steven Yi's csound api python examples.
>> >> >
>> >> > "##Compilation instruction
>> >> > In order to compile thee examples you will need to link to the
>> >> > Csound6
>> >> > library. The following command line can be used to build on Linux:
>> >> > g++ example1.cpp -o example1 -I/usr/local/include/csound
>> >> > -L/usr/local/lib
>> >> > -lcsound64 -lcsnd6"
>> >> >
>> >> > This does not work in my Ubuntu 14 system...
>> >> >
>> >> > If I change the source's reference to "csound.hpp" to "csound.h" ,
>> >> > gcc
>> >> > accepts it with " -I/usr/include/csound " but nothing I do with -L
>> >> > enables
>> >> > it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all
>> >> > sure
>> >> > this is kosher; is it?]
>> >> > -----
>> >> >
>> >> > I'm having the same sort of difficulty trying to compile example1.c
>> >> > in
>> >> > the
>> >> > 'c' examples.
>> >> >
>> >> > ?
>> >> >
>> >> > Forrest Curo
>> >> > San Diego
>> >>
>> >>
>> >> Send bugs reports to
>> >>         https://github.com/csound/csound/issues
>> >> Discussions of bugs and features can be posted here
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >>
>> >>
>> >>
>> >
>>
>>
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>


Date2014-09-13 21:16
Fromforrest curo
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?
Well, no. After allthat:

... [terminal overfloweth with warnings and no-nos and finally]:
Linking C shared library libcsound64.so
[ 78%] Built target csound64
make: *** [all] Error 2

(but maybe the examples will now find the libraries where they'd expected.?

Peas, thanks, goodstuff [I really think I'll do better running the joysticks via pygame; and the csound I've got works nicely as is!]

On Sat, Sep 13, 2014 at 9:03 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
Well the code works fine here with the latest version of Csound.
Building on any Linux box shouldn't take more than a few minutes:

https://github.com/csound/csound/blob/develop/BUILD.md

The key here is this command:

sudo apt-get build-dep csound

It will automatically install all the libraries necessary to build.

On 13 September 2014 18:00, forrest curo <treegestalt@gmail.com> wrote:
> My package-critter says 1:6.02, which it says is the latest available via
> Ubuntu packages. There _was_ no 'csound.hpp' with their distribution.
>
> I'd once tried installing csound 6 by hand into my debian partition -- went
> hunting through long chains of dependencies that actually circled back into
> a loop in one such chain -- and simply clobbered my audio on that partition.
>
> Your pre-compiled example1 binary works just fine; the source both on your
> c++ and on the c examples runs into inexplicable snags... not just library
> paths, which I can fix, but invisible libraries directly in those paths...
> probably wrong versions, oh well!
>
> Thanks, I'll probably go with the python examples & use pygame to add GUI
> controls.
>
> On Sat, Sep 13, 2014 at 4:32 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> Downloaded the latest csound.hpp? You should be working with the
>> csound.hpp that is distributed with the version of Csound you are
>> linking to. What version of Csound are you building against? Those
>> function prototypes changed some time ago. They used to accept a
>> char*, they now accepts a const char*. If you don't update to the
>> latest version of Csound you'll need to modify the code in those
>> examples.
>>
>> On 13 September 2014 05:52, forrest curo <treegestalt@gmail.com> wrote:
>> >
>> >
>> > On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >>
>> >> Judging by the spelling errors in the text you quoted I can safely
>> >> assume it was I who wrote the instructions :) You may not need csnd6
>> >> at all. What happens if you leave that out altogether?
>> >
>> >
>> > Yes, thank you for providing instructions! [I still haven't caught any
>> > spelling errors; I must be human!]
>> >
>> > Um, the same thing happens [I downloaded the latest 'csound.hpp' I could
>> > find into the same directory]:
>> > ----------
>> > g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib -lcsound64
>> > In file included from example1.cpp:12:0:
>> > csound.hpp: In member function ‘virtual int Csound::ReadScore(const
>> > char*)’:
>> > csound.hpp:178:35: error: invalid conversion from ‘const char*’ to
>> > ‘char*’
>> > [-fpermissive]
>> >  return csoundReadScore(csound, str);
>> >                                    ^
>> > In file included from csound.hpp:32:0,
>> >                  from example1.cpp:12:
>> > /usr/include/csound/csound.h:1169:16: error:   initializing argument 2
>> > of
>> > ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
>> >      PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>> >                 ^
>> > In file included from example1.cpp:12:0:
>> > csound.hpp: In member function ‘virtual int Csound::CompileCsd(char*)’:
>> > csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in this
>> > scope
>> >  return csoundCompileCsd(csound, csd);
>> >                                     ^
>> > example1.cpp: In function ‘int main(int, char**)’:
>> > example1.cpp:20:28: warning: deprecated conversion from string constant
>> > to
>> > ‘char*’ [-Wwrite-strings]
>> >  csound->Compile("test1.csd");
>> > ------------------
>> >
>> > Forrest Curo
>> > San Diego
>> >
>> >>
>> >> On 12 September 2014 23:21, forrest curo <treegestalt@gmail.com> wrote:
>> >> > The examples I'm trying to compile are in the 'cpp' versions offered
>> >> > as
>> >> > translations to c++ of Steven Yi's csound api python examples.
>> >> >
>> >> > "##Compilation instruction
>> >> > In order to compile thee examples you will need to link to the
>> >> > Csound6
>> >> > library. The following command line can be used to build on Linux:
>> >> > g++ example1.cpp -o example1 -I/usr/local/include/csound
>> >> > -L/usr/local/lib
>> >> > -lcsound64 -lcsnd6"
>> >> >
>> >> > This does not work in my Ubuntu 14 system...
>> >> >
>> >> > If I change the source's reference to "csound.hpp" to "csound.h" ,
>> >> > gcc
>> >> > accepts it with " -I/usr/include/csound " but nothing I do with -L
>> >> > enables
>> >> > it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all
>> >> > sure
>> >> > this is kosher; is it?]
>> >> > -----
>> >> >
>> >> > I'm having the same sort of difficulty trying to compile example1.c
>> >> > in
>> >> > the
>> >> > 'c' examples.
>> >> >
>> >> > ?
>> >> >
>> >> > Forrest Curo
>> >> > San Diego
>> >>
>> >>
>> >> Send bugs reports to
>> >>         https://github.com/csound/csound/issues
>> >> Discussions of bugs and features can be posted here
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >>
>> >>
>> >>
>> >
>>
>>
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-09-13 21:39
FromRory Walsh
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?

What is the actual error? If Cound isn't building from source as described in those instructions then something is seriously wrong. Anyway, for what it's worth, I've had good success in the past with pygame and csound.

On 13 Sep 2014 21:16, "forrest curo" <treegestalt@gmail.com> wrote:
Well, no. After allthat:

... [terminal overfloweth with warnings and no-nos and finally]:
Linking C shared library libcsound64.so
[ 78%] Built target csound64
make: *** [all] Error 2

(but maybe the examples will now find the libraries where they'd expected.?

Peas, thanks, goodstuff [I really think I'll do better running the joysticks via pygame; and the csound I've got works nicely as is!]

On Sat, Sep 13, 2014 at 9:03 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
Well the code works fine here with the latest version of Csound.
Building on any Linux box shouldn't take more than a few minutes:

https://github.com/csound/csound/blob/develop/BUILD.md

The key here is this command:

sudo apt-get build-dep csound

It will automatically install all the libraries necessary to build.

On 13 September 2014 18:00, forrest curo <treegestalt@gmail.com> wrote:
> My package-critter says 1:6.02, which it says is the latest available via
> Ubuntu packages. There _was_ no 'csound.hpp' with their distribution.
>
> I'd once tried installing csound 6 by hand into my debian partition -- went
> hunting through long chains of dependencies that actually circled back into
> a loop in one such chain -- and simply clobbered my audio on that partition.
>
> Your pre-compiled example1 binary works just fine; the source both on your
> c++ and on the c examples runs into inexplicable snags... not just library
> paths, which I can fix, but invisible libraries directly in those paths...
> probably wrong versions, oh well!
>
> Thanks, I'll probably go with the python examples & use pygame to add GUI
> controls.
>
> On Sat, Sep 13, 2014 at 4:32 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> Downloaded the latest csound.hpp? You should be working with the
>> csound.hpp that is distributed with the version of Csound you are
>> linking to. What version of Csound are you building against? Those
>> function prototypes changed some time ago. They used to accept a
>> char*, they now accepts a const char*. If you don't update to the
>> latest version of Csound you'll need to modify the code in those
>> examples.
>>
>> On 13 September 2014 05:52, forrest curo <treegestalt@gmail.com> wrote:
>> >
>> >
>> > On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >>
>> >> Judging by the spelling errors in the text you quoted I can safely
>> >> assume it was I who wrote the instructions :) You may not need csnd6
>> >> at all. What happens if you leave that out altogether?
>> >
>> >
>> > Yes, thank you for providing instructions! [I still haven't caught any
>> > spelling errors; I must be human!]
>> >
>> > Um, the same thing happens [I downloaded the latest 'csound.hpp' I could
>> > find into the same directory]:
>> > ----------
>> > g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib -lcsound64
>> > In file included from example1.cpp:12:0:
>> > csound.hpp: In member function ‘virtual int Csound::ReadScore(const
>> > char*)’:
>> > csound.hpp:178:35: error: invalid conversion from ‘const char*’ to
>> > ‘char*’
>> > [-fpermissive]
>> >  return csoundReadScore(csound, str);
>> >                                    ^
>> > In file included from csound.hpp:32:0,
>> >                  from example1.cpp:12:
>> > /usr/include/csound/csound.h:1169:16: error:   initializing argument 2
>> > of
>> > ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
>> >      PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>> >                 ^
>> > In file included from example1.cpp:12:0:
>> > csound.hpp: In member function ‘virtual int Csound::CompileCsd(char*)’:
>> > csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in this
>> > scope
>> >  return csoundCompileCsd(csound, csd);
>> >                                     ^
>> > example1.cpp: In function ‘int main(int, char**)’:
>> > example1.cpp:20:28: warning: deprecated conversion from string constant
>> > to
>> > ‘char*’ [-Wwrite-strings]
>> >  csound->Compile("test1.csd");
>> > ------------------
>> >
>> > Forrest Curo
>> > San Diego
>> >
>> >>
>> >> On 12 September 2014 23:21, forrest curo <treegestalt@gmail.com> wrote:
>> >> > The examples I'm trying to compile are in the 'cpp' versions offered
>> >> > as
>> >> > translations to c++ of Steven Yi's csound api python examples.
>> >> >
>> >> > "##Compilation instruction
>> >> > In order to compile thee examples you will need to link to the
>> >> > Csound6
>> >> > library. The following command line can be used to build on Linux:
>> >> > g++ example1.cpp -o example1 -I/usr/local/include/csound
>> >> > -L/usr/local/lib
>> >> > -lcsound64 -lcsnd6"
>> >> >
>> >> > This does not work in my Ubuntu 14 system...
>> >> >
>> >> > If I change the source's reference to "csound.hpp" to "csound.h" ,
>> >> > gcc
>> >> > accepts it with " -I/usr/include/csound " but nothing I do with -L
>> >> > enables
>> >> > it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all
>> >> > sure
>> >> > this is kosher; is it?]
>> >> > -----
>> >> >
>> >> > I'm having the same sort of difficulty trying to compile example1.c
>> >> > in
>> >> > the
>> >> > 'c' examples.
>> >> >
>> >> > ?
>> >> >
>> >> > Forrest Curo
>> >> > San Diego
>> >>
>> >>
>> >> Send bugs reports to
>> >>         https://github.com/csound/csound/issues
>> >> Discussions of bugs and features can be posted here
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >>
>> >>
>> >>
>> >
>>
>>
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"





Date2014-09-13 23:00
Fromforrest curo
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?
Okay, from this step
:~/csound/cs6make$ make -j6

It carries on down to :

Built target rtpulse
/usr/bin/ld: /usr/local/lib/libfltk.a(Fl.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC
/usr/local/lib/libfltk.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[2]: *** [libvirtual.so] Error 1
Scanning dependencies of target csdebugger
make[1]: *** [InOut/CMakeFiles/virtual.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....

and continues from there, but then of course exits with two errors, no build.

On Sat, Sep 13, 2014 at 1:39 PM, Rory Walsh <rorywalsh@ear.ie> wrote:

What is the actual error? If Cound isn't building from source as described in those instructions then something is seriously wrong. Anyway, for what it's worth, I've had good success in the past with pygame and csound.

On 13 Sep 2014 21:16, "forrest curo" <treegestalt@gmail.com> wrote:
Well, no. After allthat:

... [terminal overfloweth with warnings and no-nos and finally]:
Linking C shared library libcsound64.so
[ 78%] Built target csound64
make: *** [all] Error 2

(but maybe the examples will now find the libraries where they'd expected.?

Peas, thanks, goodstuff [I really think I'll do better running the joysticks via pygame; and the csound I've got works nicely as is!]

On Sat, Sep 13, 2014 at 9:03 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
Well the code works fine here with the latest version of Csound.
Building on any Linux box shouldn't take more than a few minutes:

https://github.com/csound/csound/blob/develop/BUILD.md

The key here is this command:

sudo apt-get build-dep csound

It will automatically install all the libraries necessary to build.

On 13 September 2014 18:00, forrest curo <treegestalt@gmail.com> wrote:
> My package-critter says 1:6.02, which it says is the latest available via
> Ubuntu packages. There _was_ no 'csound.hpp' with their distribution.
>
> I'd once tried installing csound 6 by hand into my debian partition -- went
> hunting through long chains of dependencies that actually circled back into
> a loop in one such chain -- and simply clobbered my audio on that partition.
>
> Your pre-compiled example1 binary works just fine; the source both on your
> c++ and on the c examples runs into inexplicable snags... not just library
> paths, which I can fix, but invisible libraries directly in those paths...
> probably wrong versions, oh well!
>
> Thanks, I'll probably go with the python examples & use pygame to add GUI
> controls.
>
> On Sat, Sep 13, 2014 at 4:32 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> Downloaded the latest csound.hpp? You should be working with the
>> csound.hpp that is distributed with the version of Csound you are
>> linking to. What version of Csound are you building against? Those
>> function prototypes changed some time ago. They used to accept a
>> char*, they now accepts a const char*. If you don't update to the
>> latest version of Csound you'll need to modify the code in those
>> examples.
>>
>> On 13 September 2014 05:52, forrest curo <treegestalt@gmail.com> wrote:
>> >
>> >
>> > On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
>> >>
>> >> Judging by the spelling errors in the text you quoted I can safely
>> >> assume it was I who wrote the instructions :) You may not need csnd6
>> >> at all. What happens if you leave that out altogether?
>> >
>> >
>> > Yes, thank you for providing instructions! [I still haven't caught any
>> > spelling errors; I must be human!]
>> >
>> > Um, the same thing happens [I downloaded the latest 'csound.hpp' I could
>> > find into the same directory]:
>> > ----------
>> > g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib -lcsound64
>> > In file included from example1.cpp:12:0:
>> > csound.hpp: In member function ‘virtual int Csound::ReadScore(const
>> > char*)’:
>> > csound.hpp:178:35: error: invalid conversion from ‘const char*’ to
>> > ‘char*’
>> > [-fpermissive]
>> >  return csoundReadScore(csound, str);
>> >                                    ^
>> > In file included from csound.hpp:32:0,
>> >                  from example1.cpp:12:
>> > /usr/include/csound/csound.h:1169:16: error:   initializing argument 2
>> > of
>> > ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
>> >      PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>> >                 ^
>> > In file included from example1.cpp:12:0:
>> > csound.hpp: In member function ‘virtual int Csound::CompileCsd(char*)’:
>> > csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in this
>> > scope
>> >  return csoundCompileCsd(csound, csd);
>> >                                     ^
>> > example1.cpp: In function ‘int main(int, char**)’:
>> > example1.cpp:20:28: warning: deprecated conversion from string constant
>> > to
>> > ‘char*’ [-Wwrite-strings]
>> >  csound->Compile("test1.csd");
>> > ------------------
>> >
>> > Forrest Curo
>> > San Diego
>> >
>> >>
>> >> On 12 September 2014 23:21, forrest curo <treegestalt@gmail.com> wrote:
>> >> > The examples I'm trying to compile are in the 'cpp' versions offered
>> >> > as
>> >> > translations to c++ of Steven Yi's csound api python examples.
>> >> >
>> >> > "##Compilation instruction
>> >> > In order to compile thee examples you will need to link to the
>> >> > Csound6
>> >> > library. The following command line can be used to build on Linux:
>> >> > g++ example1.cpp -o example1 -I/usr/local/include/csound
>> >> > -L/usr/local/lib
>> >> > -lcsound64 -lcsnd6"
>> >> >
>> >> > This does not work in my Ubuntu 14 system...
>> >> >
>> >> > If I change the source's reference to "csound.hpp" to "csound.h" ,
>> >> > gcc
>> >> > accepts it with " -I/usr/include/csound " but nothing I do with -L
>> >> > enables
>> >> > it to find libcsnd6, sitting happily in /usr/lib. [And I'm not at all
>> >> > sure
>> >> > this is kosher; is it?]
>> >> > -----
>> >> >
>> >> > I'm having the same sort of difficulty trying to compile example1.c
>> >> > in
>> >> > the
>> >> > 'c' examples.
>> >> >
>> >> > ?
>> >> >
>> >> > Forrest Curo
>> >> > San Diego
>> >>
>> >>
>> >> Send bugs reports to
>> >>         https://github.com/csound/csound/issues
>> >> Discussions of bugs and features can be posted here
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >>
>> >>
>> >>
>> >
>>
>>
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>>
>>
>


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"






Date2014-09-13 23:06
FromRory Walsh
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?
You can try disabling the fltk stuff using cmake-gui, but you should
probably ask on the list under a new thread for help with that one.
Have you installed fltk? Although if you ran that build-dep command I
can't see why it wasn't installed. Sorry, maybe someone else can help
from here.

On 13 September 2014 23:00, forrest curo  wrote:
> Okay, from this step
> :~/csound/cs6make$ make -j6
>
> It carries on down to :
>
> Built target rtpulse
> /usr/bin/ld: /usr/local/lib/libfltk.a(Fl.o): relocation R_X86_64_32 against
> `.bss' can not be used when making a shared object; recompile with -fPIC
> /usr/local/lib/libfltk.a: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [libvirtual.so] Error 1
> Scanning dependencies of target csdebugger
> make[1]: *** [InOut/CMakeFiles/virtual.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> and continues from there, but then of course exits with two errors, no
> build.
>
> On Sat, Sep 13, 2014 at 1:39 PM, Rory Walsh  wrote:
>>
>> What is the actual error? If Cound isn't building from source as described
>> in those instructions then something is seriously wrong. Anyway, for what
>> it's worth, I've had good success in the past with pygame and csound.
>>
>> On 13 Sep 2014 21:16, "forrest curo"  wrote:
>>>
>>> Well, no. After allthat:
>>>
>>> ... [terminal overfloweth with warnings and no-nos and finally]:
>>> Linking C shared library libcsound64.so
>>> [ 78%] Built target csound64
>>> make: *** [all] Error 2
>>>
>>> (but maybe the examples will now find the libraries where they'd
>>> expected.?
>>>
>>> Peas, thanks, goodstuff [I really think I'll do better running the
>>> joysticks via pygame; and the csound I've got works nicely as is!]
>>>
>>> On Sat, Sep 13, 2014 at 9:03 AM, Rory Walsh  wrote:
>>>>
>>>> Well the code works fine here with the latest version of Csound.
>>>> Building on any Linux box shouldn't take more than a few minutes:
>>>>
>>>> https://github.com/csound/csound/blob/develop/BUILD.md
>>>>
>>>> The key here is this command:
>>>>
>>>> sudo apt-get build-dep csound
>>>>
>>>> It will automatically install all the libraries necessary to build.
>>>>
>>>> On 13 September 2014 18:00, forrest curo  wrote:
>>>> > My package-critter says 1:6.02, which it says is the latest available
>>>> > via
>>>> > Ubuntu packages. There _was_ no 'csound.hpp' with their distribution.
>>>> >
>>>> > I'd once tried installing csound 6 by hand into my debian partition --
>>>> > went
>>>> > hunting through long chains of dependencies that actually circled back
>>>> > into
>>>> > a loop in one such chain -- and simply clobbered my audio on that
>>>> > partition.
>>>> >
>>>> > Your pre-compiled example1 binary works just fine; the source both on
>>>> > your
>>>> > c++ and on the c examples runs into inexplicable snags... not just
>>>> > library
>>>> > paths, which I can fix, but invisible libraries directly in those
>>>> > paths...
>>>> > probably wrong versions, oh well!
>>>> >
>>>> > Thanks, I'll probably go with the python examples & use pygame to add
>>>> > GUI
>>>> > controls.
>>>> >
>>>> > On Sat, Sep 13, 2014 at 4:32 AM, Rory Walsh  wrote:
>>>> >>
>>>> >> Downloaded the latest csound.hpp? You should be working with the
>>>> >> csound.hpp that is distributed with the version of Csound you are
>>>> >> linking to. What version of Csound are you building against? Those
>>>> >> function prototypes changed some time ago. They used to accept a
>>>> >> char*, they now accepts a const char*. If you don't update to the
>>>> >> latest version of Csound you'll need to modify the code in those
>>>> >> examples.
>>>> >>
>>>> >> On 13 September 2014 05:52, forrest curo 
>>>> >> wrote:
>>>> >> >
>>>> >> >
>>>> >> > On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh 
>>>> >> > wrote:
>>>> >> >>
>>>> >> >> Judging by the spelling errors in the text you quoted I can safely
>>>> >> >> assume it was I who wrote the instructions :) You may not need
>>>> >> >> csnd6
>>>> >> >> at all. What happens if you leave that out altogether?
>>>> >> >
>>>> >> >
>>>> >> > Yes, thank you for providing instructions! [I still haven't caught
>>>> >> > any
>>>> >> > spelling errors; I must be human!]
>>>> >> >
>>>> >> > Um, the same thing happens [I downloaded the latest 'csound.hpp' I
>>>> >> > could
>>>> >> > find into the same directory]:
>>>> >> > ----------
>>>> >> > g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib
>>>> >> > -lcsound64
>>>> >> > In file included from example1.cpp:12:0:
>>>> >> > csound.hpp: In member function ‘virtual int Csound::ReadScore(const
>>>> >> > char*)’:
>>>> >> > csound.hpp:178:35: error: invalid conversion from ‘const char*’ to
>>>> >> > ‘char*’
>>>> >> > [-fpermissive]
>>>> >> >  return csoundReadScore(csound, str);
>>>> >> >                                    ^
>>>> >> > In file included from csound.hpp:32:0,
>>>> >> >                  from example1.cpp:12:
>>>> >> > /usr/include/csound/csound.h:1169:16: error:   initializing
>>>> >> > argument 2
>>>> >> > of
>>>> >> > ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
>>>> >> >      PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>>>> >> >                 ^
>>>> >> > In file included from example1.cpp:12:0:
>>>> >> > csound.hpp: In member function ‘virtual int
>>>> >> > Csound::CompileCsd(char*)’:
>>>> >> > csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in
>>>> >> > this
>>>> >> > scope
>>>> >> >  return csoundCompileCsd(csound, csd);
>>>> >> >                                     ^
>>>> >> > example1.cpp: In function ‘int main(int, char**)’:
>>>> >> > example1.cpp:20:28: warning: deprecated conversion from string
>>>> >> > constant
>>>> >> > to
>>>> >> > ‘char*’ [-Wwrite-strings]
>>>> >> >  csound->Compile("test1.csd");
>>>> >> > ------------------
>>>> >> >
>>>> >> > Forrest Curo
>>>> >> > San Diego
>>>> >> >
>>>> >> >>
>>>> >> >> On 12 September 2014 23:21, forrest curo 
>>>> >> >> wrote:
>>>> >> >> > The examples I'm trying to compile are in the 'cpp' versions
>>>> >> >> > offered
>>>> >> >> > as
>>>> >> >> > translations to c++ of Steven Yi's csound api python examples.
>>>> >> >> >
>>>> >> >> > "##Compilation instruction
>>>> >> >> > In order to compile thee examples you will need to link to the
>>>> >> >> > Csound6
>>>> >> >> > library. The following command line can be used to build on
>>>> >> >> > Linux:
>>>> >> >> > g++ example1.cpp -o example1 -I/usr/local/include/csound
>>>> >> >> > -L/usr/local/lib
>>>> >> >> > -lcsound64 -lcsnd6"
>>>> >> >> >
>>>> >> >> > This does not work in my Ubuntu 14 system...
>>>> >> >> >
>>>> >> >> > If I change the source's reference to "csound.hpp" to "csound.h"
>>>> >> >> > ,
>>>> >> >> > gcc
>>>> >> >> > accepts it with " -I/usr/include/csound " but nothing I do with
>>>> >> >> > -L
>>>> >> >> > enables
>>>> >> >> > it to find libcsnd6, sitting happily in /usr/lib. [And I'm not
>>>> >> >> > at all
>>>> >> >> > sure
>>>> >> >> > this is kosher; is it?]
>>>> >> >> > -----
>>>> >> >> >
>>>> >> >> > I'm having the same sort of difficulty trying to compile
>>>> >> >> > example1.c
>>>> >> >> > in
>>>> >> >> > the
>>>> >> >> > 'c' examples.
>>>> >> >> >
>>>> >> >> > ?
>>>> >> >> >
>>>> >> >> > Forrest Curo
>>>> >> >> > San Diego
>>>> >> >>
>>>> >> >>
>>>> >> >> Send bugs reports to
>>>> >> >>         https://github.com/csound/csound/issues
>>>> >> >> Discussions of bugs and features can be posted here
>>>> >> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> >> >> "unsubscribe
>>>> >> >> csound"
>>>> >> >>
>>>> >> >>
>>>> >> >>
>>>> >> >
>>>> >>
>>>> >>
>>>> >> Send bugs reports to
>>>> >>         https://github.com/csound/csound/issues
>>>> >> Discussions of bugs and features can be posted here
>>>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> >> "unsubscribe
>>>> >> csound"
>>>> >>
>>>> >>
>>>> >>
>>>> >
>>>>
>>>>
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>>
>>>>
>>>
>


Date2014-09-13 23:55
Fromforrest curo
SubjectRe: [Csnd] Where to find libraries, csound.hpp for cpp examples?
Yeah, I just recently installed ftlk... & today, ran that build-dep command you suggested. Maybe the previous installation conflicted with it?

Too many software versions, fitting together like a Chinese puzzle with an extra piece...

Thanks for trying!

On Sat, Sep 13, 2014 at 3:06 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
You can try disabling the fltk stuff using cmake-gui, but you should
probably ask on the list under a new thread for help with that one.
Have you installed fltk? Although if you ran that build-dep command I
can't see why it wasn't installed. Sorry, maybe someone else can help
from here.

On 13 September 2014 23:00, forrest curo <treegestalt@gmail.com> wrote:
> Okay, from this step
> :~/csound/cs6make$ make -j6
>
> It carries on down to :
>
> Built target rtpulse
> /usr/bin/ld: /usr/local/lib/libfltk.a(Fl.o): relocation R_X86_64_32 against
> `.bss' can not be used when making a shared object; recompile with -fPIC
> /usr/local/lib/libfltk.a: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> make[2]: *** [libvirtual.so] Error 1
> Scanning dependencies of target csdebugger
> make[1]: *** [InOut/CMakeFiles/virtual.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
> and continues from there, but then of course exits with two errors, no
> build.
>
> On Sat, Sep 13, 2014 at 1:39 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>
>> What is the actual error? If Cound isn't building from source as described
>> in those instructions then something is seriously wrong. Anyway, for what
>> it's worth, I've had good success in the past with pygame and csound.
>>
>> On 13 Sep 2014 21:16, "forrest curo" <treegestalt@gmail.com> wrote:
>>>
>>> Well, no. After allthat:
>>>
>>> ... [terminal overfloweth with warnings and no-nos and finally]:
>>> Linking C shared library libcsound64.so
>>> [ 78%] Built target csound64
>>> make: *** [all] Error 2
>>>
>>> (but maybe the examples will now find the libraries where they'd
>>> expected.?
>>>
>>> Peas, thanks, goodstuff [I really think I'll do better running the
>>> joysticks via pygame; and the csound I've got works nicely as is!]
>>>
>>> On Sat, Sep 13, 2014 at 9:03 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>>
>>>> Well the code works fine here with the latest version of Csound.
>>>> Building on any Linux box shouldn't take more than a few minutes:
>>>>
>>>> https://github.com/csound/csound/blob/develop/BUILD.md
>>>>
>>>> The key here is this command:
>>>>
>>>> sudo apt-get build-dep csound
>>>>
>>>> It will automatically install all the libraries necessary to build.
>>>>
>>>> On 13 September 2014 18:00, forrest curo <treegestalt@gmail.com> wrote:
>>>> > My package-critter says 1:6.02, which it says is the latest available
>>>> > via
>>>> > Ubuntu packages. There _was_ no 'csound.hpp' with their distribution.
>>>> >
>>>> > I'd once tried installing csound 6 by hand into my debian partition --
>>>> > went
>>>> > hunting through long chains of dependencies that actually circled back
>>>> > into
>>>> > a loop in one such chain -- and simply clobbered my audio on that
>>>> > partition.
>>>> >
>>>> > Your pre-compiled example1 binary works just fine; the source both on
>>>> > your
>>>> > c++ and on the c examples runs into inexplicable snags... not just
>>>> > library
>>>> > paths, which I can fix, but invisible libraries directly in those
>>>> > paths...
>>>> > probably wrong versions, oh well!
>>>> >
>>>> > Thanks, I'll probably go with the python examples & use pygame to add
>>>> > GUI
>>>> > controls.
>>>> >
>>>> > On Sat, Sep 13, 2014 at 4:32 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
>>>> >>
>>>> >> Downloaded the latest csound.hpp? You should be working with the
>>>> >> csound.hpp that is distributed with the version of Csound you are
>>>> >> linking to. What version of Csound are you building against? Those
>>>> >> function prototypes changed some time ago. They used to accept a
>>>> >> char*, they now accepts a const char*. If you don't update to the
>>>> >> latest version of Csound you'll need to modify the code in those
>>>> >> examples.
>>>> >>
>>>> >> On 13 September 2014 05:52, forrest curo <treegestalt@gmail.com>
>>>> >> wrote:
>>>> >> >
>>>> >> >
>>>> >> > On Fri, Sep 12, 2014 at 6:01 PM, Rory Walsh <rorywalsh@ear.ie>
>>>> >> > wrote:
>>>> >> >>
>>>> >> >> Judging by the spelling errors in the text you quoted I can safely
>>>> >> >> assume it was I who wrote the instructions :) You may not need
>>>> >> >> csnd6
>>>> >> >> at all. What happens if you leave that out altogether?
>>>> >> >
>>>> >> >
>>>> >> > Yes, thank you for providing instructions! [I still haven't caught
>>>> >> > any
>>>> >> > spelling errors; I must be human!]
>>>> >> >
>>>> >> > Um, the same thing happens [I downloaded the latest 'csound.hpp' I
>>>> >> > could
>>>> >> > find into the same directory]:
>>>> >> > ----------
>>>> >> > g++ example1.cpp -o example1 -I/usr/include/csound -L/usr/lib
>>>> >> > -lcsound64
>>>> >> > In file included from example1.cpp:12:0:
>>>> >> > csound.hpp: In member function ‘virtual int Csound::ReadScore(const
>>>> >> > char*)’:
>>>> >> > csound.hpp:178:35: error: invalid conversion from ‘const char*’ to
>>>> >> > ‘char*’
>>>> >> > [-fpermissive]
>>>> >> >  return csoundReadScore(csound, str);
>>>> >> >                                    ^
>>>> >> > In file included from csound.hpp:32:0,
>>>> >> >                  from example1.cpp:12:
>>>> >> > /usr/include/csound/csound.h:1169:16: error:   initializing
>>>> >> > argument 2
>>>> >> > of
>>>> >> > ‘int csoundReadScore(CSOUND*, char*)’ [-fpermissive]
>>>> >> >      PUBLIC int csoundReadScore(CSOUND *csound, char *str);
>>>> >> >                 ^
>>>> >> > In file included from example1.cpp:12:0:
>>>> >> > csound.hpp: In member function ‘virtual int
>>>> >> > Csound::CompileCsd(char*)’:
>>>> >> > csound.hpp:245:36: error: ‘csoundCompileCsd’ was not declared in
>>>> >> > this
>>>> >> > scope
>>>> >> >  return csoundCompileCsd(csound, csd);
>>>> >> >                                     ^
>>>> >> > example1.cpp: In function ‘int main(int, char**)’:
>>>> >> > example1.cpp:20:28: warning: deprecated conversion from string
>>>> >> > constant
>>>> >> > to
>>>> >> > ‘char*’ [-Wwrite-strings]
>>>> >> >  csound->Compile("test1.csd");
>>>> >> > ------------------
>>>> >> >
>>>> >> > Forrest Curo
>>>> >> > San Diego
>>>> >> >
>>>> >> >>
>>>> >> >> On 12 September 2014 23:21, forrest curo <treegestalt@gmail.com>
>>>> >> >> wrote:
>>>> >> >> > The examples I'm trying to compile are in the 'cpp' versions
>>>> >> >> > offered
>>>> >> >> > as
>>>> >> >> > translations to c++ of Steven Yi's csound api python examples.
>>>> >> >> >
>>>> >> >> > "##Compilation instruction
>>>> >> >> > In order to compile thee examples you will need to link to the
>>>> >> >> > Csound6
>>>> >> >> > library. The following command line can be used to build on
>>>> >> >> > Linux:
>>>> >> >> > g++ example1.cpp -o example1 -I/usr/local/include/csound
>>>> >> >> > -L/usr/local/lib
>>>> >> >> > -lcsound64 -lcsnd6"
>>>> >> >> >
>>>> >> >> > This does not work in my Ubuntu 14 system...
>>>> >> >> >
>>>> >> >> > If I change the source's reference to "csound.hpp" to "csound.h"
>>>> >> >> > ,
>>>> >> >> > gcc
>>>> >> >> > accepts it with " -I/usr/include/csound " but nothing I do with
>>>> >> >> > -L
>>>> >> >> > enables
>>>> >> >> > it to find libcsnd6, sitting happily in /usr/lib. [And I'm not
>>>> >> >> > at all
>>>> >> >> > sure
>>>> >> >> > this is kosher; is it?]
>>>> >> >> > -----
>>>> >> >> >
>>>> >> >> > I'm having the same sort of difficulty trying to compile
>>>> >> >> > example1.c
>>>> >> >> > in
>>>> >> >> > the
>>>> >> >> > 'c' examples.
>>>> >> >> >
>>>> >> >> > ?
>>>> >> >> >
>>>> >> >> > Forrest Curo
>>>> >> >> > San Diego
>>>> >> >>
>>>> >> >>
>>>> >> >> Send bugs reports to
>>>> >> >>         https://github.com/csound/csound/issues
>>>> >> >> Discussions of bugs and features can be posted here
>>>> >> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> >> >> "unsubscribe
>>>> >> >> csound"
>>>> >> >>
>>>> >> >>
>>>> >> >>
>>>> >> >
>>>> >>
>>>> >>
>>>> >> Send bugs reports to
>>>> >>         https://github.com/csound/csound/issues
>>>> >> Discussions of bugs and features can be posted here
>>>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>>> >> "unsubscribe
>>>> >> csound"
>>>> >>
>>>> >>
>>>> >>
>>>> >
>>>>
>>>>
>>>> Send bugs reports to
>>>>         https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>>>> csound"
>>>>
>>>>
>>>>
>>>
>


Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"