Development/SCons

From Soar Wiki

Jump to: navigation, search

SCons will soon be the preferred way to build Soar on posix systems and, hopefully, in the future will be possible on all systems.

Contents

Prerequisites

  • SCons uses Python, both must be installed to build Soar with SCons. See the Building and Installing SCons section of the SCons user manual for information on how to install SCons. Other documentation on SCons is available here.
    • This build may not work with newer versions (>0.96.1) of SCons!
    • Developing: Python on OSX should be 2.4.x, not the 2.3 that it ships with.
  • Java, while technically not required to use Soar, is required to use the very useful Soar Java Debugger and many other Soar tools and environments. The latest available Sun JDK for your system should be installed before building Soar.
  • SWIG (1.3.31 or newer) is required for creating an interface between the Java tools and Soar's libraries.

Obtain the Source

  • Check out the trunk, contacting Jonathan if you need access.
https://winter.eecs.umich.edu/svn/soar/trunk/SoarSuite

Set up environment

Linux

LD_LIBRARY_PATH must have full paths to SoarLibrary/lib and SoarLibrary/bin, for example:

export LD_LIBRARY_PATH=/home/voigtjr/soar/SoarSuite/SoarLibrary/bin:/home/voigtjr/soar/SoarSuite/SoarLibrary/lib
  • This has not been confirmed.

Mac OSX

DYLD_LIBRARY_PATH must have full paths to SoarLibrary/lib and SoarLibrary/bin, for example:

export DYLD_LIBRARY_PATH=/Users/voigtjr/Desktop/soar/SoarSuite/SoarLibrary/bin:/Users/voigtjr/Desktop/soar/SoarSuite/SoarLibrary/lib

Windows

  • Add swig folder to path
  • Add SoarLibrary/lib folder to path
  • Use the visual studio 2005 command prompt tool instead of cmd.exe

Choose options

scons -h

Build Soar

scons

There is a problem with SWIG, scons will error out twice. Restart it both times. It will fix itself. It should not have to be run more than three times.

If you want to use options, add them after the command:

scons java=no tcl=yes
Personal tools