Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] OSX 10.6 Build

Date2014-12-06 15:56
FromSteven Yi
SubjectRe: [Cs-dev] OSX 10.6 Build
AttachmentsNone  None  
Hi Joachim,

To run the script, you give the branch or tag to build, so you can use:

sudo ./release-build.sh 6.04.0

I forgot to mention, for the release builds, you need to run with sudo.  What the release script does is make a clean clone of Csound for the given branch/tag, then builds from there.  It does this to ensure it's exactly as specified in case there are any other files or changes that may have been committed.  

There's a second option to run like this:

sudo ./release-build.sh 6.04.0 2014-12-06-123456

where the 2nd arg is a pre-existing folder.  I had added this to re-run a build in a folder if something went wrong and I was diagnosing the build.  Hopefully, you won't need to use that part.  

Let me know if there are further questions!
steven

On Sat Dec 06 2014 at 10:45:40 AM joachim heintz <jh@joachimheintz.de> wrote:
hi all -

thanks, that worked. now i want to build, and i don't understand what
the release-build.sh script wants me to do.

i have the sources in src/csound.  i pulled and checked out the 6.04.0
tag.  from which dir should i now build?  i do not understand this part
of the script:

if [ $# -gt 1 ]; then
        cd $2
        echo "Using directory $2 `pwd`"
         export INSTALLER_DIR=`pwd`/installer
         rm -rf installer
        rm -rf csound6/build/dist
         mkdir installer
else
        export RELEASE_DIR="`eval date +%Y-%m-%d-%H%M%S`"
         export INSTALLER_DIR=`pwd`/$RELEASE_DIR/installer
        mkdir $RELEASE_DIR
         mkdir $INSTALLER_DIR
        cd $RELEASE_DIR

        #git clone git://csound.git.sourceforge.net/gitroot/csound/csound5
        git clone -b $BRANCH_NAME file://$PWD/../../.. csound6 --depth=1
        #cp -R csound5 csound5-f
fi


best -
        joachim


Am 01.12.2014 um 23:05 schrieb Steven Yi:
> Hi Joachim,
>
> Answers inline below.  Thanks!
> steven
>
>     1. there is
>     list(APPEND CMAKE_SYSTEM_LIBRARY_PATH
>     "/Users/victor/src/stk-4.4.4/__src")
>     list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
>     "/Users/victor/src/stk-4.4.4/__include")
>     but i have no stk installed.  i think this was no part of the download /
>     install shell script?  do i need it?  where to get it?
>
>
> For this, I think you should download stk from:
>
> https://ccrma.stanford.edu/software/stk/download.html
>
> Then do a "./configure; make".  After that, update the above values to
> point to the location of where you put stk.
>
>     2. similar thing with
>     set(MAX_SDK_ROOT /Users/stevenyi/work/max_msp/__MaxSDK-6.1.4)
>     i think this is related to building the csound~ object for maxmsp?  do i
>     need maxmsp for it (i don't have it on my computer, only max5).
>
>
> This is required for building csound~.  It requires the MaxSDK, which is
> freely downloadable from cycling74.com <http://cycling74.com>.  I think
> in the past I had packaged csound~ with the Csound installer, but I've
> also pushed it on its own to the Csound file releases.  If you want to
> try to build it, it should require downloading and updating that var to
> point to where you have the sdk unzipped.  You will also need boost
> installed (I have it installed via homebrew with "brew install boost").
> I think you could probably ignore building this and if someone asks for
> it (say, if the build I've done doesn't work with your csound for some
> reason), we can investigate this further from there.
>
>     3. list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
>     "/Applications/Pd-extended.__app/Contents/Resources/__include")
>     what is this for?
>
>
> This is for building csound6~ object for PD.  It just requires pointing
> to the location where pd.h is.  If you have PD installed somewhere else,
> that directory location would work just as well.
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel

Date2014-12-06 19:39
Fromjoachim heintz
SubjectRe: [Cs-dev] OSX 10.6 Build
hi steven -

in my case, i wanted to build csound first, then build csoundqt, to 
include it in the installer.  probably it's the best to split the 
script: first execute the first part, then build csoundqt, put it in the 
PkgResources, and finally execute the script after "assemble files for 
installer"?

as to the manual: i have built the current version as html and put it 
(as "manual") in the root dir.  correct?

ciao -
	joachim


Am 06.12.2014 um 16:56 schrieb Steven Yi:
> Hi Joachim,
>
> To run the script, you give the branch or tag to build, so you can use:
>
> sudo ./release-build.sh 6.04.0
>
> I forgot to mention, for the release builds, you need to run with sudo.
> What the release script does is make a clean clone of Csound for the
> given branch/tag, then builds from there.  It does this to ensure it's
> exactly as specified in case there are any other files or changes that
> may have been committed.
>
> There's a second option to run like this:
>
> sudo ./release-build.sh 6.04.0 2014-12-06-123456
>
> where the 2nd arg is a pre-existing folder.  I had added this to re-run
> a build in a folder if something went wrong and I was diagnosing the
> build.  Hopefully, you won't need to use that part.
>
> Let me know if there are further questions!
> steven
>
> On Sat Dec 06 2014 at 10:45:40 AM joachim heintz  > wrote:
>
>     hi all -
>
>     thanks, that worked. now i want to build, and i don't understand what
>     the release-build.sh script wants me to do.
>
>     i have the sources in src/csound.  i pulled and checked out the 6.04.0
>     tag.  from which dir should i now build?  i do not understand this part
>     of the script:
>
>     if [ $# -gt 1 ]; then
>              cd $2
>              echo "Using directory $2 `pwd`"
>               export INSTALLER_DIR=`pwd`/installer
>               rm -rf installer
>              rm -rf csound6/build/dist
>               mkdir installer
>     else
>              export RELEASE_DIR="`eval date +%Y-%m-%d-%H%M%S`"
>               export INSTALLER_DIR=`pwd`/$RELEASE___DIR/installer
>              mkdir $RELEASE_DIR
>               mkdir $INSTALLER_DIR
>              cd $RELEASE_DIR
>
>              #git clone
>     git://csound.git.sourceforge.__net/gitroot/csound/csound5
>     
>              git clone -b $BRANCH_NAME file://$PWD/../../.. csound6
>     --depth=1
>              #cp -R csound5 csound5-f
>     fi
>
>
>     best -
>              joachim
>
>
>     Am 01.12.2014 um 23:05 schrieb Steven Yi:
>      > Hi Joachim,
>      >
>      > Answers inline below.  Thanks!
>      > steven
>      >
>      >     1. there is
>      >     list(APPEND CMAKE_SYSTEM_LIBRARY_PATH
>      >     "/Users/victor/src/stk-4.4.4/____src")
>      >     list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
>      >     "/Users/victor/src/stk-4.4.4/____include")
>      >     but i have no stk installed.  i think this was no part of the
>     download /
>      >     install shell script?  do i need it?  where to get it?
>      >
>      >
>      > For this, I think you should download stk from:
>      >
>      > https://ccrma.stanford.edu/__software/stk/download.html
>     
>      >
>      > Then do a "./configure; make".  After that, update the above
>     values to
>      > point to the location of where you put stk.
>      >
>      >     2. similar thing with
>      >     set(MAX_SDK_ROOT /Users/stevenyi/work/max_msp/____MaxSDK-6.1.4)
>      >     i think this is related to building the csound~ object for
>     maxmsp?  do i
>      >     need maxmsp for it (i don't have it on my computer, only max5).
>      >
>      >
>      > This is required for building csound~.  It requires the MaxSDK,
>     which is
>      > freely downloadable from cycling74.com 
>     .  I think
>      > in the past I had packaged csound~ with the Csound installer, but
>     I've
>      > also pushed it on its own to the Csound file releases.  If you
>     want to
>      > try to build it, it should require downloading and updating that
>     var to
>      > point to where you have the sdk unzipped.  You will also need boost
>      > installed (I have it installed via homebrew with "brew install
>     boost").
>      > I think you could probably ignore building this and if someone
>     asks for
>      > it (say, if the build I've done doesn't work with your csound for
>     some
>      > reason), we can investigate this further from there.
>      >
>      >     3. list(APPEND CMAKE_SYSTEM_INCLUDE_PATH
>      >
>       "/Applications/Pd-extended.____app/Contents/Resources/____include")
>      >     what is this for?
>      >
>      >
>      > This is for building csound6~ object for PD.  It just requires
>     pointing
>      > to the location where pd.h is.  If you have PD installed
>     somewhere else,
>      > that directory location would work just as well.
>      >
>      >
>      >
>     ------------------------------__------------------------------__------------------
>      > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>      > from Actuate! Instantly Supercharge Your Business Reports and
>     Dashboards
>      > with Interactivity, Sharing, Native Excel Exports, App
>     Integration & more
>      > Get technology previously reserved for billion-dollar
>     corporations, FREE
>      >
>     http://pubads.g.doubleclick.__net/gampad/clk?id=157005751&__iu=/4140/ostg.clktrk
>     
>      >
>      >
>      >
>      > _________________________________________________
>      > Csound-devel mailing list
>      > Csound-devel@lists.__sourceforge.net
>     
>      > https://lists.sourceforge.net/__lists/listinfo/csound-devel
>     
>      >
>
>     ------------------------------__------------------------------__------------------
>     Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>     from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>     with Interactivity, Sharing, Native Excel Exports, App Integration &
>     more
>     Get technology previously reserved for billion-dollar corporations, FREE
>     http://pubads.g.doubleclick.__net/gampad/clk?id=164703151&__iu=/4140/ostg.clktrk
>     
>     _________________________________________________
>     Csound-devel mailing list
>     Csound-devel@lists.__sourceforge.net
>     
>     https://lists.sourceforge.net/__lists/listinfo/csound-devel
>     
>
>
>
> ------------------------------------------------------------------------------
> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
> with Interactivity, Sharing, Native Excel Exports, App Integration & more
> Get technology previously reserved for billion-dollar corporations, FREE
> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net