OK, I tried to build ledger from git
- I am on debian squeeze:

$ git clone git://github.com/jwiegley/ledger.git

$ cd ledger

next step is to run

$ ./acprep

I actually prefer to run

$ ./acprep -- --prefix=/opt/ledger

i. e. with a --prefix for configure

in order for this ./acprep... (which includes the configure step)
to succeed, I had to install some packages:

# aptitude install libmpfr-dev
# aptitude install libboost-regex-dev
# aptitude install libboost-date-time-dev
# aptitude install libboost-filesystem-dev
(libpcre3-dev was already installed on my system,
necessary to build ledger at least in the past)


now, the above $ ./acprep -- --prefix=/opt/ledger
runs through without complaining

however:

$ make
cp -p src/system.hh.in system.hh
g++ -DHAVE_CONFIG_H -I.  \
            -I./src -I./lib -I./lib/utfcpp/source -isystem /usr/local/include 
-isystem /usr/include/python2.5  -ansi -Wall -Winvalid-pch -Wextra -Wcast-align 
-Wcast-qual -Wfloat-equal -Wmissing-field-initializers -Wno-endif-labels 
-Woverloaded-virtual -Wsign-compare -Wsign-promo -Wstrict-null-sentinel 
-Wwrite-strings -Wno-old-style-cast -Wno-deprecated -fpch-deps -Wconversion 
-pthread -g -pipe \
            -o system.hh.gch system.hh
system.hh:134:18: error: utf8.h: Datei oder Verzeichnis nicht gefunden
make: *** [system.hh.gch] Fehler 1
$

(sorry, this is german, roughly: utf.h: file or dir not found, error 1)


OK, was able to fix this one, utf8.h lives in my /usr/include/unicode


$ cd src
$ ln -s /usr/include/unicode/utf8.h .
$ cd ..


now make gets me further, however doesn't succeed completely:


$ make
...
In file included from src/report.cc:36:
src/unistring.h: In constructor ‘ledger::unistring::unistring(const 
std::string&)’:
src/unistring.h:72: error: ‘utf8’ has not been declared
src/unistring.h:73: error: ‘utf8’ has not been declared
src/unistring.h: In member function ‘std::string 
ledger::unistring::extract(size_t, size_t) const’:
src/unistring.h:91: error: ‘utf8’ has not been declared
make[2]: *** [libledger_report_la-report.lo] Fehler 1
make[2]: Leaving directory `/home/reuleaux/tmp/ledger'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/reuleaux/tmp/ledger'
make: *** [all] Fehler 2
$


hm, now what? - slightly confused.


-Andreas

Reply via email to