building ledger 3.1 under cygwin

173 views
Skip to first unread message

Hans Erik van Elburg

unread,
Dec 22, 2014, 6:56:03 PM12/22/14
to ledge...@googlegroups.com

* building ledger 3.1 under cygwin

# Used sources:


# from scratch assuming dependencies are available, see reference build instructions:
git clone https://github.com/ledger/ledger.git
cd ledger
sed
-i.backup -e 's/add_definitions(-std=c++11)/add_definitions(-std=c++11 -U__STRICT_ANSI__)/' CMakeLists.txt
cmake
-G "Unix Makefiles"
./acprep --python update


# or alternatively in an existing ledger clone:
./acprep gitclean
sed
-i.backup -e 's/add_definitions(-std=c++11)/add_definitions(-std=c++11 -U__STRICT_ANSI__)/' CMakeLists.txt
cmake
-G "Unix Makefiles"
./acprep --python update



Hans Erik van Elburg

unread,
Dec 29, 2014, 7:58:06 PM12/29/14
to ledge...@googlegroups.com

For some reason in my setup the ledger executable could not find the libledger-3.dll.

Symptom:
xxx@yyy Tue Dec 30 00:44:18  ~
$ ledger
/usr/local/bin/ledger.exe: error while loading shared libraries: libledger-3.dll: cannot open shared object file: No such file or directory

The libledger-3.dll is installed by the make install to /usr/local/lib/.

Solution for now: Make sure the shell executing ledger contains /usr/local/lib/ in the PATH environment variable.

I tried several other methods to influence the executables runtime library load path by tweaking linker parameters like -rpath, gcc parameters like -L,  environment variables like LIBRARY_PATH and all that, but none of them worked.

Op dinsdag 23 december 2014 00:56:03 UTC+1 schreef Hans Erik van Elburg:

Hans Erik van Elburg

unread,
Jan 3, 2015, 6:50:12 PM1/3/15
to ledge...@googlegroups.com

I updated the build script so that ledger builds out of the box under cygwin, provided that the correct dependencies are installed already.

See pull request: https://github.com/ledger/ledger/pull/361



Op dinsdag 23 december 2014 00:56:03 UTC+1 schreef Hans Erik van Elburg:
Reply all
Reply to author
Forward
0 new messages