Csound Csound-dev Csound-tekno Search About

[Csnd] Serial Opcodes on Linux

Date2020-05-11 14:23
FromRhys Mayes
Subject[Csnd] Serial Opcodes on Linux
Hi Guys,

Had a brief discussion with Rory Walsh about this on Cabbage forums a while back and I also briefly mentioned this problem in my last email about OSC opcodes.

I’ve been having this weird issue where when I install csound on a linux machine (through package manager or building manually) I’m unable to access the serial opcodes. Each time, my user is part of the dialout group, and even running as root gets no results. I can see that the serial opcodes are building successfully, but when I csound -z they don’t appear and they’re unrecognised when running a csd containing them.

Currently doing a fresh Ubuntu install and I’ll build it after, but I’m not really expecting positive results. It’s maybe worth noting that these are powerpc machines, specifically iMac G3 and PowerMac G4, and I’ve had this issue on Ubuntu, Debian and Void.

Does anyone have any thoughts? I’m pretty new to linux and building software in general.

Cheers!
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-05-11 14:45
Fromjoachim heintz
SubjectRe: [Csnd] Serial Opcodes on Linux
hi rhys -

i am on debian and followed the description in 
https://github.com/csound/csound/blob/develop/BUILD.md#debian

in my cs6make folder, i have CMakeCache.txt, and in it:
//Build the serial opcode
BUILD_SERIAL_OPCODES:BOOL=ON

so if you can set this option (which is perhaps OFF in your case), or 
run cmake with BUILD_SERIAL_OPCODES=ON, it should build the serial 
opcodes.  i had a look with csound -z, and the serial opcodes are there.

best -
	joachim




On 11/05/2020 15:23, Rhys Mayes wrote:
> Hi Guys,
> 
> Had a brief discussion with Rory Walsh about this on Cabbage forums a while back and I also briefly mentioned this problem in my last email about OSC opcodes.
> 
> I’ve been having this weird issue where when I install csound on a linux machine (through package manager or building manually) I’m unable to access the serial opcodes. Each time, my user is part of the dialout group, and even running as root gets no results. I can see that the serial opcodes are building successfully, but when I csound -z they don’t appear and they’re unrecognised when running a csd containing them.
> 
> Currently doing a fresh Ubuntu install and I’ll build it after, but I’m not really expecting positive results. It’s maybe worth noting that these are powerpc machines, specifically iMac G3 and PowerMac G4, and I’ve had this issue on Ubuntu, Debian and Void.
> 
> Does anyone have any thoughts? I’m pretty new to linux and building software in general.
> 
> Cheers!
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>          https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
> 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-05-11 14:51
FromRhys Mayes
SubjectRe: [Csnd] Serial Opcodes on Linux
Hi Joachim,

Yeah I actually did check that out as I assumed there would be somewhere specifying whether they should be built or not. That option is set to true, and I can see them being built in the console output.

--------------------------------------------

Rhys Mayes
Belfast / Dublin
https://soundcloud.com/rhysmayes

--------------------------------------------



> On 11 May 2020, at 14:45, joachim heintz  wrote:
> 
> hi rhys -
> 
> i am on debian and followed the description in https://github.com/csound/csound/blob/develop/BUILD.md#debian
> 
> in my cs6make folder, i have CMakeCache.txt, and in it:
> //Build the serial opcode
> BUILD_SERIAL_OPCODES:BOOL=ON
> 
> so if you can set this option (which is perhaps OFF in your case), or run cmake with BUILD_SERIAL_OPCODES=ON, it should build the serial opcodes.  i had a look with csound -z, and the serial opcodes are there.
> 
> best -
> 	joachim
> 
> 
> 
> 
> On 11/05/2020 15:23, Rhys Mayes wrote:
>> Hi Guys,
>> Had a brief discussion with Rory Walsh about this on Cabbage forums a while back and I also briefly mentioned this problem in my last email about OSC opcodes.
>> I’ve been having this weird issue where when I install csound on a linux machine (through package manager or building manually) I’m unable to access the serial opcodes. Each time, my user is part of the dialout group, and even running as root gets no results. I can see that the serial opcodes are building successfully, but when I csound -z they don’t appear and they’re unrecognised when running a csd containing them.
>> Currently doing a fresh Ubuntu install and I’ll build it after, but I’m not really expecting positive results. It’s maybe worth noting that these are powerpc machines, specifically iMac G3 and PowerMac G4, and I’ve had this issue on Ubuntu, Debian and Void.
>> Does anyone have any thoughts? I’m pretty new to linux and building software in general.
>> Cheers!
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>         https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-05-11 16:35
FromRhys Mayes
SubjectRe: [Csnd] Serial Opcodes on Linux
Just to update, finished the Ubuntu install and built csound. Serial opcodes are definitely building but still no sign of them in csound -z.

I’m thinking I may have to use PD to interface with my Arduino and pass the values to csound that way, but csound would be preferable as I would like to devote as much processing power as I can to csound.

--------------------------------------------

Rhys Mayes
Belfast / Dublin

--------------------------------------------





On 11 May 2020, at 14:45, joachim heintz <jh@JOACHIMHEINTZ.DE> wrote:

hi rhys -

i am on debian and followed the description in https://github.com/csound/csound/blob/develop/BUILD.md#debian

in my cs6make folder, i have CMakeCache.txt, and in it:
//Build the serial opcode
BUILD_SERIAL_OPCODES:BOOL=ON

so if you can set this option (which is perhaps OFF in your case), or run cmake with BUILD_SERIAL_OPCODES=ON, it should build the serial opcodes.  i had a look with csound -z, and the serial opcodes are there.

best -
joachim




On 11/05/2020 15:23, Rhys Mayes wrote:
Hi Guys,
Had a brief discussion with Rory Walsh about this on Cabbage forums a while back and I also briefly mentioned this problem in my last email about OSC opcodes.
I’ve been having this weird issue where when I install csound on a linux machine (through package manager or building manually) I’m unable to access the serial opcodes. Each time, my user is part of the dialout group, and even running as root gets no results. I can see that the serial opcodes are building successfully, but when I csound -z they don’t appear and they’re unrecognised when running a csd containing them.
Currently doing a fresh Ubuntu install and I’ll build it after, but I’m not really expecting positive results. It’s maybe worth noting that these are powerpc machines, specifically iMac G3 and PowerMac G4, and I’ve had this issue on Ubuntu, Debian and Void.
Does anyone have any thoughts? I’m pretty new to linux and building software in general.
Cheers!
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here


Date2020-05-11 17:01
Fromjoachim heintz
SubjectRe: [Csnd] Serial Opcodes on Linux
it's somehow strange that they are building but not part of your csound. 
  perhaps you have two versions of csound?  if you first installed from 
the repo, you will have /usr/bin/csound, and your other version will be 
/usr/local/bin/csound.  you can try
	/usr/local/bin/csound -z

if you use pd, you might consider to use the csound6~ object:
https://flossmanual.csound.com/csound-in-other-applications/csound-in-pd



On 11/05/2020 17:35, Rhys Mayes wrote:
> Just to update, finished the Ubuntu install and built csound. Serial 
> opcodes are definitely building but still no sign of them in csound -z.
> 
> I’m thinking I may have to use PD to interface with my Arduino and pass 
> the values to csound that way, but csound would be preferable as I would 
> like to devote as much processing power as I can to csound.
> 
> --------------------------------------------
> 
> Rhys Mayes
> Belfast / Dublin
> https://soundcloud.com/rhysmayes
> 
> --------------------------------------------
> 
> 
> 
> 
> 
>> On 11 May 2020, at 14:45, joachim heintz > > wrote:
>>
>> hi rhys -
>>
>> i am on debian and followed the description in 
>> https://github.com/csound/csound/blob/develop/BUILD.md#debian
>>
>> in my cs6make folder, i have CMakeCache.txt, and in it:
>> //Build the serial opcode
>> BUILD_SERIAL_OPCODES:BOOL=ON
>>
>> so if you can set this option (which is perhaps OFF in your case), or 
>> run cmake with BUILD_SERIAL_OPCODES=ON, it should build the serial 
>> opcodes.  i had a look with csound -z, and the serial opcodes are there.
>>
>> best -
>> joachim
>>
>>
>>
>>
>> On 11/05/2020 15:23, Rhys Mayes wrote:
>>> Hi Guys,
>>> Had a brief discussion with Rory Walsh about this on Cabbage forums a 
>>> while back and I also briefly mentioned this problem in my last email 
>>> about OSC opcodes.
>>> I’ve been having this weird issue where when I install csound on a 
>>> linux machine (through package manager or building manually) I’m 
>>> unable to access the serial opcodes. Each time, my user is part of 
>>> the dialout group, and even running as root gets no results. I can 
>>> see that the serial opcodes are building successfully, but when I 
>>> csound -z they don’t appear and they’re unrecognised when running a 
>>> csd containing them.
>>> Currently doing a fresh Ubuntu install and I’ll build it after, but 
>>> I’m not really expecting positive results. It’s maybe worth noting 
>>> that these are powerpc machines, specifically iMac G3 and PowerMac 
>>> G4, and I’ve had this issue on Ubuntu, Debian and Void.
>>> Does anyone have any thoughts? I’m pretty new to linux and building 
>>> software in general.
>>> Cheers!
>>> Csound mailing list
>>> Csound@listserv.heanet.ie 
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>         https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie 
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list Csound@listserv.heanet.ie 
>  
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to 
> https://github.com/csound/csound/issues Discussions of bugs and features 
> can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-05-11 17:02
FromSyl Morrison
SubjectRe: [Csnd] Serial Opcodes on Linux
Maybe it could be worth using the Ubuntu equivalent of otool if there is one, to list the libs csound is linked to, on mac the lib for it is libserial.dylib, I wonder if if thats not there you could relink your csound to that lib if it exists

On Mon, May 11, 2020 at 4:35 PM Rhys Mayes <reezmaize@gmail.com> wrote:
Just to update, finished the Ubuntu install and built csound. Serial opcodes are definitely building but still no sign of them in csound -z.

I’m thinking I may have to use PD to interface with my Arduino and pass the values to csound that way, but csound would be preferable as I would like to devote as much processing power as I can to csound.

--------------------------------------------

Rhys Mayes
Belfast / Dublin

--------------------------------------------





On 11 May 2020, at 14:45, joachim heintz <jh@JOACHIMHEINTZ.DE> wrote:

hi rhys -

i am on debian and followed the description in https://github.com/csound/csound/blob/develop/BUILD.md#debian

in my cs6make folder, i have CMakeCache.txt, and in it:
//Build the serial opcode
BUILD_SERIAL_OPCODES:BOOL=ON

so if you can set this option (which is perhaps OFF in your case), or run cmake with BUILD_SERIAL_OPCODES=ON, it should build the serial opcodes.  i had a look with csound -z, and the serial opcodes are there.

best -
joachim




On 11/05/2020 15:23, Rhys Mayes wrote:
Hi Guys,
Had a brief discussion with Rory Walsh about this on Cabbage forums a while back and I also briefly mentioned this problem in my last email about OSC opcodes.
I’ve been having this weird issue where when I install csound on a linux machine (through package manager or building manually) I’m unable to access the serial opcodes. Each time, my user is part of the dialout group, and even running as root gets no results. I can see that the serial opcodes are building successfully, but when I csound -z they don’t appear and they’re unrecognised when running a csd containing them.
Currently doing a fresh Ubuntu install and I’ll build it after, but I’m not really expecting positive results. It’s maybe worth noting that these are powerpc machines, specifically iMac G3 and PowerMac G4, and I’ve had this issue on Ubuntu, Debian and Void.
Does anyone have any thoughts? I’m pretty new to linux and building software in general.
Cheers!
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2020-05-11 18:40
FromRhys Mayes
SubjectRe: [Csnd] Serial Opcodes on Linux
Okay so, I used ldd to check linking, libserial was nowhere to be seen. I tried moving libserial.so from the cmake directory to /usr/local/lib and rebuilding, no luck there either :(

Syl suggested in our PMs that I link csound to the .so after building, but I’ve been unable to do so successfully with what I’ve found on google (quite inexperienced in programming outside csound). I’m trying ’sudo gcc /usr/local/lib/libserial.so -o /usr/bin/csound’ (also trying with /usr/local/bin/csound) but I’m getting "undefined reference to ‘main’”.

--------------------------------------------

Rhys Mayes
Belfast / Dublin

--------------------------------------------




On 11 May 2020, at 17:02, Syl Morrison <honoonu@GMAIL.COM> wrote:

Maybe it could be worth using the Ubuntu equivalent of otool if there is one, to list the libs csound is linked to, on mac the lib for it is libserial.dylib, I wonder if if thats not there you could relink your csound to that lib if it exists

On Mon, May 11, 2020 at 4:35 PM Rhys Mayes <reezmaize@gmail.com> wrote:
Just to update, finished the Ubuntu install and built csound. Serial opcodes are definitely building but still no sign of them in csound -z.

I’m thinking I may have to use PD to interface with my Arduino and pass the values to csound that way, but csound would be preferable as I would like to devote as much processing power as I can to csound.

--------------------------------------------

Rhys Mayes
Belfast / Dublin

--------------------------------------------





On 11 May 2020, at 14:45, joachim heintz <jh@JOACHIMHEINTZ.DE> wrote:

hi rhys -

i am on debian and followed the description in https://github.com/csound/csound/blob/develop/BUILD.md#debian

in my cs6make folder, i have CMakeCache.txt, and in it:
//Build the serial opcode
BUILD_SERIAL_OPCODES:BOOL=ON

so if you can set this option (which is perhaps OFF in your case), or run cmake with BUILD_SERIAL_OPCODES=ON, it should build the serial opcodes.  i had a look with csound -z, and the serial opcodes are there.

best -
joachim




On 11/05/2020 15:23, Rhys Mayes wrote:
Hi Guys,
Had a brief discussion with Rory Walsh about this on Cabbage forums a while back and I also briefly mentioned this problem in my last email about OSC opcodes.
I’ve been having this weird issue where when I install csound on a linux machine (through package manager or building manually) I’m unable to access the serial opcodes. Each time, my user is part of the dialout group, and even running as root gets no results. I can see that the serial opcodes are building successfully, but when I csound -z they don’t appear and they’re unrecognised when running a csd containing them.
Currently doing a fresh Ubuntu install and I’ll build it after, but I’m not really expecting positive results. It’s maybe worth noting that these are powerpc machines, specifically iMac G3 and PowerMac G4, and I’ve had this issue on Ubuntu, Debian and Void.
Does anyone have any thoughts? I’m pretty new to linux and building software in general.
Cheers!
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
      https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here


Date2020-05-11 19:37
Fromjohn
SubjectRe: [Csnd] Serial Opcodes on Linux
In mty setup libserial.so is built in the build directory and has little 
dependency

xenakis:~/csound6> ldd libserial.so
         linux-vdso.so.1 (0x00007fff377ea000)
         libc.so.6 => /lib64/libc.so.6 (0x00007f9b9165e000)
         /lib64/ld-linux-x86-64.so.2 (0x00007f9b91c1c000)


As a pugin it gts loaded if it is found when csound is run

I clearly have not understood yur setup


On Mon, 11 May 2020, Rhys Mayes wrote:

> Okay so, I used ldd to check linking, libserial was nowhere to be seen. I
> tried moving libserial.so from the cmake directory to /usr/local/lib and
> rebuilding, no luck there either :(
> Syl suggested in our PMs that I link csound to the .so after building, but
> I’ve been unable to do so successfully with what I’ve found on google (quite
> inexperienced in programming outside csound). I’m trying ’sudo gcc
> /usr/local/lib/libserial.so -o /usr/bin/csound’ (also trying with
> /usr/local/bin/csound) but I’m getting "undefined reference to ‘main’”.
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2020-05-11 21:50
FromPete Goodeve
SubjectRe: [Csnd] Serial Opcodes on Linux
AttachmentsNone