BuildingOpenCog
From OpenCog
also see development standards; post questions to opencog-users@googlegroups.com
Contents |
Build Dependencies
OpenCog's primary development platform is GNU/Linux. Ubuntu 8.04 (hardy) and Debian 5.0 (lenny) are supported. OpenSuse, Fedora, OSX+MacPorts and others are reported working, and a port to MSVS is in progress. Package names listed below are for Debian-based systems (Ubuntu, etc.); package names for other platforms may vary somewhat.
Required dependencies
g++ cmake gawk make libssl-dev libexpat1-dev libboost-dev libboost-date-time-dev libboost-graph-dev libboost-serialization-dev libboost-regex-dev
Download links (below) for packages not found in regular repositories; these packages will be available soon in the ~opencog-dev PPA at Launchpad.
csockets-dev csockets cxxtest
Suggested dependencies:
libiodbc2-dev guile-1.8-dev wordnet-dev wordnet-sense-index
Recommended tools:
bzrtools bzr-rebase bzr-gtk meld astyle
Source Code Download
Using Bazaar version control (version 1.3.1 or later required)
$ bzr branch lp:opencog
Source Code Update
Assuming the branch is in a subdirectory in the current directory, e.g. opencog
$ cd opencog $ bzr update
Building Quick Reference
Assuming the branch is in a subdirectory in the current directory, e.g. opencog
$ mkdir compile ; cd compile $ cmake ../opencog ; make ; make test
Testing OpenCog Shell Quick Reference
Assuming binaries are in a subdirectory in the current directory, e.g. compile
$ compile/src/CogServer/cogServer & [2008-05-31 23:10:12:227] [INFO] opencog server ready. $ telnet localhost 17001 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. opencog> help Available commands: data <xmldata> -- load OpenCog XML data immediately following load <filename> -- load OpenCog XML from indicated filename ls -- list entire system contents ls <handle> -- list handle and its incoming set ls <type> <name> -- list node and its incoming set dlopen <filename> -- load a dynamic module (and run it). dlclose <filename> -- close a previously loaded dynamic module. scm -- enter the scheme interpreter sql-open <dbname> <username> <auth> -- open connection to SQL storage sql-close -- close connection to SQL storage sql-store -- store all server data to SQL storage sql-load -- load server from SQL storage shutdown -- stop the server, and exit opencog>
Notes for Windows & Mac OS X
See Talk:BuildingOpenCog. Alternatively, the free VirtualBox OSE may be used to boot and install the Ubuntu 8.04 LiveCD within a virtual machine (Desktop or Server edition, Standard x86/32-bit).

