Hello,

I managed to compile ledger on Debian stable aka Wheezy with clang and 
latest version of boost. See commands below.
Some points:
- At the beginning of acprep, I have the error "Performing Test 
BOOST_REGEX_UNICODE_RUNS - Failed", but the build was anyway successful.
- "make check" is successful up to 99%, the 2 tests not passing are because 
ledger is crashing by seg fault

Thierry


-------------------- commands to build --------------------

### pre-requisites

sudo apt-get update && sudo apt-get --yes upgrade

# needed for ledger
sudo ap-get install build-essential cmake doxygen  python-dev gettext git 
libedit-dev libgmp3-dev libmpfr-dev texinfo libmpc-dev
# needed for boost
sudo apt-get install libbz2-dev
# needed for clang
sudo apt-get install clang

### boost

mkdir -p ~/compil/boost/src
mkdir -p ~/compil/boost/build
tar xfj ~/Downloads/boost_1_55_0.tar.bz2 -C ~/compil/boost/src
cd ~/compil/boost/src/boost_1_55_0
./bootstrap.sh --prefix=/opt/boost/1.55.0
# WARNING: do not use option --with-libraries with command ./bootstrap
# because of bug in cmake that prevent to link when multiple version of
# boost are installed
sudo ./b2 --build-dir=/home/thierry/compil/boost/build 
--prefix=/opt/boost/1.55.0 install

### ledger

mkdir -p ~/compil/ledger/src
mkdir -p ~/compil/ledger/build
cd ~/compil/ledger/src
git clone git://github.com/ledger/ledger.git
cd ~/compil/ledger/src/ledger
export BOOST_ROOT=/opt/boost/1.55.0
export  CC=clang
export CXX=clang
./acprep opt update --python --doxygen 
--output=/home/thierry/compil/ledger/build

-------------------- commands to build (end) --------------------







-------------------- "make check" errors --------------------

$ cd ~/compil/ledger/src/ledger
$ /home/thierry/compil/ledger/build/ledger -f 
/home/thierry/compil/ledger/src/ledger/test/regress/78AB4B87_py.test 
python  /home/thierry/compil/ledger/src/ledger/test/regress/78AB4B87.py
-5.00 GBP
GBP
Total is presently: (0.00 EUR)
Converted to EUR:   (-5.73 EUR)
Total is now:       (-5.73 EUR)

-5.00 EUR {0.8733 GBP} [2012/01/03]
EUR
Erreur de segmentation

$ /home/thierry/compil/ledger/build/ledger -f 
/home/thierry/compil/ledger/src/ledger/test/regress/9188F587_py.test 
python  /home/thierry/compil/ledger/src/ledger/test/regress/9188F587.py
-5.00 GBP
GBP
Total is presently: (0.00 EUR)
Converted to EUR:   (-6.00 EUR)
Total is now:       (-6.00 EUR)

-5.00 EUR {0.8733 GBP} [2012/01/03]
EUR
Erreur de segmentation

-------------------- "make check" errors (end) --------------------

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to