[Cs-dev] Csound6: Install target updated for OSX
Date | 2013-05-07 19:36 |
From | Steven Yi |
Subject | [Cs-dev] Csound6: Install target updated for OSX |
Hi All, I was working with Victor earlier today on the "make install" target for OSX. We ended up modifying things such that; 1) Opcode libraries are once again built into the main build directory, not as a sub-folder of the framework 2) Removed copying of external libs into the framework during build time. 3) Updated the framework install location to be in ~/Library/Frameworks 4) Updated the install location of opcodes to be where the framework will be installed 5) Updated the python install dir to be /Library/Python/2.7/site-packages 6) Updated the java install dir to be /Library/Java/Extensions 7) Updated the default OPCODE6DIR64 to point to the Opcodes folder held within ~/Library/Frameworks/CsoundLib64.framework For the above, it should now be sufficient to run "make; sudo make install" and have Csound 6 installed into your system, with everything set to load all built plugins, run with Python, and run with Java. We will be looking at the installer next, which will likely maintain installation of the Framework into the system's /Library/Frameworks, as well do the external lib copying, modification of install_name, etc. For those building Csound 6 on OSX, the changes today should hopefully make using Csound as your primary Csound work well now. Also, note that this will co-exist with Csound 5's framework, but will overwrite csound executables in /usr/local/bin. If you want to maintain both copies, you can do something like: cmake -DCMAKE_INSTALL_PREFIX=~/temp ../csound6 when you build such that when you do make install, the lib and bin folders that would normally go into /usr/local go into ~/temp. Thanks! steven ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2013-05-08 18:39 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Attachments | None None |
Maybe it's a good idea to rename the csound 6 framework so 5 and 6 can be installed side by side? Cheers, On May 7, 2013 11:36 AM, "Steven Yi" <stevenyi@gmail.com> wrote:
Hi All, |
Date | 2013-05-08 19:03 |
From | Jacob Joaquin |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Attachments | None None |
Not sure if this is what you mean, but I would personally prefer if the executable was named csound6 so I can use both 5 and 6. This is how python3 works.
On Wed, May 8, 2013 at 10:39 AM, Andres Cabrera <mantaraya36@gmail.com> wrote:
codehop.com | #code #art #music |
Date | 2013-05-08 19:14 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Attachments | None None |
We could have csound5 and csound6 commands and csound as a symlink to the latest version. Regarding the framework, we spent a good while examining the scenarios and settled for keeping the same name and creating a installer that will add (instead of replace) version 6 to the installation, as well as update the "current" symlink. Victor On 8 May 2013, at 19:03, Jacob Joaquin wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2013-05-08 19:33 |
From | Jacob Joaquin |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Attachments | None None |
This more than happy with this solution. On Wed, May 8, 2013 at 11:14 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
codehop.com | #code #art #music |
Date | 2013-05-08 19:35 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Hi Andres, The idea at the moment is that for the installer, it will copy in the CsoundLib64.framework/Versions/6.0 part of the framework, and update the CsoundLib64.framework/Versions/Current symlink to point to 6.0. Apple has its own versioning mechanism for Frameworks, and I think the way this is set to go forward, using the same lib name but using the Versions folders, this seems like the way to go. Does this sound alright to you? steven On Wed, May 8, 2013 at 6:39 PM, Andres Cabrera |
Date | 2013-05-08 19:48 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Hi Jake, I think the executable name is a separate, but equally as important question, and is a cross-platform question. I think with python, there's usually things like python2.5, python2.7, python3, etc. and there is a symlink for "python" that points to one of them (unless you're on windows which does not have symlinks...). Csound has traditionally just assumed the latest would be used. This makes sense as newer csound versions are always (fingers crossed) going to be backwards compatible with older ones, unlike python3 and python 2.x. If I remember correctly, I think the Java build tool maven also switched from the executable "maven" to "mvn" for the 2.x series, but 3.x uses "mvn" too as it is compatible with maven 2 projects, but 2.x is not compatible with 1.x. My vote is to continue with just "csound" but finally do the switch to make all executables default to the double version. I think then we could provide a "csound32" if you need to run with float precision. (Essentially this flips the csound 5 convention of "csound" for float and "csound64" for double). steven On Wed, May 8, 2013 at 7:03 PM, Jacob Joaquin |
Date | 2013-05-08 19:49 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Just read Victor's replies, he pretty much said what I was trying to say but in much less words. :) On Wed, May 8, 2013 at 7:48 PM, Steven Yi |
Date | 2013-05-08 20:03 |
From | Michael Gogins |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Attachments | None None |
Windows has junctions since Windows 2000 and links since Windows Vista. The command is mklink. It think it's pretty much a functional equivalent to a Posix ln -s. FWIW, I do use actually links to switch back and forth between Csound 5 and Csound 6 on Windows 7. I have a csound link that I create either for csound5 or csound6, depending on which I want to run.
I agree with csound defaulting to 64 bit samples and csound32 for float samples. Regards, Mike On Wed, May 8, 2013 at 2:49 PM, Steven Yi <stevenyi@gmail.com> wrote: Just read Victor's replies, he pretty much said what I was trying to Michael Gogins Irreducible Productions http://www.michael-gogins.com Michael dot Gogins at gmail dot com |
Date | 2013-05-08 20:08 |
From | Steven Yi |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Ah, glad to be corrected on links in Windows, thanks Mike! On Wed, May 8, 2013 at 8:03 PM, Michael Gogins |
Date | 2013-05-09 22:53 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] Csound6: Install target updated for OSX |
Attachments | None None |
Hi Steven, I think this is a good idea. How can you tell the linker which version to choose when linking?Cheers,
On Wed, May 8, 2013 at 11:35 AM, Steven Yi <stevenyi@gmail.com> wrote: Hi Andres, |