From baaa91375561a4a7eeabaf8a5d4b7283b459a8e1 Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Mon, 27 Apr 2015 01:01:54 -0400 Subject: copy scripts --- BUILDING | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'BUILDING') diff --git a/BUILDING b/BUILDING index d5a086e8..055c6f82 100644 --- a/BUILDING +++ b/BUILDING @@ -1,36 +1,28 @@ To build cdec, you'll need: * boost headers & boost program_options (you may need to install a package - like boost-devel) + like libboost-dev) Instructions for building ----------------------------------- - 1) Use automake / autoconf to generate the configure script. - I'm not an expert at using these tools, but this should be sufficient: + 1) Create a build directory and generate Makefiles using CMake - autoreconf -ifv + mkdir build + cd build + cmake .. + + If the cmake command completes successfully, you can proceed. If you have + libraries (such as Boost) installed in nonstandard locations, you may need + to run cmake with special options like -DBOOST_ROOT=/path/to/boost. - 2) Configure and build. Your command will look something like this. - - ./configure - make - - If you get errors during configure about missing BOOST macros, then step 3 - failed, and you need to keep working at it. If you get errors during the - build, it's probably a problem with step 3 or possibly with some compiler - version idiosyncracies (generally, I assume you have a relatively new - of g++). - - If you're building on cygwin, their libtool is buggy; this make command - works for now: - - make LIBS+="-lz -lboost_program_options" \ - CFLAGS+="-Wno-sign-compare" + 2) Build + make -j 2 + 3) Test - + make test ./tests/run-system-tests.pl Everything should pass. -- cgit v1.2.3