From GridLAB-D Wiki
Builds using Xcode are not yet supported. See http://sourceforge.net/p/gridlab-d/tickets/676 for details.
Although far less convenient, you may use the Linux/Uunix build process instead.
Build environment
Edit the file $HOME/.bash_profile and add the following:
export PATH=/usr/local/mysql/bin:/Applications/MATLAB_R2014a.app/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin . $HOME/.project_rc
Download the .project_rc and .gridlabd_project files and save them in your $HOME folder. The source for these is
# .project_rc: defines useful SVN project functions
function project() {
if [ -z "$1" ]; then
echo ${PROJECT:-No project}
elif [ "$1" == "-h" -o "$1" == "--help" ]; then
echo 'Syntax: project <name>
The project command does the following
1) Executes the project setup file \$HOME/.<name>_project
2) Defines the following commands
- trunk [path] changes to the trunk folder
- branch #.#[/path] changes to the specified branch folder
- ticket #.#[/path] changes to the specified ticket folder
'
else
. $HOME/.${1}_project
fi
}
function trunk() {
if [ -z "$TRUNK" ]; then
echo "No project"
else
cd $TRUNK/$1
pwd
fi
}
function branch() {
if [ -z "$TRUNK" ]; then
echo "No project"
elif [ -d $BRANCH/$1 ]; then
cd $BRANCH/$1
pwd
else
echo "No branch"
fi
}
function ticket() {
if [ -z "$TRUNK" ]; then
echo "No project"
elif [ -d $TICKET/$1 ]; then
cd $TICKET/$1
pwd
else
echo "No ticket"
fi
}
and
# .gridlabd_project: defines gridlabd project settings export PROJECT=$HOME/gridlabd cd $PROJECT export TRUNK=$PROJECT/trunk export BRANCH=$PROJECT/branch export TICKET=$PROJECT/ticket # note: change $USER to $SVNUSER if different from $USER export SVN=svn+ssh://$USER@svn.code.sf.net/p/gridlab-d/code export TRAC=http://sourceforge.net/p/gridlab-d/tickets/ export WIKI=http://gridlabd.me.uvic.ca/wiki/index.php/Main_Page export SVN_EDITOR=vi
Platform specifics
El Capitan
If you have problems validating the code try using a different optimization level. For example, if you have errors with CXXFLAGS=-w -O2 try using CXXFLAGS=-w -O3.
See also
- Development/release process
- Build platforms