Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir
Date | 2021-08-19 08:35 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
The question I have now is how to tell CMake to install under %%local%%. At the moment, the install dir string does not mention it. Prof. Victor Lazzarini Maynooth University Ireland > On Aug 18, 2021, at 4:10 PM, Victor Lazzarini |
Date | 2021-08-19 10:13 |
From | Francois PINOT |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
I just commited this for linux: lines 129 and 136 of CMakeLists.txt. Here's the result on my system: plugins64$ pwd /home/pinot/csound/6.0/plugins64 plugins64$ ll total 756 drwxrwxr-x 2 pinot pinot 4096 août 19 10:57 ./ drwxrwxr-x 3 pinot pinot 4096 août 19 10:47 ../ -rw-r--r-- 1 pinot pinot 132456 août 19 10:57 libchua.so -rw-r--r-- 1 pinot pinot 43800 août 19 10:57 libfaustcsound.so -rw-r--r-- 1 pinot pinot 28624 août 19 10:57 libimage.so -rw-r--r-- 1 pinot pinot 92072 août 19 10:57 libpy.so -rw-r--r-- 1 pinot pinot 460128 août 19 10:57 libwidgets.so I suppose I'll have to do a sudo ldconfig to this path when Csound will be aware of this user plugins directory. François Le jeu. 19 août 2021 à 09:36, Victor Lazzarini <Victor.Lazzarini@mu.ie> a écrit : The question I have now is how to tell CMake to install under %%local%%. At the moment, |
Date | 2021-08-19 12:56 |
From | Eduardo Moguillansky |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
This is NOT the right installation folder for linux. It should be
$HOME/.local/lib/csound/$APIVERSION/plugins64. The scheme is
already documented and in use, so please do not change it. There is no need to do ldconfig since csound searches for plugins
there (see Top/csmodule.c) On 19.08.21 11:13, Francois PINOT
wrote:
|
Date | 2021-08-19 13:55 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
I noticed that according to the CMakeLists.txt from csound, it actually should be .local/lib/csound/6.0/plugins64 I had changed it for that location in my last commit. Would that work? ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 19 Aug 2021, at 10:13, Francois PINOT |
Date | 2021-08-19 13:57 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
yes, I had quoted it wrongly here. Do you know how to set CMake to install the plugins correctly for Windows? I am just waiting for that solution now to finish the release. At the moment I have set(PLUGIN_INSTALL_DIR "csound/${APIVERSION}/plugins64") but I’m pretty sure this does not take account of the %%…%% part. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 19 Aug 2021, at 12:56, Eduardo Moguillansky |
Date | 2021-08-19 14:03 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
I also noted that your commit was to ‘master’ instead of ‘develop’. The path in ‘develop’ is correct. I have merged the branches to keep master correct. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 19 Aug 2021, at 10:13, Francois PINOT |
Date | 2021-08-19 16:09 |
From | Eduardo Moguillansky |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
The path given in the cmake file is completed at runtime by prepending a prefix. In the case of linux and macos that prefix is $HOME, in the case of windows, that prefix is %LOCALAPPDATA%. I can't test it right now but in cmake that should be something like:
(of course this should be inside an if(WIN32) ... endif() block) https://cmake.org/cmake/help/latest/variable/ENV.htmlOn 19.08.21 14:57, Victor Lazzarini wrote: yes, I had quoted it wrongly here. Do you know how to set CMake to install the plugins correctly for Windows? I am just waiting for that solution now to finish the release. At the moment I have set(PLUGIN_INSTALL_DIR "csound/${APIVERSION}/plugins64") but I’m pretty sure this does not take account of the %%…%% part. ======================== Prof. Victor Lazzarini Maynooth University IrelandOn 19 Aug 2021, at 12:56, Eduardo Moguillansky <eduardo.moguillansky@gmail.com> wrote: This is NOT the right installation folder for linux. It should be $HOME/.local/lib/csound/$APIVERSION/plugins64. The scheme is already documented and in use, so please do not change it. There is no need to do ldconfig since csound searches for plugins there (see Top/csmodule.c) On 19.08.21 11:13, Francois PINOT wrote:I just commited this for linux: lines 129 and 136 of CMakeLists.txt. Here's the result on my system: plugins64$ pwd /home/pinot/csound/6.0/plugins64 plugins64$ ll total 756 drwxrwxr-x 2 pinot pinot 4096 août 19 10:57 ./ drwxrwxr-x 3 pinot pinot 4096 août 19 10:47 ../ -rw-r--r-- 1 pinot pinot 132456 août 19 10:57 libchua.so -rw-r--r-- 1 pinot pinot 43800 août 19 10:57 libfaustcsound.so -rw-r--r-- 1 pinot pinot 28624 août 19 10:57 libimage.so -rw-r--r-- 1 pinot pinot 92072 août 19 10:57 libpy.so -rw-r--r-- 1 pinot pinot 460128 août 19 10:57 libwidgets.so I suppose I'll have to do a sudo ldconfig to this path when Csound will be aware of this user plugins directory. François Le jeu. 19 août 2021 à 09:36, Victor Lazzarini <Victor.Lazzarini@mu.ie> a écrit : The question I have now is how to tell CMake to install under %%local%%. At the moment, the install dir string does not mention it. Prof. Victor Lazzarini Maynooth University IrelandOn Aug 18, 2021, at 4:10 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote: |
Date | 2021-08-19 19:50 |
From | Francois PINOT |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
Sorry, I had forgotten to branch my local repo to develop. I have good news: I removed the plugins opcodes from the csound lib directory and I rebuilt these plugins from the plugins repository. When I run make install, the csound/6.0/plugins64 directory was created in my $HOME/.local/lib directory and the plugins were correctly installed there. Then I ran the csound -z command and I could see the plugins in the list output by csound. Regards François Le jeu. 19 août 2021 à 15:03, Victor Lazzarini <Victor.Lazzarini@mu.ie> a écrit : I also noted that your commit was to ‘master’ instead of ‘develop’. The path in ‘develop’ is correct. I have merged the branches to keep master correct. |
Date | 2021-08-19 21:40 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
Wonderful news. Dr. Richard Boulanger Professor Electronic Production and Design Berklee College of Music On Aug 19, 2021, at 2:51 PM, Francois PINOT <fggpinot@gmail.com> wrote:
|
Date | 2021-08-20 12:44 |
From | Victor Lazzarini |
Subject | Re: [Csnd-dev] [EXTERNAL] [Csnd-dev] plugins install dir |
Thanks François. I think all’s good now in the currently released code, we’re adopting Eduardo’s mechanism. In time it might be a good idea to look at integrating his package manager with these opcodes. However, a priority now is to look for maintainer(s) for the plugin repository. We have placed it in good shape now, so the work load may not be daunting. ======================== Prof. Victor Lazzarini Maynooth University Ireland > On 19 Aug 2021, at 19:50, Francois PINOT |