Skip to content

Build from Source: Windows

philthiel edited this page May 5, 2017 · 6 revisions

Prerequisites

  • Git
  • CMake >= 3.1.x
  • Python 2.7
  • Perl: ActivePerl
  • Visual Studio >= 2013

Build ball_contrib

For more detailed information please also look here.

git clone https://github.com/BALL-Project/ball_contrib.git
cd ball_contrib
md build
cd build
cmake .. -G "Visual Studio 12 2013 Win64"
msbuild /p:Configuration=Release BALL_contrib.sln

// Get a coffee and be patient, this can take hours ...

Build BALL

 // Bin folder of ball_contrib build is required
 set PATH=<path_to_contrib>\build\install\bin;%PATH%

 // Now start over with BALL
 git clone https://github.com/BALL-Project/ball.git
 cd ball
 md build
 cd build
 cmake .. -G "Visual Studio 12 2013 Win64" -DBALL_CONTRIB_PATH=<path_to_ball_contrib>\build\install
 msbuild /p:Configuration=Release BALL.sln

Setup Environment

set BALL_DATA_PATH=<path_to_ball>\data
set PATH=<path_to_ball_contrib>\build\install\lib;<path_to_ball>\build\bin\Release;%PATH%
set PYTHONPATH=<path_to_ball>\build\bin\Release;%PYTHONPATH%

Optional: Build and Run Unit Tests

cd <path_to_ball>\build
msbuild /p:Configuration=Release /p:Platform=x64 build_tests 
ctest

Currently, the following tests may fail. Please don't report this in our issue tracker:

  • AmberFF_test
  • AssigneBondOrderProcessor_test2
Clone this wiki locally