Ledger has switched to CMake

2012-05-20 Thread John Wiegley
Hey everyone, Ledger's build system has just switched to CMake. My reason for doing it now: 1. Maintenance is no longer a nightmare! Easier to maintain means fewer bugs, and it should be easier to track down user issues. 2. acprep is *much* smaller; it's just a thin wrapper now. 3.

Re: Build failure

2012-05-20 Thread John Wiegley
Peter Keen peter.keen-qpbGg102UtMk+I/owrr...@public.gmane.org writes: I'm getting this error as well: src/ptree.cc: In member function 'virtual void ledger::format_ptree::flush()': src/ptree.cc:71: error: expected initializer before '*' token src/ptree.cc:72: error: 'post' was not declared

Re: Ledger has switched to CMake

2012-05-20 Thread Craig Earls
05:59:12 ~/ledger (next) ./acprep opt update acprep: INFO: Invoking primary phase: update acprep: INFO: Executing phase: update acprep: INFO: Executing phase: pull Already up-to-date. acprep: INFO: Executing phase: submodule Submodule 'lib/utfcpp' () registered for path 'lib/utfcpp' acprep:

Re: Ledger has switched to CMake

2012-05-20 Thread Johann Klähn
Hi John, I get this error when running ./acprep config with either LDFLAGS or CXXFLAGS set: CMake Error: The source directory /tmp/build/ledger-git/src/ledger-build/LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu does not exist. Specify --help for usage, or press the help

Re: Templating for more complicated reports?

2012-05-20 Thread Simon Michael
I've been wanting this for a long time, too. Some hledger commands now use a template for overall layout, eg see the part inside [lt| ... |] at http://joyful.com/darcsden/simon/hledger/browse/hledger/Hledger/Cli/Incomestatement.hs#L-21 . In future, it will be possible for the user to use a

Re: Ledger has switched to CMake

2012-05-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: 05:59:12 ~/ledger (next) ./acprep opt update acprep: INFO: Invoking primary phase: update acprep: INFO: Executing phase: update acprep: INFO: Executing phase: pull Already up-to-date. acprep: INFO: Executing phase:

Re: Ledger has switched to CMake

2012-05-20 Thread Craig Earls
Went drastic, still won't build: 14:44:20 ~/ledger (next) git clean -dfx 14:45:03 ~/ledger (next) ./acprep opt update acprep: INFO: Invoking primary phase: update acprep: INFO: Executing phase: update acprep: INFO: Executing phase: pull Already up-to-date. acprep: INFO: Executing phase:

Re: Ledger has switched to CMake

2012-05-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Went drastic, still won't build At least that bug should be fixed now. John

Re: Ledger has switched to CMake

2012-05-20 Thread Craig Earls
getting closer:20:47:04 ~/ledger (next) ./acprep opt update acprep: INFO: Invoking primary phase: update acprep: INFO: Executing phase: update acprep: INFO: Executing phase: pull Already up-to-date. acprep: INFO: Executing phase: submodule Submodule 'lib/utfcpp' () registered for path

Re: Ledger has switched to CMake

2012-05-20 Thread John Wiegley
Craig Earls enderw88-re5jqeeqqe8avxtiumw...@public.gmane.org writes: Linking CXX executable ../ledger ld: warning: ignoring file /usr/local/lib/libmpfr.a, file was built for archive which is not the architecture being linked (x86_64) This is the problem. Can you run file on that archive?