Build Csound On Mint is possible?

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Juspu
Level 1
Level 1
Posts: 2
Joined: Fri Nov 26, 2021 2:59 am

Build Csound On Mint is possible?

Post by Juspu »

Hi,

for at least three years, and I'm doing great. A few days ago I wanted to build csound from its GitHub page, but the first statement is:

The first thing to do is make sure you have all of the required dependencies for building Csound. In a terminal, do the following:
1. Edit, as root, /etc/apt/sources.list and ensure that each line beginning with deb has another line below it that is identical except that deb is replaced with deb-src . Then run sudo apt-get update.


but my /etc/apt/sources.list.d/ file is:

Code: Select all

juspu@juspu:~$ ls /etc/apt/sources.list.d/
    additional-repositories.list  cybermax-dexter-sdl2-backport-focal.list  musicbrainz-developers-stable-focal.list  savoury1-ffmpeg4-focal.list
    brave-browser-release.list    minetestdevs-stable-focal.list            official-package-repositories.list        stebbins-handbrake-releases-focal.list
    juspu@juspu:~$
Is it possible to build Csound on Mint? How can I do that?

this is the Csound GitHub page:

https://github.com/csound/csound/blob/d ... .md#debian

thanks in advice
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Build Csound On Mint is possible?

Post by xenopeek »

Open Software Sources from your menu, toggle to enable source code repositories. That's what they're asking you to do.
Image
Juspu
Level 1
Level 1
Posts: 2
Joined: Fri Nov 26, 2021 2:59 am

Re: Build Csound On Mint is possible?

Post by Juspu »

Hi,
thanks for your reply...
the first thing I did is to use the software center, but is a version of csound that is incompatible with Cabbage (a framework for building vst sound instruments) which requires you to build csound from the source. But from its GitHub page it is instructed to edit the sources.list file, but do not know how to do or if you can.
please help me....
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Build Csound On Mint is possible?

Post by xenopeek »

I already answered how to enable source code repositories:
xenopeek wrote: Fri Nov 26, 2021 4:33 am Open Software Sources from your menu, toggle to enable source code repositories. That's what they're asking you to do.
Image
HeavyUser
Level 2
Level 2
Posts: 62
Joined: Wed Oct 09, 2019 4:21 pm

Re: Build Csound On Mint is possible?

Post by HeavyUser »

Interesting topic. I am having the same problem. I want to use Blue and Cabbage but the Csound version from the Linux Mint repositories is too old. Is this what we have to do?


1.png
2.png
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Build Csound On Mint is possible?

Post by xenopeek »

I assume next you have to follow the instructions Juspu referred to for how to get and build the latest Csound source code. One requirement for that was to enable source code repositories, which enabling them in Software Sources does.
Image
HeavyUser
Level 2
Level 2
Posts: 62
Joined: Wed Oct 09, 2019 4:21 pm

Re: Build Csound On Mint is possible?

Post by HeavyUser »

I tried to follow the instructions on GitHub and this is what happened:

Code: Select all

sudo apt-get build-dep csound
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 builddeps:csound : Depends: portaudio19-dev but it is not going to be installed
                    Depends: libstk0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Build Csound On Mint is possible?

Post by xenopeek »

Both packages are available on Linux Mint 19.x and on 20.x. If you're getting that error, you have NOT enabled source code repositories. Or you skipped refreshing your package index cache. Try running apt update once and then the build-dep command again.
Image
HeavyUser
Level 2
Level 2
Posts: 62
Joined: Wed Oct 09, 2019 4:21 pm

Re: Build Csound On Mint is possible?

Post by HeavyUser »

Same problem again:

Code: Select all

bart@Synth:~$ apt update
[sudo] password for bart:       
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic InRelease    
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88,7 kB]      
Hit:4 http://archive.canonical.com/ubuntu bionic InRelease                     
Hit:5 http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic InRelease   
Get:6 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74,6 kB]    
Hit:7 http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic InRelease 
Hit:8 http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic InRelease    
Hit:9 http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic InRelease
Hit:10 http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu bionic InRelease
Ign:11 https://kx.studio/repo stable InRelease                                 
Ign:12 http://packages.linuxmint.com tricia InRelease                          
Ign:13 https://kx.studio/repo gcc5 InRelease                             
Get:14 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
Hit:15 https://kx.studio/repo stable Release                                   
Hit:16 http://packages.linuxmint.com tricia Release                            
Hit:17 https://kx.studio/repo gcc5 Release                                     
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 DEP-11 Metadata [293 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 DEP-11 Metadata [300 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 DEP-11 Metadata [2464 B]
Get:21 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 DEP-11 Metadata [9272 B]
Get:25 http://security.ubuntu.com/ubuntu bionic-security/main amd64 DEP-11 Metadata [50,3 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 DEP-11 Metadata [59,0 kB]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 DEP-11 Metadata [2464 B]
Fetched 968 kB in 2s (635 kB/s)                                             
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
bart@Synth:~$ sudo apt-get build-dep csound
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 builddeps:csound : Depends: portaudio19-dev but it is not going to be installed
                    Depends: libstk0-dev but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Build Csound On Mint is possible?

Post by xenopeek »

What does this say?
apt policy portaudio19-dev libstk0-dev
Image
HeavyUser
Level 2
Level 2
Posts: 62
Joined: Wed Oct 09, 2019 4:21 pm

Re: Build Csound On Mint is possible?

Post by HeavyUser »

Code: Select all

apt policy portaudio19-dev libstk0-dev
portaudio19-dev:
  Installed: (none)
  Candidate: 19.6.0-1
  Version table:
     19.6.0-1 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
libstk0-dev:
  Installed: (none)
  Candidate: 4.5.2+dfsg-5build1
  Version table:
     4.5.2+dfsg-5build1 500
        500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
HeavyUser
Level 2
Level 2
Posts: 62
Joined: Wed Oct 09, 2019 4:21 pm

Re: Build Csound On Mint is possible?

Post by HeavyUser »

It looks like portaudio19-dev can be installed by means of the Synaptic Package Manager, but then a lot of other useful programs will be removed...

synaptic.png
User avatar
xenopeek
Level 25
Level 25
Posts: 29507
Joined: Wed Jul 06, 2011 3:58 am

Re: Build Csound On Mint is possible?

Post by xenopeek »

When I tried to install portaudio19-dev and libstk0-dev on Linux Mint 20.2 it wanted to uninstall libjack-jackd2-0, because they say they conflict with that. Wine (libwine specifically) requires libasound2-plugins and that in turn requires libjack-jackd2-0. So yeah, if you want to install portaudio19-dev or libstk0-dev you'll end up having to uninstall Wine. However stupid that sounds, whenever you see "jack" packages in list of dependencies it often means you'll have a dependency problem. Luckily the Pipewire project is hard at work to replace JACK and do away with it. JACK has been the cause of such problems for years.

I think you can give this a try however. The portaudio19-dev and libstk0-dev packages are only needed to build the Csound software, you can uninstall them afterwards and reinstall wine-installer. For the compiled software you most likely need to install libportaudio2 and libstk-4.5.0 and these don't conflict with libjack-jackd2-0 so can be installed alongside Wine.

I would suggest you install using the terminal with command apt install portaudio19-dev libstk0-dev and take a copy of the packages it will install and which it will remove. Save that in a file so you can reverse it later (you can select all text and copy it from the terminal through its Edit menu).

And for compiling software install build-essential and checkinstall, and use checkinstall command instead of any "make install" the build instructions for Csound may have. With checkinstall first it builds a .deb package file before installing it. That way you can use the package manager to remove Csound if it doesn't work as advertised and you can also copy that .deb file to another system to install it there. See my topic viewtopic.php?f=90&t=230142 about this.

And take a system snapshot with Timeshift before doing any of this?
Image
HeavyUser
Level 2
Level 2
Posts: 62
Joined: Wed Oct 09, 2019 4:21 pm

Re: Build Csound On Mint is possible?

Post by HeavyUser »

Well - thank you for the info, but if all that is necessary to install a more recent version of Csound than I rather leave it as it is now. I had a lot of trouble getting Wine to work properly (and I need Wine to run VST-plugins) and so I do not wish to change the way it works now just to be able to run Blue and Cabbage. Maybe another nice graphical IDE for Csound will turn up some day that can be installed without meshing up the other software. Thanks again! :)
Locked

Return to “Software & Applications”