I wanted to try this version of Ledger with the Python option.  I am 
running 64-bit Ubuntu 12.04.

First, I had to update acprep to work with the precise pangolin 
distribution.  I naively copied the oneiric-related code to precise, and it 
seemed to work fine.  I also backed off the boost version requirement in 
CMakeLists.txt from 1.47.0 to 1.46.1, which is currently the stock version 
for Ubuntu 12.04.

There are several more boost package dependencies than are currently 
covered by "acprep dependencies".  But acprep will tell you what's missing 
the next time you "acprep update", so that wasn't too terrible.

But even after I resolved all of the obvious library dependencies, I still 
got an error:

  The following Boost libraries could not be found:

          boost_optional_components

This seemed suspicious to me, since there is of course no "optional 
components" boost library.  However, in CMakeLists.txt, there is a call to 
find_package with the OPTIONAL_COMPONENTS argument set to ${BOOST_PYTHON}.

Since the intent of BOOST_PYTHON appears to be that it will be "python" if 
USE_PYTHON is enabled and the Python libraries are found, and blank 
otherwise, I simply commented out the OPTIONAL_COMPONENTS argument of 
find_package on line 66 of CMakeLists.txt, but added ${BOOST_PYTHON} to the 
REQUIRED argument of find_package.

Then the build succeeded.

I noticed that even though I set BUILD_DEBUG to OFF, Cmake was printing 
plenty of output that told me that it was performing a DEBUG build. "acprep 
info" reports that the current flavor is debug.

The resulting ledger executable is able to process my ledger data file, and 
"ledger python" works, so I guess I'll count this as a successful build.  I 
can't get "acprep proof" to work, so I cannot provide more definitive test 
results.  If there are any other tests that you recommend so that we can 
bless boost 1.46.1, I'd be glad to run them.

Reply via email to