Problem building Csnd6 from source on Linux/Ubuntu
Date | 2016-01-05 18:09 |
From | John DeBlase |
Subject | Problem building Csnd6 from source on Linux/Ubuntu |
Hi all...
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
I'm trying to build Csound6 from source on Ubuntu 15 using this set of instructions: I'm hitting a snag during compilation and keep getting an error: Could not find FLEX (missing: FLEX_EXECUTABLE) Could not find BISON (missing: BISON_EXECUTABLE) I already have a Csound6 installation on my system that works that I built using sudo apt-get install csound. I'm able to run .csd files normally from the command line with output routed through jack. I really want to build a local version from source so I can correctly follow the tutorials Rory and Steven wrote on how to use the Csound API to build front end programs in C++ and Python. Unfortunately I'm a pretty new C/C++ programmer and don't have much experience using cmake. Was hoping I might get some help on how to get set up correctly... Let me know if you need any more info... thanks! johnny |
Date | 2016-01-05 18:23 |
From | Tarmo Johannes |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Hi, I think you need to install bison and flex (nexessary for some syntax parsing or documentation, I am not sure). Probably just sudo apt-get install bison flex for ubuntu (in terminal. Or use systems software manager). Hope you get it going soon! tarmo On Tuesday 05 January 2016 13:09:47 you wrote: > Hi all... > > I'm trying to build Csound6 from source on Ubuntu 15 using this set of > instructions: > > https://github.com/csound/csound/blob/develop/BUILD.md#debian > > I'm hitting a snag during compilation and keep getting an error: > > Could not find FLEX (missing: FLEX_EXECUTABLE) > Could not find BISON (missing: BISON_EXECUTABLE) > > I already have a Csound6 installation on my system that works that I built > using sudo apt-get install csound. I'm able to run .csd files normally from > the command line with output routed through jack. > > I really want to build a local version from source so I can correctly > follow the tutorials Rory and Steven wrote on how to use the Csound API to > build front end programs in C++ and Python. > > Unfortunately I'm a pretty new C/C++ programmer and don't have much > experience using cmake. Was hoping I might get some help on how to get set > up correctly... Let me know if you need any more info... > > thanks! > johnny > > 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 |
Date | 2016-01-05 18:35 |
From | jpff |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Yesflex is used for macros, includes anf lexical analusis. bison is the compiler generator. From source they are necessary On Tue, 5 Jan 2016, Tarmo Johannes wrote: > Hi, > > I think you need to install bison and flex (nexessary for some syntax parsing > or documentation, I am not sure). > > Probably just > sudo apt-get install bison flex > for ubuntu (in terminal. Or use systems software manager). Hope you get it > going soon! > > tarmo > > On Tuesday 05 January 2016 13:09:47 you wrote: >> Hi all... >> >> I'm trying to build Csound6 from source on Ubuntu 15 using this set of >> instructions: >> >> https://github.com/csound/csound/blob/develop/BUILD.md#debian >> >> I'm hitting a snag during compilation and keep getting an error: >> >> Could not find FLEX (missing: FLEX_EXECUTABLE) >> Could not find BISON (missing: BISON_EXECUTABLE) >> >> I already have a Csound6 installation on my system that works that I built >> using sudo apt-get install csound. I'm able to run .csd files normally from >> the command line with output routed through jack. >> >> I really want to build a local version from source so I can correctly >> follow the tutorials Rory and Steven wrote on how to use the Csound API to >> build front end programs in C++ and Python. >> >> Unfortunately I'm a pretty new C/C++ programmer and don't have much >> experience using cmake. Was hoping I might get some help on how to get set >> up correctly... Let me know if you need any more info... >> >> thanks! >> johnny >> >> 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 |
Date | 2016-01-05 18:38 |
From | John DeBlase |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
ok thnx I'll try getting those from the package manager... I wasn't really sure what those executables were all about.. On Tue, Jan 5, 2016 at 1:35 PM, jpff <jpff@codemist.co.uk> wrote: Yesflex is used for macros, includes anf lexical analusis. bison is the compiler generator. From source they are necessary |
Date | 2016-01-05 19:50 |
From | John DeBlase |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Seems like the build worked... I was also able to compile and run the C API command line program from Rory's floss tutorial using doubles. However with the new Csound build I get the error: unknown rtmodule 'jack', using dummy module rtaudio: dummy module enabled There are no errors in performance and I can see the overall amps but there is obviously no sound output since Csound doesn't seem to recognize jack anymore... Is there something extra I need to configure for this to work when building from source? thanks again.. On Tue, Jan 5, 2016 at 1:38 PM, John DeBlase <bsnacks000@gmail.com> wrote:
|
Date | 2016-01-05 20:04 |
From | Victor Lazzarini |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
You probably did not build any audio IO modules. For these you would need: - alsa module: libasound-dev - jack module: libjack-dev - portaudio module: portaudio any of them will give you audio. The example you cited used jack Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-01-05 20:07 |
From | jpff |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
You need te jack-debel package to build rtjack On Tue, 5 Jan 2016, John DeBlase wrote: > Seems like the build worked... I was also able to compile and run the C API > command line program from Rory's floss tutorial using doubles. > However with the new Csound build I get the error: > > unknown rtmodule 'jack', using dummy module > rtaudio: dummy module enabled > > There are no errors in performance and I can see the overall amps but there is > obviously no sound output since Csound doesn't seem to recognize jack > anymore... > > Is there something extra I need to configure for this to work when building > from source? > > thanks again.. > > > > > > On Tue, Jan 5, 2016 at 1:38 PM, John DeBlase |
Date | 2016-01-05 20:17 |
From | John DeBlase |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Hi Victor... I just installed libjack-dev and it seemed to completely remove my jackd2 installation as well as my installation of SuperCollider3... I think it installed jackd1 in its place... I did this using sudo apt-get install libjack-dev What would be the correct way to do this so that I can reinstall jackd2 and Qjackctl along with SuperCollider and have all this software playing nice together :) When I had installed csound originally from the package manager I was able to easily interface with my jackd2 installation On Tue, Jan 5, 2016 at 3:07 PM, jpff <jpff@codemist.co.uk> wrote: You need te jack-debel package to build rtjack |
Date | 2016-01-05 20:22 |
From | Victor Lazzarini |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
did you try libjack2-dev? Csound would work with that. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-01-05 20:25 |
From | Victor Lazzarini |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
it's libjack-jackd2-dev apparently... Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-01-05 20:28 |
From | Anders Genell |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
I think it's libjack-jackd2-dev for Ubuntu. Regards, Anders
|
Date | 2016-01-05 20:35 |
From | John DeBlase |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
I rebuilt jack and installed libjack-jackd2-dev... still no luck getting it to work with my Csound installation thanks for your help with this guys... On Tue, Jan 5, 2016 at 3:28 PM, Anders Genell <anders.genell@gmail.com> wrote:
|
Date | 2016-01-05 20:44 |
From | Victor Lazzarini |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Has the jack module been built? Maybe it hasn't? Maybe cmake has not found the headers or -DBUILD_JACK=1 was not selected when you ran cmake. Check in the log messages that are printed to the terminal. You will also need to make install for it to work. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-01-05 20:50 |
From | Victor Lazzarini |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
The csound jack module is librtjack.so, if it is in your build directory, then you have built it, if not, that's the problem. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-01-05 21:00 |
From | John DeBlase |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Yep that's it... in the cs6make directory I used to build the installation the only rtlib I have is librtalsa.so So just to make sure... if I re-run cmake now from my src directory like this: cmake ../csound -DBUILD_JACK=1 and then do the make install commands like I did before the new installation will be able to interface with jack? Sorry I'm such a noob at this! This is the first time I've built anything this complex in Linux (which I've only been using for about 6 months...) On Tue, Jan 5, 2016 at 3:50 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2016-01-05 21:06 |
From | Anders Genell |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Just to be om the safe side, you might want to clean out your build directory and start anew - I seem to remember having difficulties with lingering cmake caches that prevented enabling of some build options. Regards, Anders
|
Date | 2016-01-05 21:07 |
From | Victor Lazzarini |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
I think that should do it. The only other thing is that sometimes cmake needs to be told where the jack header is (jack.h), which you can do with -DJACK_HEADER=/path/to/jack.h wherever /path/to is in your system. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-01-05 21:11 |
From | Rory Walsh |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
That's sounds about right. You may also think of installing cmake-gui with apt-get. It will make live easier for you when you need to enable different options in cmake. On 5 Jan 2016 9:01 pm, "John DeBlase" <bsnacks000@gmail.com> wrote:
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
|
Date | 2016-01-05 21:22 |
From | John DeBlase |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Thanks everyone for your help... I'm starting to understand this a bit a better. cmake output now says: USE_JACK is enabled so it looks that will be good. I'm also now noticing these SWIG messages, in particular the one that says SWIG_FOUND= "False" disabling BUILD_PYTHON_INTERFACE... I'm assuming that this is what let's Python access the C API... since I want to build some python frontends I'm assuming I need to install swig. Is there anything else that I would need to set or download in order to use the Python API interface? On Tue, Jan 5, 2016 at 4:11 PM, Rory Walsh <rorywalsh@ear.ie> wrote:
|
Date | 2016-01-05 21:41 |
From | John DeBlase |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
Success!! realtime jack now works from the command line and API... Also got swig pretty easily and was able to build the Python example from Steven's github.. Rory, I'll check out the cmake-gui for the future... You guys are the best!! thanks for the help and explanations... cheers, -j On Tue, Jan 5, 2016 at 4:22 PM, John DeBlase <bsnacks000@gmail.com> wrote:
|
Date | 2016-01-05 21:42 |
From | Victor Lazzarini |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
you will need SWiG and the python devel packages Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-01-05 21:53 |
From | Rory Walsh |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
If only it were as easy on other operating systems to build! On 5 January 2016 at 21:41, John DeBlase <bsnacks000@gmail.com> wrote:
|
Date | 2016-01-05 21:58 |
From | Victor Lazzarini |
Subject | Re: Problem building Csnd6 from source on Linux/Ubuntu |
It's true. Linux is prime developer land. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|