Talk:Building OpenCog

From OpenCog
Jump to: navigation, search

Windows

Using MS Visual C++ Express 9 (2008)

Instructions and dependencies found in README.win32

Source Code Download

Using Bazaar version control (instructions at http://bazaar-vcs.org/WindowsDownloads)

bzr branch lp:~opencog

Mac OS X

Using MacPorts

 hdid http://distfiles.macports.org/MacPorts/MacPorts-1.8.1-10.6-SnowLeopard.dmg
 sudo installer -pkg /Volumes/MacPorts-1.8.1/MacPorts-1.8.1.pkg -target /
 echo "export PATH=/opt/local/bin:/opt/local/sbin:$PATH" >> ~/.profile

 source ~/.profile

 sudo port -v selfupdate
  • Install dependencies from MacPorts
sudo port install bzr  #lots of dependencies!
# sudo port install rpm  #even more dependencies! unnecessary?
sudo port install gmake
sudo port install cmake
#cmake couldn't find this gsl - but perhaps could make it work?
#sudo port install gsl-devel 
sudo port install guile # for scm shell
sudo port install libsdl libsdl_gfx # for embodiment spatial tools
sudo port install xercesc3 lua # needed for embodiment

# required for persistence, but not tested on OSX 
# sudo port install unixODBCyet.
tar zxvf boost_1_38_0.tar.gz
cd boost_1_38_0
./configure
make
make install
  • Install libgsl:
cd ~
curl -O ftp://ftp.gnu.org/gnu/gsl/gsl-1.9.tar.gz
tar zvf gsl-1.9.tar.gz
cd gsl-1.9
./configure
make
make install
  • Get Opencog and build...
bzr branch lp:~opencog-dev/opencog/osxport
mkdir bin
cd bin
cmake ..
make && make test

Email the mailing list with how it went!

Not working

Embodiment needs luabind:

Download luabind from http://sourceforge.net/projects/luabind/files/luabind/0.9/luabind-0.9.tar.gz/download

Then configure/make/make install

Doesn't currently work on OSX?